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:
01585132
Vues:
44
>>>>>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?
>>>>
>>>>Reading further down the thread it seems that you want a .NET *client* to access your web service. The fact that the service happens to be powered by VFP should be irrelevant - it's just a SOAP message and should be accessible from .NET just as any other web service. Why do they need your assistance at the .NET end?
>>>
>>>They do not need my assistance, but in the other hand, if i want them to use my vfp web service they force me to send them the .net client web service
>>
>>Hmm. Given the URL it should be a five-minute job for a .net programmer. If they want you to do it then you would probably need to supply a DLL which they could reference so I don't understand why they just don't do it themselves....
>>
>>If you want to post a URL I'll try it for you.......
>
>Well that's because you're missing the last piece of the puzzle :-) Sorry for not being completely clear from the start.
>
>I wrote for my customer the VFP web services. The customers' server sits inside a huge company, which doesn't allow direct connections between the outside world and my customer's server, so they have some sort of proxy server who gets the web service requests from the outside world and passes them on.
>They specifically do not allow anything to run on their 'proxy' server other than .net web services, so they asked me to provide them with an indeed simple .net web service which accepts a string as parameter and passes it on to the internal VFP web service. They asked me to provide just the source and they will install etc...

>Assuming my internal server's vfp web service is in http://myvfpserver/myvfpws.wsdl , and the function i run in there is myFunction ( string param1 ) ,
>what should i have as .net web service as explained?

Hmm. Not sure this is going to be easy to explain :-{

Creating the outward facing web service is straightforward but the simplest way to create the web client side (which would access your VFP web service) is to use the 'Add Service reference' wizard in .NET. For this you just need to supply the url of your webservice and .NET then generates a proxy class which wraps all the methods of the web service in a simple interface. But to do this you obviously need to be able to access the url from VS.

I still don't see why, if they have even a half-competent .NET programmer, they cannot do this themselves......

>I checked and found out there is a Visual Studio Express which i thought of installing for that purpose...

I'm pretty sure the Express edition covers web service creation (but maybe not with full debugging)
See: http://msdn.microsoft.com/en-us/library/8wbhsy70(v=vs.90).aspx
Not sure about creating the web client side.
See: http://msdn.microsoft.com/en-us/library/ms583494(v=office.14).aspx

Shout if you're stuck :-}
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform