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:
01585133
Vues:
58
>>>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?
>>>

After reading the other responses, yes, if you don't have VS then VS Express is the next best thing.

I don't know what kind of templates they have built in VS Express, but you'd basically create an empty website, then create a WCF service (a handler that will receive the WS call) - that is, right-click on the project > Add > select the template. You create an interface that has the method you want on it and add a [ServiceContract(Namespace="http://somesite.com") to the class and a [OperationContract] attribute to the method you're exposing as a web service. Inherit from this interface in your service. Then add a service reference to your existing WS. VS will generate a proxy object that you instanciate and pass the call on to. Create the actual method that receives the string parameter in the .svc file that was created and add the code to pass it on/return the result. It's literally probably only 30 lines of code.

Yeah, I kind of glossed over the specifics but the above should at least give you some things you can easily Google. Or ask here if you can't figure it out.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform