Subject: .NET on Linux
Posted By: planeswalk Post Date: 1/27/2004 12:11:33 AM
Hi!

Is there any way for PHP scripts to consume .NET services written in VB.NET?

Regards,
Marlon




Marlon Villarama
Reply By: planoie Reply Date: 1/27/2004 9:29:12 AM
Most certainly.  .net webservices output nothing more than XML.  As long as you have something in PHP that can read and query (if necessary) XML than you can use .net web services.  The webservice can be called with either a GET or POST or using SOAP (which is basically a more complicated GET where you send the details of the request in the headers instead of the querystring.  Unless you want to write the POST or SOAP request manually, it's easiest to use the GET method if the web service you want to use supports it.  Of course, if you are going to create the web service than you can ensure that it supports the GET method.

Any XML document object that you can use in PHP should be able to use the webservice.  Most XML DOMs have a method to load the XML from a URL (versus just a local file or string).  You just need to provide the XML object with the webservice URL (complete with querystring information if necessary) and you'll be able to load up the result of the webservice into the XML object for use.

Peter
------------------------------------------------------
Work smarter, not harder.

Go to topic 9031

Return to index page 961
Return to index page 960
Return to index page 959
Return to index page 958
Return to index page 957
Return to index page 956
Return to index page 955
Return to index page 954
Return to index page 953
Return to index page 952