Hello Community,
I am implementing a webservice call through Appeon PowerServer 2017.
The call works fine in PB using web service proxy.
The webmethod of the call takes a structure lstr_rqst as a parameter.
1. When I pass the whole parameter structure as a first item of the paralist array
la_paralist[1] = lstr_rqst
I get this error:
ErrorText:
Execute call Web Service failed.
Error message:AppWebservice:Failed to parse Web Service!Web Service address https://xxx.xxx,
message=The remote server returned an error: (500) Internal Server Error.
ReturnValue Is Null
2. When I pass srtucture's items as individual items of the paralist array
la_paralist[1] = lstr_rqst.agency_id
la_paralist[UpperBound( la_paralist)+1] = lstr_rqst.eligibility_id
la_paralist[UpperBound( la_paralist)+1] = lstr_rqst.worker_id
The call fails with no ErrorText
ReturnValue Is Null
Function of_callwebservice() returns -1 in both cases
Any Idea how to overcome this?
Now I am implementing a different webservice with several parameters - all simple datatypes.
I don't get Error 500 any more when I call appeonwebservicecomponent.of_callwebservice() function.
Now I am getting -1 return with an ErrorText 'Object reference not set to an instance of an object'
ReturnValue always comes back as 'Undefined'.
In PB the webservice' return is loaded by a soapconnection into a structure, and it works perfectly in PB.
Does this all mean that Appeon will not handle structures as returns either?