2017-01-23 1 views
0

Ich versuche, MuleSfot mithilfe von Web Service Consumer mit dem Salesforce SOAP-basierten Web-Service zu verbinden. Wenn ich zuerst SOAPUI eintrage, aber INVALID_SESSION_ID erhalte, muss ich mich in Salesforce anmelden, um die ID zu erhalten, aber nicht löschen. Hilfe bitte !!Verbinden von Mule mit dem SOAP-basierten Web-Service von Salesforce

EDIT 1

Anfrage I

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:="http://soap.sforce.com/schemas/class/WebService"> 
    <soapenv:Header> 
     <AllowFieldTruncationHeader> 
     <allowFieldTruncation>false</allowFieldTruncation> 
     </AllowFieldTruncationHeader> 
     <DebuggingHeader> 
     <!--Zero or more repetitions:--> 
     <categories> 
      <category>All</category> 
      <level>None</level> 
     </categories> 
     <debugLevel>None</debugLevel> 
     </DebuggingHeader> 
     <CallOptions> 
     <client>?</client> 
     </CallOptions> 
     <SessionHeader> 
     <sessionId>?</sessionId> 
     </SessionHeader> 
    </soapenv:Header> 
    <soapenv:Body> 
    </soapenv:Body> 
</soapenv:Envelope> 

schicke? für den Kunden ist in Ordnung. Es ist Sitzungs-ID, die ich kippe

RAW REQUEST

POST https://cs61.salesforce.com/services/Soap/class/WebService HTTP/1.1 
Accept-Encoding: gzip,deflate 
Content-Type: text/xml;charset=UTF-8 
SOAPAction: "" 
Content-Length: 972 
Host: cs61.salesforce.com 
Connection: Keep-Alive 
User-Agent: Apache-HttpClient/4.1.1 (java 1.5) 

RAW RESPONSE

HTTP/1.1 500 Server Error 
Date: Tue, 24 Jan 2017 04:18:15 GMT 
X-Content-Type-Options: nosniff 
X-XSS-Protection: 1; mode=block 
Content-Security-Policy: reflected-xss block;report-uri /_/ContentDomainCSPNoAuth?type=xss 
Content-Security-Policy: referrer origin-when-cross-origin 
Set-Cookie: BrowserId=CdHsqmLzR3OFRklUfp1p3g;Path=/;Domain=.salesforce.com;Expires=Sat, 25-Mar-2017 04:18:15 GMT 
Expires: Thu, 01 Jan 1970 00:00:00 GMT 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 


    <?xml version="1.0" encoding="UTF-8"?> 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="http://soap.sforce.com/schemas/class/WebService"> 
<soapenv:Body> 
<soapenv:Fault> 
<faultcode>sf:INVALID_SESSION_ID</faultcode> 
<faultstring>INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session</faultstring> 
</soapenv:Fault> 
</soapenv:Body> 
</soapenv:Envelope> 
+0

Bitte posten Sie mehr Details, was Sie versucht haben und das Problem. Fügen Sie auch die rohe Anfrage und Antwort hinzu. – Rao

Antwort

1

ich habe es bekommen. Zum erstmaligen Anmelden bei Salesforce benötigen Sie den Aufruf login() und die Sitzungs-ID. Danke

Verwandte Themen