Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Consume VFP web service from .net without v.studio
Message
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
ASP.NET
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01585107
Message ID:
01585114
Vues:
71
>>I have been asked to write a .net Web Service that will just receive some parameter string, and call my VFP web service with that string.
>>The thing is that i do not work with .net at all, so is there some easy way to do this without visual studio?
>>
>>Thanks
>>Jaime
>
>It's not really clear what you're asking. So you already have a VFP web service running? Then why do you need the .NET web service?
>
>If you're really asking "how can I create a Web Service that can call my VFP code", well, it depends. What protocol are you going to use for the web service? SOAP? Or is it really just a web page that takes a couple of parameters in the URL or POSTed? If it needs to be a SOAP-based web service of any complexity, then it's going to be much easier to do it in .NET (a basic WS is really easy to do).Or if the client-side is expecting some kind of auto-discovery of the service (so it can automatically build proxy-objects), then you'll want to use .NET.
>
>If it's as simple as you say (and you're not going to need to pass more complex objects from/to the service), then you could use any of the VFP-based web frameworks (WebConnection, FoxWeb, ActiveVFP, etc) to build it and just manually parse/build the SOAP request/response. Or, if it's just a simple web page you wouldn't have to do any parsing at all, usually just a call to the framework's Request.QueryString or Request.Form class methods.

Thanks Paul for taking the time.
My scenario is as follows:
- in my customer's server, i have a VFP web service up and running. Installed ISAPI extensions (it's iis7) and i can successfully browse to the wsdl.
This web service receives a raw string as parameter and returns a string as well.

This web service has to be called from a .net web service that i need to provide, which is some kind of proxy, i.e .net web service will accept a string parameter and call my vfp web service with that string, then hand back the received response.

Does it make sense?
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform