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

webservice failing when I call the method proxy objects lists

$
0
0

I am trying to implement a call to a webservice in our PB application. I have worked with PB for long time but never incorporated the webservice in my app. I am using PB 12.5 and the webservice I have created is .net webservice. The wsdl I used to create this service is a public wheather info service and here is the url for this wsdl: (I am using this url)

 

http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl

 

I was able to sucessfully create the proxy object and all the associated structures that this wsdl defines in my webserviceproxy project. Once I was able to deploy the project and all the necessary objects were created I am able to see the sdv2weather proxy object in my IDE. All the necessary dlls and .net assemblies are created properly as well. In my IDE I can see that there is a method in sdv2weather proxy object called getcityweatherbyzip that takes a zipcode as input parameter. This method returns a structure that is supposedly to store the weather for the zipcode passed to getcityweatherbyzip. In the open event of my window where I would like to show the weather results this is what I have:

 

sdv2weather lpx_weather

sdv2weatherreturn lstr_weather

 

 

lpx_weather = create sdv2weather

lstr_weather = lpx_weather.getcityweatherbyzip('99999')

 

 

sle_1.text = lstr_weather.city

sle_2.text = lstr_weather.description

sle_3.text = lstr_weather.remarks

sle_4.text = lstr_weather.temperature

sle_5.text = lstr_weather.wind

 

but when I make a call to lpx_weather.getcityweatherbyzip the app terminates with an unknown function call error, however when I look at the definition of this object in IDE I do see this method. I am not sure what I am doing wrong? I thought I followed the instructions I found via my research and everything is created properly that is proxy object and all the related dlls etc but I can't seem to make it work. Can someone help please


Viewing all articles
Browse latest Browse all 2935

Trending Articles



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