function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Karthik11Karthik11 

Error calling salesforce

Hi, I have exposed salesforce webservice and when trying to hit sfdc
from siebel with generated session id here is the error the siebel
guys are getting.

Operation 'InsertAccount' of Web Service '_http://soap.sforce.com/
schemas/class/AccountWebService.AccountWebServiceService' at port
'AccountWebService' failed with the following explanation:
"INVALID_SESSION_ID: Invalid Session ID found in SessionHeader:
Illegal Session".(SBL-EAI-04308).

 

when trying to hit the url..it also gives me the status code like this..

 

405 GET not supported, this is a SOAP service, please use POST.

any inputs will be appreciated

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

Your session header is wrong, it not in the right namespace, and it uses a sessionId attribute and not a child sessionId element, see the WSDL for the exact details.

All Answers

SuperfellSuperfell

Your sessionId is not valid, or is not in the correct element / namespace in the request. Can you show the xml of your request.

Karthik11Karthik11

Hi Simon..Thanks for your prompt response..Here is the xml request..Also just to let you know when tried from soap UI, I was able to insert some accounts in sf. ur right, name space may be wrong. pls let me know what can be done.

 

 

<?xml version="1.0" encoding="UTF-8" ?>

- <soapEnv:Header xmlns:soapEnv="http://schemas.xmlsoap.org/soap/envelope/">
  <SessionHeader sessionId="00DE0000000HyGs!AQoAQN4NDryZ1JwA.nA9OAvXQgPzeimW9phFGFMB49Mb880D6.f1lGn8Py7xTgm3S6FZawYQm3H1v3OD82gmIXSy.XhxNuI3" />
  </soapEnv:Header>
- <SOAP-ENV:Body>
- <QueryById>
  <PrimaryRowId xsi:type="xsd:string">2-1FW-1424</PrimaryRowId>
  </QueryById>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>
 
Thank you.
SuperfellSuperfell

Your session header is wrong, it not in the right namespace, and it uses a sessionId attribute and not a child sessionId element, see the WSDL for the exact details.

This was selected as the best answer
Karthik11Karthik11

Thanks much Simon, I figured that out but unfortunately in Siebel there is no service to automatically generate sOAP Header and we will have to hard code and generate the header. i will work on it and try resending the request.

 

Karthik11Karthik11

 

Hi Simon, when i create a proxy service it generates a Object called Integration Object and I write some javascript(siebel script) to create message as property set  and then when the soap message is posted there is some siebel native service that converts into a HTTP request and soap message.I cannot explicitly write this somewhere.if it is inbound to siebel ,i can log and get the exact message the consuming app is posting but when i am posting, I cannot get the message.all it tells me the message is coverted to soapbody..
Does it matter if i post with a XMLtagnamespace or XSDTagNamespace..? pls advise.
ChethanChethan

Hi,

 

 I'm new to SalesForce

 

javax.xml.rpc.ServiceException: modeler error: failed to parse document at "https://login.salesforce.com/services/Soap/c/28.0/00590000001eXtVAAU": java.io.IOException: Server returned HTTP response code: 405 for URL:https://login.salesforce.com/services/Soap/c/28.0/00590000001eXtVAAU

 

I'm using webservices and i'm getting above exception when i try to use handlers to fetch Soap messages. 

 

How to modify URL to call Post method.?

 

Any Ideas

 

Regrads

Chethan