Consuming a PHP Webservice

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

  • .Net 2.0 issue with HttpWebRequest/Proxy breaking WebService
    ... through a proxy server after using the HttpWebRequest object. ... Under normal circumstances I am able to use the webservice without any ... Windows Authentication ... //Set Credentials for Web Service ...
    (microsoft.public.dotnet.framework.aspnet)
  • Adding a parameter to the SOAP Header?
    ... that gets request from both a Windows UI and a WebUI. ... in my web service that says "WIN" or "WEB" depending on where it came ... I would like to somehow add a parameter to the webservice context (or ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Is Remoting The Right Tool For My Job?
    ... I wrote a Windows application that used a custom DAL to perform all database calls for the application. ... The problem is that the application is run as the current user and the client does not wish to grant permission to the database for individual users, even if permission is granted through a group & role. ... We came up with a viable solution that would mean separating the DAL into a web service that is hosted by IIS and runs under a user which only key administrators have the password for. ... That's when I started thinking that it might be a better idea to use .NET Remoting since I can assure that my client will only be written in .NET. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: How to consume a xml webservice in a windows ce device application
    ... Localhost is going to try to connect to you the Windows CE device. ... Web service correctly and I think you'll find that it works. ... For that, i created one webservice, when i am calling this ...
    (microsoft.public.windowsce.embedded)
  • Re: Just tell me why ? so confuse...
    ... What do you mean by WebService class should not directly access to database? ... I have created a WebService project ... Do you mean that inside my web service project I should add a separate ...
    (microsoft.public.dotnet.framework.aspnet.webservices)