You need to sign in to do that
Don't have an account?

Data integration
Hi Guys,
We would like to do automated data integration with SF. I'm using a platform that has SOAP capabilities.
We are trying to login using this URL: http://login.salesforce.com/services/Soap/c/38.0
then posting the following:
<?xml version="1.0" encoding="UTF-8" ?>
- <tns:login xmlns:tns="urn:enterprise.soap.sforce.com">
<tns:username>myName@Company123.com</tns:username>
<tns:password>passwordToken</tns:password>
</tns:login>
But I get the below error:
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>The processing instruction target matching "[xX][mM][lL]" is not allowed.</sf:exceptionMessage>
any suggestions?
Thanks.
We would like to do automated data integration with SF. I'm using a platform that has SOAP capabilities.
We are trying to login using this URL: http://login.salesforce.com/services/Soap/c/38.0
then posting the following:
<?xml version="1.0" encoding="UTF-8" ?>
- <tns:login xmlns:tns="urn:enterprise.soap.sforce.com">
<tns:username>myName@Company123.com</tns:username>
<tns:password>passwordToken</tns:password>
</tns:login>
But I get the below error:
<sf:exceptionCode>UNKNOWN_EXCEPTION</sf:exceptionCode>
<sf:exceptionMessage>The processing instruction target matching "[xX][mM][lL]" is not allowed.</sf:exceptionMessage>
any suggestions?
Thanks.
Thanks, found that a couple hours ago, but you are right and just missing the header info.
That what really threw me off.
So the call would look like this:
but thanks a mill for the help...!!!!!
All Answers
I think you need to remove <?xml version="1.0" encoding="UTF-8" ?> and then try.
Thanks
That worked, but now I get this. I've Googled and searched, but there is no clear sample of the SOAP 1.1
Do you know where I can find some good trouble shooting tips or sample code ?
Thanks.
https://www.w3.org/TR/2000/NOTE-SOAP-20000508/
Also please see below sample code which i have extacted from SOAPUI for login method from enterprise wsdl:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
<soapenv:Body>
<urn:login>
<urn:username></urn:username>
<urn:password></urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
Let me know if this help you in trouble shooting.
Thanks
Thanks, found that a couple hours ago, but you are right and just missing the header info.
That what really threw me off.
So the call would look like this:
but thanks a mill for the help...!!!!!