Hi Alex,

It looks to me like you've run into an error in the Axiom code, though it's possible the cause is due to misuse of Axiom (either by the JiBX linkage code, or by Rampart). I suggest you add a Jira report on this against Rampart as the best starting point, with example code.

I haven't tested using Rampart yet, so I can't verify that it works with JiBX binding. In theory it should - but both the JiBX binding code and the Rampart code rely on Axiom, and some parts of the Axiom interface are not clearly defined, so there's considerable problem potential.

 - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alexander Grivnin wrote:
Hi,

 The usage of JiBX binding for issuing client calls works fine. But when we try 
adding WS-SECURITY to the picture axis throws the following exception.

 Any ideas?

 Thanks,

 Alex

[junit] Caused by: org.apache.axis2.AxisFault: WSDoAllReceiver: Error in 
converting to Document;

 nested exception is:

    [junit]     org.apache.ws.security.WSSecurityException: Error in converting 
SOAP Envelope to Doc

ument; nested exception is:

    [junit]     org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

    [junit]     at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:249)

    [junit]     at 
org.apache.rampart.handler.WSDoAllSender.processMessage(WSDoAllSender.java:86)

    [junit]     ... 23 more

    [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in 
converting SOAP Envelope

 to Document; nested exception is:

    [junit]     org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

    [junit]     at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:121)

    [junit]     at 
org.apache.rampart.handler.WSDoAllSender.processBasic(WSDoAllSender.java:247)

    [junit]     ... 24 more

    [junit] Caused by: org.apache.axiom.om.OMException: 
javax.xml.stream.XMLStreamException

    [junit]     at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:199)

    [junit]     at 
org.apache.axiom.om.impl.dom.NodeImpl.build(NodeImpl.java:469)

    [junit]     at 
org.apache.axiom.om.impl.dom.DocumentImpl.build(DocumentImpl.java:476)

    [junit]     at 
org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:107)

    [junit]     ... 25 more

    [junit] Caused by: javax.xml.stream.XMLStreamException

    [junit]     at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.updateLastNode(OMStAXWrapper.java:952

)

    [junit]     at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:913)

    [junit]     at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:116)

    [junit]     ... 28 more

    [junit] Test com.mercury.itg.ws.dm.SampleDemandServiceJibxTest FAILED

------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to