1. Waine Abreu
  2. PowerBuilder
  3. Wednesday, 10 May 2023 11:53 AM UTC

I'm sending how it was originally working 

A proxy was imported to the workspace with many attribute to use. datasheetdataservice is ourwebservice

Its created an instance and attribute, which I need "entrada" as entrance in xml and "resposta" as return to datawindow 

dataconnectiondstrequest entrada[]
dataconnectionsapresponse resposta[]

entrada[1] = create dataconnectiondstrequest
resposta[1] = create dataconnectionsapresponse

and code as 

datasheetdataservice lnv_webservice
SoapConnection conn

conn = create SoapConnection
conn.setbasicauthentication( 'confab', 'login', '*****')
ll_rc = conn.CreateInstance (lnv_webservice, 'datasheetdataservice')

 

And then after getting info from entrada

has a connection with one of attribute imported from datasheetdataservice webservice.

I'm having trouble to do that on REST, even I do instance, it only return -1, what do i need to change? How i use REST in this occasion

 

Thanks

Attachments (1)
Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 May 2023 19:08 PM UTC
  2. PowerBuilder
  3. # Permalink

If the Web service you are calling is a SOAP web service you can't just switch to REST.  The Web service on the server would need to be a REST API to call it as REST from PowerBuilder app.

Comment
  1. Waine Abreu
  2. Thursday, 11 May 2023 12:51 PM UTC
I got it,



Thanks for the help, I noticed webservice was a SOAP webservice
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.