Hi Mark
I am also trying to integrate with salesforce.com. Can you please guide me in the process. I found the following posting from you.
How exactly you added the session ID and serverurl to the soap header. Can you attach a sample
Thanks
[FONT=Arial]The “enterprise.wsdl” generated by the development server defines three different schemas in the “types” section. [/font]
Each of these schemas has a namespace and two of them import the definitions of one of the other schemas. The third schema which defines the enumerations of error types for the fault messages does not appear to depend on the other two.
These three schemas can be extracted, as I’m guessing you have done, into individual XSD files. The first two must use import statements to reference each other.
These XSD files can be imported as Integration Server schemas and used to create document types for the Salesforce.com operations that you need to support.
IS will generate document types when creating web service connectors, but will not generate the doc types (or mapping statements) to create header elements and add them to the soap request.
I was able to generate a web services connector from the enterprise.wsdl file. I could run the login service with no changes, but had to create a document type to be used to build the SessionHeader document to hold the sessionId returned by the login service. This SessionHeader doc must be added as a soap header in subsequent service calls.
You must also use the URL retuned by the login message as the endpoint address in subsequent calls. Once I figured that out, I had the getServerTimestamp service up and running in no time.
The Salesforce.com development server could process the login request and subsequent getServerTimestamp request in 2-4 seconds on average. I’m sure this would be a bit longer for servers with production-level data volumns and transaction loads.
[I]BTW, the attached XML file contains a valid getServerTimestamp request showing the SessionHeader soap header containing the sessionId. The sessionId and endpoint address are two of the parameters returned by the login request.
[/i]
#API-Management#webMethods#soa