Hi,
i am using QTP script for one of the webservices we use. when i am running
the script i am getting "SOAPAction HTTP header is missing" error.
<soapenv:Envelope xmlns:soapenv="xxxxxxxxxxxxxxxxxxx
<http://schemas.xmlsoap.org/soap/envelope/>">
<soapenv:Body>
<urn:CInquiry>
<CRequest>
<!--Optional:-->
<ID>XXXXXX</ID>
</CRequest>
</urn:CInquiry>
</soapenv:Body>
</soapenv:Envelope>
Here is the QTP script below.
Dim OutputResponse,http,Request
Set http = CreateObject("MSXML2.ServerXMLHTTP")
http.Open "POST",EndPointURL, False
http.setRequestHeader "content-type", "text/xml;charset=UTF-8"
http.setRequestHeader "Accept-Encoding", "gzip,deflate"
'http.setRequestHeader "SOAPAction", "CSRMI"
http.setRequestHeader "Connection", "Keep-Alive"
http.send Request
OutputResponse = http.ResponseText
Set http = Nothing
print OutputResponse
When i am running the above script i am getting the following error in
response as "SOAPAction HTTP header is missing"
Note: i have included the security header in the request but still i am
getting the same issue.
Your help is greatly appreciated.
Thanks,
Lakshmi
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.