Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to instantiate a certain kind of Web Service?
Message
From
16/12/2016 17:00:33
 
 
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Miscellaneous
Thread ID:
01645353
Message ID:
01645404
Views:
50
>>Hi, I have one application that needs to use a web service. I first tried using VFP9's toolbox to register it and test it, but when I try to do it, it shows me an error. What I noticed is that the url of the web service does not end with a "wsdl" extension, instead it has this form: "https://app.supplier.com/ws/" (this is not the real url, but it looks like it), and the url to call a method called "Login" is like: "https://app.supplier.com/ws/WSsupplier.asmx?op=Login".
>>
>>So, how can I use that web service?
>>
>>Thank you in advance.
>
>It's a .NET webservice so the wsdl should be there. Try:
https://app.supplier.com/ws/WSsupplier.asmx?wsdl
in a browser. If that works (and assuming you are using the webservice vcx) then use you can examine the XML to determine how to call one of the the methods:
client = ws.SetUpClient("https://app.supplier.com/ws/WSsupplier.asmx","{service name}","{port name}")
>result = client.{Method name}(required parameters)
Thank you, I found the wsdl, just like you suggested. I registered the web service in the VFP toolbox, it looks that it works. I will let you know if it completely works or if I find any other issue.
.
Previous
Reply
Map
View

Click here to load this message in the networking platform