I am new to SOAP and am engaged in a web service where, it would seem, no one had contacted PHP before. They have no example code except C #, but I have this. eServices.asmx provides WSDL if this is the right way to say it.
The error I get is "The server did not recognize the value of the SOAPAction: HTTP header," so that a training colon, assuming that the value is not passed, is possible.
My code is as follows:
$URL = "http://nolaflash.example.com/xxxWS/eServices.asmx";
$namespace="http://www.example.com/webservices/";
include("SOAP/Client.php");
$soapclient = new SOAP_Client($URL);
$xml_data =
$res = $soapclient->UpdateData('usrname','pass',$xml_data);
but I also tried:
$param = array('usrname','pass',$xml_data);
$res = $soapclient->call('UpdateData',$param, $namespace);
Googling suggests that this error is a namespace problem. The C # code that I have has only one link to the namespace:
[System.Web.Services.WebServiceBindingAttribute(Name="eServicesSoap", Namespace="http://www.example.com/webservices/")]
If I unload the $ soapclient on the screen before calling the function, I see that it received data from eServices.asmx.
, , .NET IDE.
? ?