CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2000
    Posts
    33

    Calling php web service from C#

    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

    Code:
    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

  2. #2
    Join Date
    Nov 2002
    Location
    .NET 3.5 VS2008
    Posts
    1,039

    Re: Calling php web service from C#

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured