You need to sign in to do that
Don't have an account?
VARUN GULATI 30
Use SOAP API || Create Account || Error: 405 Only POST allowed - Only POST Allowed
Experts,
I am trying to follow the Trail: Use SOAP API (API Basics). I have been able to obtain a SessionID indicating that I don't have the TLS Issue. However, while creating an Account I am getting the below Response Error. Also, Please view my Request as well. I have gone throough various posts before reaching out to the community. Appreciate if someone can guide me to proceed on this:
Request URL: https://varun1-dev-ed.lightning.force.com/services/Soap/c/43.0
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">
<soapenv:Header>
<urn:SessionHeader>
<urn:sessionId>00D7F000005lNL9!AQ8AQICf9bgDNa3sECRIMMILN4_3Sjl6UAcl1XoWI1EAgrZKkHXh63lyreVSrxWcTPuSK8NsPGUCrEvlm_ZciJFXXXXXXXXj</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:create>
<!--Zero or more repetitions:-->
<urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--Zero or more repetitions:-->
<Name>Bluebeards Grog House</Name>
<Description>It is better than Blackbeards.</Description>
</urn:sObjects>
</urn:create>
</soapenv:Body>
</soapenv:Envelope>
Response:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 405 Only POST allowed</title>
</head>
<body>
<h2>HTTP ERROR 405</h2>
<p>
Problem accessing /services/Soap/c/43.0. Reason:
<pre>Only POST allowed</pre>
</p>
<hr/>
<i>
<small>Powered by Jetty://</small>
</i>
<br/>
<!--Body events-->
<script type="text/javascript">function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}</script>
</body>
</html>
<!--...................................................................................................
...................................................................................................
...................................................................................................
...................................................................................................-->
I am trying to follow the Trail: Use SOAP API (API Basics). I have been able to obtain a SessionID indicating that I don't have the TLS Issue. However, while creating an Account I am getting the below Response Error. Also, Please view my Request as well. I have gone throough various posts before reaching out to the community. Appreciate if someone can guide me to proceed on this:
Request URL: https://varun1-dev-ed.lightning.force.com/services/Soap/c/43.0
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com" xmlns:urn1="urn:sobject.enterprise.soap.sforce.com">
<soapenv:Header>
<urn:SessionHeader>
<urn:sessionId>00D7F000005lNL9!AQ8AQICf9bgDNa3sECRIMMILN4_3Sjl6UAcl1XoWI1EAgrZKkHXh63lyreVSrxWcTPuSK8NsPGUCrEvlm_ZciJFXXXXXXXXj</urn:sessionId>
</urn:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<urn:create>
<!--Zero or more repetitions:-->
<urn:sObjects xsi:type="urn1:Account" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--Zero or more repetitions:-->
<Name>Bluebeards Grog House</Name>
<Description>It is better than Blackbeards.</Description>
</urn:sObjects>
</urn:create>
</soapenv:Body>
</soapenv:Envelope>
Response:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 405 Only POST allowed</title>
</head>
<body>
<h2>HTTP ERROR 405</h2>
<p>
Problem accessing /services/Soap/c/43.0. Reason:
<pre>Only POST allowed</pre>
</p>
<hr/>
<i>
<small>Powered by Jetty://</small>
</i>
<br/>
<!--Body events-->
<script type="text/javascript">function bodyOnLoad(){if(window.PreferenceBits){window.PreferenceBits.prototype.csrfToken="null";};}function bodyOnBeforeUnload(){}function bodyOnFocus(){}function bodyOnUnload(){}</script>
</body>
</html>
<!--...................................................................................................
...................................................................................................
...................................................................................................
...................................................................................................-->
VARUN GULATI 30
Please consider this as closed... Some Issues with my Org... Worked fine in the new Org.