[WSS4J] wss4j and SOAP 1.2 messages.
Jason Essington <[email protected]> Tue, 20 Jan 2004 18:24:48 -0700
| Newsgroups | gmane.text.xml.wss4j |
|---|---|
| Message-ID | <[email protected]> |
I am having trouble signing a SOAP 1.2 message.
The WSDoAllSender seems to have trouble with the SOAP 1.2 envelope
namespace, it claims:
WSDoAllSender: Signature: error during message
procesingorg.apache.ws.security.WSSecurityException: General security
error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found:
http://schemas.xmlsoap.org/soap/envelope/)
at
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:
349)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:151)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:151)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2650)
at org.apache.axis.client.Call.invoke(Call.java:2633)
at org.apache.axis.client.Call.invoke(Call.java:2325)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:1743)
at com.grcs.wss.test.WSSClientTest1.main(WSSClientTest1.java:78)
So, it appears that wss4j cannot find the body of a soap 1.2 message.
It's looking for the "http://schemas.xmlsoap.org/soap/envelope/"
namespace whereas SOAP 1.2 messages use the
"http://www.w3.org/2003/05/soap-envelope" namespace.
Should wss4j (and xmlsec) work with SOAP 1.2? Or am I way too far ahead
of the curve?
-jason
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn