on 02-06-2013 9:27 AM
Hi all,
Can someone please help me in this scenario.
I've got a proxy to soap Axis adapter with signature and encryption and i'm having problems with WS addressing element(wsa:MessageID, wsa:To and wsa:Action) wherein the soapenv:mustUnderstand="0" tag is automatically added and i then get error "Disallowed element found inside Envelope : {http://schemas.xmlsoap.org/ws/2004/08/addressing}MessageID" .
These element are supposed to be like
<wsa:MessageID>34574fe0-afead7e4ff0a</wsa:MessageID><wsa:To>http://hostname/url</wsa:To><wsa:Action>urn:SoapAction</wsa:Action>
Instead they either come as: <wsa:MessageID soapenv:mustUnderstand="0">34574fe0-afead7e4ff0a</wsa:MessageID><wsa:To soapenv:mustUnderstand="0">http://hostname/url</wsa:To><wsa:Action soapenv:mustUnderstand="0">urn:SoapAction</wsa:Action>
with my module configuration as:
addr handler.type java:org.apache.axis.message.addressing.handler.AddressingHandler
Or
<ns1:To xmlns:ns1="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://hostname/url</ns1:To>
<ns2:MessageID xmlns:ns2="http://schemas.xmlsoap.org/ws/2004/08/addressing">34574fe0-afead7e4ff0a</ns2:MessageID>
<ns3:Action xmlns:ns3="http://schemas.xmlsoap.org/ws/2004/08/addressing">urn:SoapAction</ns3:Action>
where i'm building my own soap header in message mapping and payload extraction: SOAP Envelope and with my module configuration as:
addr handler.type java:org.apache.axis.message.addressing.handler.AddressingHandler
remover handler.type java:com.sap.aii.axis.soap.HeaderRemovalHandler
remover namespace http://schemas.xmlsoap.org/ws/2004/08/addressing
prop handler.type java:com.sap.aii.axis.soap.MessageContextPropertiesHandler
prop key.01 set addressing.namespace.URI
prop value.01 http://www.w3.org/2005/08/addressing
Thank you for and regards, Katlego
Can you please provide the configuration you did. I also have the similar requirement where I need to sign and validate my soap synchronous request with WS Security. I also need WS Addressing in soap header.
How to add WSA in soap header along with WSSE.
I have opened this thread but no help yet.
Do I need to use Soap or Axis adapter
Thanks
Sapna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have not yet managed to get this right and now I think I should deploy Axis 2 framework, maybe it will work.
Has anyone deployed Axis 2? And if yes, is there a similar note to this 1039369.
Thank you and regards, Katlego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.