sathu - 2008-08-20

Am a newbie in SOAP + PHP

having a problem with a script -

When i run a script to fetch data from another server I am getting  - Server did not recognize the value of HTTP Header SOAPAction:

The whole response is given below - Infact I am not sure what has to be given under soapaction variable. Can some one guide me?

SOAP query

POST /AccomodationSearch.asmx?WSDL HTTP/1.0
Host: affiliate.mystaygroup.com
User-Agent: NuSOAP/0.7.3 (1.114)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: ""
Content-Length: 716

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><Search xmlns="http://affiliate.mystaygroup.com/AccomodationSearch.asmx?op=Search"><inputQuery>
<arrDate>23/10/2008</arrDate>
<depDate>29/10/2008</depDate>
<location>DOWNTOWN%20BURJ%20DUBAI</location>
<persons>2</persons>
<currency>AED</currency>
<agentid>xxxx</City>
<lngCode>xxxx</Zip>
</inputQuery></Search></SOAP-ENV:Body></SOAP-ENV:Envelope>

SOAP response

HTTP/1.1 500 Internal Server Error
Connection: close
Date: Wed, 20 Aug 2008 13:31:45 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 405

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: .</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>

Status message:
Record found: