Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

How to call Restfull webservice using Powerbuilder.Net

$
0
0

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

  1. 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


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>