Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to instantiate a certain kind of Web Service?
Message
 
À
15/12/2016 18:44:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Application:
Desktop
Divers
Thread ID:
01645353
Message ID:
01645401
Vues:
46
You're looking to call a SOAP Web Service. Unfortunately native tools for this are all deprecated. VFP comes with the SOAP Toolkit in the box that you can use to access SOAP services which works reasonably well with simple services but is a nightmare if you have complex objects that get returned from the service as the object mapping only works one level deep. Depending on the service though this might be the easiest solution to try first.

You can also use .NET to call Web Services.

Create and Consuming Web Services with FoxPro and .NET

which describes how you can call Web Services using .NET which provides a solid and current Web service client framework.

If you want to do this a little bit easier yet, my company also makes the West Wind Web Service Proxy generator which wraps the .NET approach described in the article into an automated tool so you don't have to deal with the .NET part of the above process.

West Wind Web Service Proxy Generator


+++ Rick ---



>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.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform