I am trying to call Salesforcce.com web service from SAP using ABAP proxy. I have generated ABAP proxy using Salesforce WSDL. I managed to call salesforce webservice (via HTTPS) login method successfully and got the response (SOAP message with new url and session ID) from Salesforce. After succesfull authentication, I am trying to place a query on Saflesforce system and the response is "URL is not reset, set the url returned from salesforce".
I have to set the new url (i got from login response)in the SOAP header for the subsequent calls to salesforce. How can I get access to SOAP headers in ABAP?
Response payload from SF is as follows:
<?xml version="1.0" encoding="utf-8"?>
I tried to set the response payload to request payload in my webservice call and it didn't work.. I assumed that url,sessionid and user info defined in request payload are used in webservice call.
How can I set the url and session id returned from salesforce for the subsequent calls?
Has anybody have experience changing the SOAP headers from ABAP.