- miguel riveros
- PowerBuilder
- Friday, 27 October 2017 12:29 AM UTC
I make a call to a web service
any la_any[]
la_any = proxy_obj.wsm_execute (l_logintype,ref ll_responsecode)
I an forced to use a type ANY because in the response array (Not shown), the service programmer used two reserved fords for the fields names. The web service requires identical names deom the response to be put in the response structure
The original response structure is:
FROM string
TO string
EXANGERATE decimal
DESCRIPTION string.
In order for it to compile, the web service structure is changed to
WS_FROM string ***had to change***
WS_TO string ***had to change it ***
EXANGERATE decimal
DESCRIPTION string.
after changing the structure for the response i cannot use the natural call which should be:
l_ratesinforate = proxy_obj.wsm_execute (l_logintype,ref ll_responsecode) which hangs because L_RATESINFORATE structure has different names for fields.
if I use
any la_any[]
la_any = proxy_obj.wsm_execute (l_logintype,ref ll_responsecode)
in la_any i have 4 records, which I can browse in the debuger and all the data is ok. But I cannot use this data, like in
ls_rates[1].id = la_any[1].id once established the structure ls_rates and instantiating it.
I get the message "INVALID OPERAND TYPE FOR DOT OPERATOR: ANY"
So, the question is how do I extract the data from the array?
thanks
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.