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 04:13:29
 
 
To
15/12/2016 18:44:22
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:
01645364
Views:
62
This message has been marked as a message which has helped to the initial question of the thread.
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform