Calling PHP as web reference
Hi,
I am maintaining an ASP.NET business application. Until now I implement different web service calls using “Add Web Refere…” tool.
Unfortunately now we have to call a web service written in PHP that is “non-WSDL” and I am not able to use the wsdl tool. As I have no SOAP experiences I have no idea how to start solving this problem : (
The solution in PHP is:
$xml = '<AspDotNetStorefrontImport Version="7.1"><OrderManagement Action="MarkAsRefound" ID="1978"/></AspDotNetStorefrontImport>';
$soapClient = new SoapClient(null, array('location' => "http://www.MyDomain.com/webservice/", 'uri' => "
http://www.MyDomain.com "));
$soapClient->doCommand(array('password' => 'MyPassword', 'xml' => $xml));
Has anyone any experience with this?
Thank you