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?
I assume you have already set the Parameter as "Any" datatype. If so, you would need to debug the web service to see why it is not accepting your array.
It could in fact be that your Web Service is looking for a very specific parameter datatype.
Regards,
That could well be Viktor`s issue as the ANY datatype is not a standard Web Service datatype as recognized by WC3 standards. Typically, web service parameters and returned results must be a within standard "C" data types.
Regards ... Chris
Based on documentation the function of_callwebservice would be sending, by reference, an array of "any" datatype to the web service. But, structures are not support as parameters for calling Web Services in PowerServer (see here).
I recall having sent parameters this way before with success. It might just be the way he is sending them or, most likely, that the Web Service itself is not supporting the parameter he passed to it.
Regards,