Hello All
I am trying a simple php soap connection - not wdsl
$xml contains the actual xml code with the and such
$options = array(
“location” => ‘http://173.xxx.xxx.226/BeaconWs/BeaconWs.asmx’
“uri” => ‘http://173.xxx…xxx.226/BeaconWs/’
“trace” => 1,
);
$client = new SoapClient(NULL, $options);
$client->__soapCall(‘ImportRequest’, $xml);
The $xml is set up as an array, which I wasnt sure about but Im not getting that far to get errors back and worry about how to send the xml data.
I keep getting:
Server did not recognize the value of HTTP Header SOAPAction: http://173.xxx.xxx.2…#ImportRequest.
#0 C:\wamp\www\xmltest2.php(75): SoapClient->__soapCall(‘ImportRequest’, Array)
#1 {main}
From my research I have seen this error is supposedly about the uri namespace being wrong
Looking at the request Headers though I see
POST /BeaconWs/BeaconWs.asmx HTTP/1.1
Host: 173.14.111.226
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.3.8
Content-Type: text/xml; charset=utf-8
SOAPAction: “http://173.XXX.XXX.2…#ImportRequest”
Content-Length: 6589
So the soap client is automatically generating the SOAPAction
and those headers look exactly like the ones I was given from a succesful .Net implementation
Except for the ‘#’ - that appears in the header and the error in the response.
So the question is whether that # is messing it up?
How I would keep it from being in the Headers, since Im not specifying the SOAPAction?
or is that ok and there is something else Im missing?
Thanks in advance for any help
Mark