Salesforce.com

Mark, Thanks for the quick reply. The document type should have only sessionID and serverURL or do I need to have the entire structure like other imported documents

Thanks

You need to match exactly the structure of the SessionHeader element as described in the WSDL’s types section.

Mark

Hi

I was trying to integrate with salesforce.com and this thread has been very helpful . I had to struggle a bit to get the the getServerTimestamp working. I am attaching sample code so that others can take this a reference to start .

Note : In order to use this ,you should have a developer account with salesforce.

[URL=“Developer Portal | Salesforce Developers”]http://www.salesforce.com/developer/[/URL]

Sample soap messages can be found @ [url]http://wiki.apexdevnet.com/index.php/Sample_SOAP_Messages[/url]

Thanks
Srini
getServerTimestamp.zip (12.3 KB)

I am also facing a similar issue. We are using webMetods 7.1.2 with latest webservices fixes.
The login connector works fine and returing the sessionID and server URL.
But the upsert connector webservice is not preparing the soap body by using the pub.client.soapClient.

HTTP Get <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV=“[URL]http://schemas.xmlsoap.org/soap/envelope/[/URL]” xmlns:SOAP-ENC=“[URL]http://schemas.xmlsoap.org/soap/encoding/[/URL]” xmlns:xsd=“[URL]http://www.w3.org/2001/XMLSchema[/URL]” xmlns:xsi=“[URL]http://www.w3.org/2001/XMLSchema-instance[/URL]”>
<SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”><tns:SessionHeader xmlns:tns=“urn:enterprise.soap.sforce.com”>
tns:sessionIdXXXXX</tns:sessionId></tns:SessionHeader></SOAP-ENV:Header>
SOAP-ENV:Body
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I am creating soap header and body for upsert request using soap util services now and sending the request to salesforce now using pub.client.soapHTTP.

Has someone been able to update/upsert to salesforce successfully from webMethods using the connectors generated from salesforce enterprise wsdl without any modification on the doctypes and connectors.