Click to See Complete Forum and Search --> : Calling php web service from C#


FMadore
April 10th, 2008, 12:12 PM
Hi,

I would like to know if there is a way to call a PHP web service from C# framework 2.0.

The service will implement

XmlDocument Login(string param1, string param2);
XmlDocument Register(string param1, string param2);

The web service will be implemented in PHP by one of our client and in asp.net from another of our client. With soap and xml is there a way to implement it to make the type of technology transparent?

Thanks

nelo
April 10th, 2008, 12:33 PM
Well in my understanding of web services the actual implementation should not matter. If the PHP web services conforms to XML and SOAP standards there should be no problem. I found this article which may be useful for you to look at...
http://www.xml.com/pub/a/ws/2004/03/24/phpws.html

Once the web service is published you should be able to connect to through Visual Studio. VS will generate a C# proxy class that you can use to consume the web service. Even if you don't have Visual Studio you should be able to generate the proxy class yourself using the WSDL document that describes the web service.