cancel
Showing results for 
Search instead for 
Did you mean: 

Error while SOAP LookUp in PI 7.3 Single Stack.

Former Member
0 Kudos

Hi Bhavesh,

The following error is obtained:

*** START APPLICATION TRACE ***

  1. Errorcom.sap.aii.mapping.lookup.LookupException: Exception

during processing the payload. Error when calling an adapter by using the

communication channel CC_SOAP_Receive_SessionCreate (Party: , Service:

BC_Successfactors_Two_D, Object ID: 6c1a8e6f431136dbab6806676d0d85e0) XI AF API

call failed. Module exception:

'com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve

outbound binding for the given P/S/A values:

FP=;TP=;FS=Mapping;TS=BC_Successfactors_Two_D;AN=Successfactors_Sync_In;ANS=http://DemoSuccessfactors/SessionIDCreate/PS001;

in the current context [Unknown]. '. Cause Exception: 'Couldn't retrieve

outbound binding for the given P/S/A values:

The binding between receiver channel, business component and namespace is visible in the sceenshots given.

Can you please help in pointing the mistake in this scenario?

I am using the following SOAP lookup code in Single stack PI 7.30:

AbstractTrace trace = container.getTrace();

String sessionId = "";

String loginxml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:sfobject.sfapi.successfactors.com\"><soapenv:Header/><soapenv:Body><urn:login><urn:credential><urn:companyId>CompanyID</urn:companyId><urn:username>USERNAME</urn:username><urn:password>PASSWORD</urn:password><urn:developerKey/></urn:credential><urn:param><urn:name/><urn:value/></urn:param></urn:login></soapenv:Body></soapenv:Envelope>";

try

{

Channel channel = LookupService.getChannel("BC_Successfactors_Two_D","CC_SOAP_Receive_SessionCreate");

SystemAccessor accessor = null;

accessor = LookupService.getSystemAccessor(channel);

  1. accessor.setOperationName("SOAPUI_Request");
  2. accessor.setOperationNamespace("http://DemoSuccessfactors/SessionIDCreate/PS001");

InputStream inputStream = new ByteArrayInputStream(loginxml.getBytes());

Payload payload = LookupService.getXmlPayload(inputStream);

Payload SOAPOutPayload = null;

SOAPOutPayload = accessor.call(payload);

InputStream inp = SOAPOutPayload.getContent();

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

DocumentBuilder builder = factory.newDocumentBuilder();

Document document = builder.parse(inp);

NodeList sessionId1 = document.getElementsByTagName("sessionId");

Node node = sessionId1.item(0);

if (node != null)

{

node = node.getFirstChild();

if (node != null)

{

sessionId = node.getNodeValue();

}

}

}

catch(Exception e)

{

  1. trace.addWarning("Error" + e);

throw new RuntimeException(" UserDefined: No Values from SOAPLOOKUP");

}

return sessionId;

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

ICO2

Bhargavakrishna
Active Contributor
0 Kudos

Hi Prabhat,

1) Perform CPA cache and Full cache once. and re-activate the communication channel.

2) If you still facing the issue, make some dummy changes and activate it again and see.

3)  test the interface with the test configuration tool, which is available in ID?

if not copy the payload from message mapping, and give the sender and receiver communication partys. and test it.. if everything is perfect all the components should be in green.

Then we can able to identify the issue,

For step by step guide for the same refer below link.

http://scn.sap.com/people/paul.medaille/blog/2005/06/24/test-your-xi-configuration-with-the-new-test...

also check the pipeline steps in moni and identify, in which step it went wrong..

Refer below link for the same issue

http://scn.sap.com/thread/3239187

Regards

Bhargava krishna

Former Member
0 Kudos

HI Prabhat,

This issue comes from PI bug. can you check your ICO one more time.. if you have created dummy ICO and used the same SOAP channel in the ICO your soap lookup should work in your mapping. can you try to run the mapping one more time and see if you get the same error.

Regards

Sreeram

Former Member
0 Kudos

Hi Sir,

Yes I have created a Dummy ICO as well as SOAP Receiver CC and called same channel in Dummy ICO on Receiver Side.

Stilll I am facing below error & My SAP PI Verison is SAP PI 7.3 SP08

Please see also attached error lookup screenshot.

error log ----------------------------------------------------

Error occurred calling adapter

[EXCEPTION]

com.sap.aii.af.service.api.AFException: XI AF API call failed.

Module exception: 'com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values:

FP=;

TP=;

FS=Mapping;

TS=BC_Successfactors_Two_D;

AN=Dummy_Inbound_Interface;

ANS=http://DemoSuccessfactors/SessionIDCreate/PS001; in the current context [Unknown]. '.

Cause Exception: 'Couldn't retrieve outbound binding for the given P/S/A values:

FP=;TP=;FS=Mapping;TS=BC_Successfactors_Two_D;AN=Dummy_Inbound_Interface;ANS=http://DemoSuccessfactors/SessionIDCreate/PS001; in the current context [Unknown]. '.

at com.sap.aii.af.service.api.AdapterAccess.sendMsg(AdapterAccess.java:214)

at com.sap.aii.af.service.api.AdapterAccess.call(AdapterAccess.java:100)

at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.process(AdapterProxyLocal.java:83)

at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.call(SystemAccessorInternal.java:55)

at com.sap.aii.mapping.lookup.SystemAccessor.call(SystemAccessor.java:115)

at com.sap.xi.tf._MessageMapping_SessionStatusfetch_UDF_.LookUP(_MessageMapping_SessionStatusfetch_UDF_.java:122)

Regards

PS

Former Member
0 Kudos

ICO Screenshot