markus0418 Posted October 18, 2012 Share Posted October 18, 2012 Hello All I am trying a simple php soap connection - not wdsl $xml contains the actual xml code with the <envelope> 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.226/BeaconWs/#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.226/BeaconWs/#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 Quote Link to comment https://forums.phpfreaks.com/topic/269633-getting-soapaction-header-error/ Share on other sites More sharing options...
markus0418 Posted October 18, 2012 Author Share Posted October 18, 2012 Im sorry, some of the lines didn't copy right both soapaction lines should be SOAPAction: http://173.xxx.xxx.226/BeaconWs/#ImportRequest. Quote Link to comment https://forums.phpfreaks.com/topic/269633-getting-soapaction-header-error/#findComment-1386125 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.