You need to sign in to do that
Don't have an account?
Merrill
Summer 08, soap and "SOAPAction HTTP header missing"
I have an app that has been working for quite some time. Since the upgrade to Summer08 everything is broken,
I am getting:
SOAPAction HTTP header missing
It looks like this:
Any help would be greatly appreciated.
My full response is:
It returns a status code of: 500 Internal Server Error which is strange to me.
I am posting to: https://na1.salesforce.com/services/Soap/c/10.0 which has worked for months.
Thanks,
Chris
Code:
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com"> <soapenv:Header> <urn:SessionHeader> <urn:sessionId>SESSION_id_GOES_HERE</urn:sessionId> </urn:SessionHeader> </soapenv:Header> <soapenv:Body> <urn:getUserInfo /> </soapenv:Body> </soapenv:Envelope>
Any help would be greatly appreciated.
My full response is:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>SOAPAction HTTP header missing</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
It returns a status code of: 500 Internal Server Error which is strange to me.
I am posting to: https://na1.salesforce.com/services/Soap/c/10.0 which has worked for months.
Thanks,
Chris
If you are constructing the soap message by hand, you have
to set the SOAPAction HTTP header to empty string in the XHR.
I am using actually using coldfusion and it has worked very well. My coldfusion code below:
Note: Content-Length and Body post the body and length.
The Header SOAPAction is blank.
It is very puzzling.
I tried that and get : Internal Server Error
What is the equivelant in a different language? PHP or Java?
connection.setRequestProperty("SOAPAction", "\"\"");
On the wire it should write:
SOAPAction: ""