cancel
Showing results for 
Search instead for 
Did you mean: 

UsernameToken in SOAP Receiver Channel

Former Member
0 Kudos

Dear Experts,

I need to pass the UsernameToken in the SOAP Header in receiver communication channel in SAP PI 7.3 system. Does it possible with SOAP Adpter using HTTP Transport Protocol?

In between, I came to know that it is possible using the SOAP Adapter with HTTP (Axis) transport Protocol, but it is resulting into the below error. Anybody faced such issue or any ideas? This is going out be a critical stopper to all our outbound interfaces. Please provide your comments to over this issue or sending UsernameToken in SOAP Header.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

- <!--  Inbound Message

  -->

- <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

  <SAP:Category>XIAdapterFramework</SAP:Category>

  <SAP:Code area="MESSAGE">GENERAL</SAP:Code>

  <SAP:P1 />

  <SAP:P2 />

  <SAP:P3 />

  <SAP:P4 />

  <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.axis.app, BC-XI-CON-SOP) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.axis.modules.AFAdapterBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.axis.modules.AFAdapterBean@72a33daf for bean sap.com/com.sap.aii.axis.app*xml|com.sap.aii.adapter.axis.ejb.jar*xml|AFAdapterBean in application sap.com/com.sap.aii.axis.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.lib.mp.module.SModule.process(com.sap.aii.af.lib.mp.module.ModuleContext, com.sap.aii.af.lib.mp.module.ModuleData) of an object loaded from field com.sap.aii.adapter.axis.modules.AFAdapterBean.core of an object loaded from local variable 'this'</SAP:AdditionalText>

  <SAP:Stack />

  <SAP:Retry>M</SAP:Retry>

  </SAP:Error>

Thanks

Nalini

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184681
Active Contributor
0 Kudos

Hi,

The topic of influencing SOAP Header with SOAP/HTTP was widely discussed already, with the last question on that being posted not more than today: . Please have a look at that one or use search function to find more.

Regards,

Greg

Former Member
0 Kudos

Hi Greg,

All the forums are discussing more about the SOAP/HTTP or alternatives using XSLT / Java Mappings, but I am looking for a solution to SOAP/HTTP(Axis) and with normal graphical mapping,which made me to raise a new thread.

Thanks

Nalini

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Soap Axis adapter and WS adapter supports username token authentication.  WS adapter can be used mainly for sap systems integrations. You might want to check these links for SOAP AXIS Adapter

http://scn.sap.com/people/pravesh.puria/blog/2009/08/26/adding-usernametoken-timestamp-in-soap-adapt...

See if that helps.

Also check whether all the prerequisite jars are added in the soap adapter.

http://help.sap.com/saphelp_nw04/helpdata/en/45/a4f8bbdfdc0d36e10000000a114a6b/content.htm