+ Start a Discussion
MktdevMktdev 

First integration help

Hi,

 

I am writing my first integration between one salesforce to another salesforce.

 

In First salesforce, I wrote one simple web service class which will create a new account based on the information coming from another salesforce.

 

In second salesforce, I have used workflow rule with any new account created here will send a outbound message to first salesforce .Outbound message has endpoint URL which has been generated by first salesforce class wsdl generated by salesforce.

 

 

but when I create account in second salesforce then sends the request but getting a error of "INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session".

 

So can any help me to understand the issue:

  1. Why this error?
  2. I guess that UserID and Pwd not passed so how to do that?
  3. Do this require same user credential.

Please help

 

Regards,

mktg

Pat PattersonPat Patterson

Hi mktg,

 

I think the problem is that you cannot make calls between Salesforce orgs in this way - only external clients can call your web service, and your workflow can only call an external web service. You should look at the 'Salesforce to Salesforce' feature - http://wiki.developerforce.com/index.php/An_Introduction_to_Salesforce_to_Salesforce and https://help.salesforce.com/apex/HTViewHelpDoc?id=business_network_intro.htm&language=en

 

Cheers,


Pat

Pat PattersonPat Patterson

Meant to add - if you want a simple way to test your workflow then http://www.postbin.org/ works great.

 

Cheers,


Pat