RE: Consuming a PHP Webservice

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Just add the php as a "web reference" in your project. I did just a little
testing with just what you are trying. I was able to successfully make calls
and pass data back and forth with no problems. On the PHP side be sure to do
a google search for "nusoap" which is a very good php class package.

"Carlos Lozano" wrote:

> Hi,
>
> as a background I have an Windows application developed with VS 2003 (c#)
> that needs to transfer securely data to a MySQL database located on a Linux
> server.
>
> I have created a PHP webservice that will receive an xml file with all the
> data to update an encrypted database. This way all database logic will remain
> on the Linux server. The web service works OK using a testing PHP client.
>
> The windows application will create the xml file to be transferred to the
> web service to consume the webservice.
>
> I have been reading about the ServicePoint class, proxies and WSDL, but I
> feel kind of lost as I am new to web services.
> Why do I need a proxy?
> Can I just connect directly to the PHP web service to consume it?
>
> I found a console sample on MSDN and try to use it to test the webservice on
> Windows
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconcreatingconsoleapplicationclient.asp
>
> I tryed to use WSDL, but got an error saying "the HTML file specified does
> not contain webservice discovery information".
>
> I called it as:
> WSDL http://linuxServer/WebService.php?wsdl
>
> I will appreciate any guidance.
>
> Carlos Lozano
.



Relevant Pages

  • RE: Consuming a PHP Webservice
    ... I am currently using NuSoap for the server implementation. ... > Just add the php as a "web reference" in your project. ... The web service works OK using a testing PHP client. ... >> web service to consume the webservice. ...
    (microsoft.public.dotnet.framework.webservices)
  • passing variable amount of complex types to WSDL SOAP webservice?
    ... i have a problem using a .NET WSDL Webservice from PHP. ... SOAP client cannot pass a variable amount of complex datatypes to the WSDL ...
    (comp.lang.php)
  • Re: Web Service PHP and SSL
    ... works connecting to an asp page. ... php, because the whole thing works when I use a PC with the same ... using SSL, only SSL makes problems and only in conjunction with Php ... I can't rewrite the web service using asp.net because finally the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: consume ASP.NET web service with PHP
    ... > consume it in PHP. ... This web service will simply query a database. ... Does PHP query the WSDL file, or does the ASP service query the PHP ...
    (comp.lang.php)
  • php XML parser similar to PERLs XML::Simple
    ... I currently use XML::Simple module in PERL code that handles XML ... I'm considering converting all code to php. ... The web service uses XML to communicate with an application ...
    (php.general)