AW: [WSS4J] wss4j and SOAP 1.2 messages.
Dittmann Werner <[email protected]> Wed, 21 Jan 2004 07:54:13 +0100
| Newsgroups | gmane.text.xml.wss4j |
|---|---|
| Message-ID | <79D5F4B2D775204D9C7852EE41C547730141A561@mchh2a1e.mchh.siemens.de> |
Jason, WSS4J ist not yet ready for SOAP 1.2 (work in progress). I'm just working on a mehtod that detects the used SOAP version (checking the SOAP namespace of the envelope) and use that for further processing. Anyhow, you are welcome to send in some enhancements and patches :-). Regards, Werner > -----Ursprüngliche Nachricht----- > Von: wss4j-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > [mailto:wss4j-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] Im Auftrag > von Jason Essington > Gesendet: Mittwoch, 21. Januar 2004 02:25 > An: [email protected] > Betreff: [WSS4J] wss4j and SOAP 1.2 messages. > > > 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(Invocation > Strategy.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(Invocation > Strategy.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 > _______________________________________________ > wss4j-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wss4j-devel > ------------------------------------------------------- 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