Hi All,
I am trying to call a restfull webservice using PB.Net. I have created the proxy and able to see the response arguments in the Powerbuilder. The return type of the restfull webserivice is JSON type.
But when i am trying to call the webservice, i am getting the below error.
'Exception has been thrown by the target of an invocation. '
URL- http://beta.json-generator.com/api/json/get/EJgQoWHrix
My dummy code -
p_rest nvo_rest
nvo_rest = createp_rest
- restjson.rootItem result
try
result = nvo_rest.GetMessage ()
messagebox('Success','Success')
catch (System.Exception ls_error)
MessageBox('error',ls_error.Message)
endtry
Can anyone help me on this?
Once this is successfull, i need to call this in Pb classic, anyidea how to call this ( by using any wrapper).If anybody have any sample code, please send me.
Thanks all.
Regards
Subrat