cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Receiver Adapter Error: TEXT/HTML; 500 Internal Server Error

Former Member
0 Kudos

Hi Experts,

I'm working on a synch scenario Proxy <-> PI <-> SOAP Web Service. The web service is working fine from SOAP UI tool after adding the WS-Security Configuration in SOAP UI project.

In SAP PI, using the SOAP Receiver adapter where getting the 500 Internal server error.

Parameter in channel: Target URL, Authentication (User name and Password), provided the Key store and certificate entry. SOAP action is blank, no additional checks was selected. The WS publisher said seems the username and password are not passing to the WS application server. Below is the error message provided.

Error stating “These policy alternatives can not be satisfied: {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}UsernameToken”.

Why the user name and password is not passing in the SOAP request and how to solve this issue. The certificate was downloaded from the following URL and stored in key store.

http://cacerts.digicert.com/DigiCertHighAssuranceCA-3.crt

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mark,

Thanks for your reply. I had a successful run from SOAP UI test tool. The Web Service hosting application side the error is as follows.

Error stating “These policy alternatives can not be satisfied: {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SupportingTokens {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702

}UsernameToken”.


They request receiving side of the application guy says the user name and password are not passing in the Request.


In SOAP UI test tool, initially I used the user name and password with basic authentication and DIDn't created any WS-Security Configuration in SOAP UI, it returned the same error. After the WS-Security Configuration for outgoing requests in SOAP UI it started working successfully.


So, why the credentials are not passing to the web service application from SAP PI SOAP receiver adapter?


Is there any place in SAP PI where we configure the WS-Security Configuration?


Thanks!


Ashwin


former_member184720
Active Contributor
0 Kudos

Below blog should address your need -

WS-Security on PI 7.3 | SCN

Former Member
0 Kudos

Hi Hareesh,

I tried with the AXIS framework but getting the following error. On PI 7.1 SP 11.

Adapter Framework caught exception: (Failed in component: sap.com/com.sap.aii.axis.app, BC-XI-CON-AFW-TAD) 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@59196b23 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 a null object loaded from field com.sap.aii.adapter.axis.modules.AFAdapterBean.core of an object loaded from local variable 'this'


Thanks for your help!


Kalyan

former_member184720
Active Contributor
0 Kudos

Have you installed the required components? Did you check the status using

http://<system_host>:<system_port>/XIAxisAdapter/MessageServlet

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Aswani,

You have to do a successful execution of your request using a third-party application such as SOAP UI. Once you have identified the message format and the HTTP headers needed(if any), then you can try replicating it in PI.

Regards,

Mark