cancel
Showing results for 
Search instead for 
Did you mean: 

SFDC To PI Integration - No sessionId is coming in response

Former Member
0 Kudos

Hi Sap Experts,


I am trying to connect SFDC from SAP PO/PI 7.4. I followed documents by prasanna and tried to recreate the same scenario.

Link of that document below -


http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50a76cfa-4966-2d10-aba7-da496d9b5...


Also used the same code for Java Mapping. Created a channel for SFDC Login and provided the server detail and Soap Action needed to call SFDC Login service to get sessionId. Though when I am testing this scenario, i am getting Null response from SFDC, hence no sessionId variable can be filled in Java Mapping.


I can't see any exception from java code, Please help me to resolve this issue.


Thanks in Advance!


Vidhi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Vidhi,

Are you getting any error in channel?

Try running the scenario from SOAP UI and see if ur getting the Session Id.

Former Member
0 Kudos

Hi,

Thanks for the response, I tried to run enterprise WSDL through Soap UI and everything working fine.

Though, w hen I test it in operation mapping, no error is coming and it is calling Login channel, and channel error says Error in Response and In OM logs I can see response is Null.

Not sure how to fix it.

Vidhi

former_member186851
Active Contributor
0 Kudos

Check the URL and soap action.

Former Member
0 Kudos

HI,

URL and Action are maintained properly.

Regards

Vidhi

former_member186851
Active Contributor
0 Kudos

Then could be a some issue in the code .Please post the code.

And did you deploy all the required certificates?

Former Member
0 Kudos

Raghu,

I am not getting any certificate error, and code is working though response is null from SFDC hence no sessionId.

Code is same as below wiki -

https://wiki.scn.sap.com/wiki/display/XI/SFDC+Integration+using+PI+7.1+-+How+to+add+SOAP+Envelope+in...

former_member186851
Active Contributor
0 Kudos

Hello Vidhi,

It could be due to multiple issues,

Incorrect XML request,Wrong soap actions,certificates missing..

So Just confirming all the things.

anupam_ghosh2
Active Contributor
0 Kudos

Hi Vidhi,

              The xml payload created by java mapping must match exactly with payload you are sending via SOAP UI.

Regards

Anupam

Former Member
0 Kudos

Thanks Anupam for the response.

XML payload for Login was created in the java mapping, contains login structure, and Login Channel doen't have tickmark on Do Not use SOAP Envelope, hence I assume login message will go in Soap Envelope similar to what we see in SOAPUI.

It is calling PI Login channel but getting error response.

Thanks

Vidhi

anupam_ghosh2
Active Contributor
0 Kudos

Well then, "tick do not use soap envelop" and create the entire payload just like soap ui is creating.

Regards

Anupam

former_member186851
Active Contributor
0 Kudos

That's what I told in first point, request XML

Check it and check add soap envelope if your adding soap envelope in mapping