cancel
Showing results for 
Search instead for 
Did you mean: 

XWSSecurityException:Message does not conform to configured policy[ AuthenticationTokenPolicy(S) ]: No Security Header found

Former Member
0 Kudos

Hi Experts,

We have a scenario Proxy --> PI-->Webservices synchronous call.

Webservice system is outside our firewall network, So we have deployed 3rd party SSL certificate in PI NWA.

Firewall setting is also done to allow PI to received message from 3rd party IP address.

When we are trying to send SOAP request we are getting the response message back but it is giving below error and adapter level.

"com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]: No Security Header found; nested exception is com.sun.xml.wss.XWSSecurityException: com.sun.xml.wss.XWSSecurityException: Message does not conform to configured policy [ AuthenticationTokenPolicy(S) ]: No Security Header found".

At sxmb_moni we have response message created but it id not generating any payload. it is failing at first step of pipeline i.e "inbound message"

Any idea of what would be possible reasons for this error.

Our other scenario that is Webservice --> PI-->ECC Asynchronous is working fine and PI is receiving message from SOAP system.

Regards,

Navneet

Accepted Solutions (0)

Answers (1)

Answers (1)

smavachee
Active Contributor
0 Kudos

Not sure how useful it is gonna be in your scenario, but you can try..

Troubleshooting SOAP, HTTP and Mail Adapter Scenarios

Regards,

Sunil

Former Member
0 Kudos

Hi,

Please check this link:

https://scn.sap.com/thread/857081

Former Member
0 Kudos

HI,

Thanks for the reply.

When we checked the log at our Webservice application we are getting below Error log

com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source because the root element is not named "Envelope"

at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.lookForEnvelope(SOAPPartImpl.java:182)

at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:149)

at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:138)

at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:102)

at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:156)

at org.springframework.ws.soap.saaj.support.SaajUtils.getSaajVersion(SaajUtils.java:155)

at org.springframework.ws.soap.saaj.SaajSoapMessage.getSaajVersion(SaajSoapMessage.java:257)

at org.springframework.ws.soap.saaj.SaajSoapMessage.getImplementation(SaajSoapMessage.java:342)

at org.springframework.ws.soap.saaj.SaajSoapMessage.<init>(SaajSoapMessage.java:117)

at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:186)

at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:60)

at org.springframework.ws.transport.AbstractWebServiceConnection.receive(AbstractWebServiceConnection.java:90)

at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:86)

our Webservice team said that Webservice is WS security enabled and they are expecting user name and password in SOAP header.

How can I send user name and pwd along with SOAP message.

We are using Receiver SOAP adapter.

Regards,

Navneet

Former Member
0 Kudos

Hi,

Please check below links:

https://scn.sap.com/thread/2017911

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

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

You can use Axis adapter or xslt/ java mapping for this.

Regards,

Beena