Expand my Community achievements bar.

Extract info from a WS call

Avatar

Level 1
Hi,

I have some problem extracting the response from a WS call.

In my form, I have a function to call a WS using "Net.SOAP.request...."

 

This is working ok but I have some trouble to extract the response.

If I do a app.alert(response), I get [objekt Aggregated] back.

If I try app.alert(response.toSource()), I get a string back

- ({invokeResponse:{'http://adobe.com/idp/services:utReg':"SPR291"}})

What do I have to do, to get only the variable utReg?

regards

Tommy

1 Reply

Avatar

Level 1

Solved -

 

result = response["invokeResponse"][http://adobe.com/idp/services:utReg]

did the trick

Have a nice weekend

Tommy