I am writing a non rpc web service where the root of the message is attached to
the body of a SOAPMessage.
I am converting a org.w3c Nodes to SoapElements in this fashion:
soapElement = soapFactory.createElement(DOMNode.getNodeName());
which I build up to add to the SOAPBody like this:
body.addChildElement(soapElement);
The message seemd to be constructed OK when i log what has been produced, but
when I do a:
soapConnection.call(soapMessage,url)
I get an error:
java.lang.ClassCastException: org.jboss.axis.message.SOAPElementAxisImpl
at org.jboss.axis.message.SOAPBodyAxisImpl.getFirstBody(SOAPBodyAxisImpl
.java:235)
at org.jboss.axis.message.SOAPEnvelopeAxisImpl.getFirstBody(SOAPEnvelope
AxisImpl.java:242)
at org.jboss.axis.client.Call.invoke(Call.java:2980)
at org.jboss.axis.client.Call.invoke(Call.java:2053)
at org.jboss.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:1
17)
I dont understand why this is. Can any 1 shed any light on this.
Cheers,
JonnyEmm
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877954#3877954
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877954
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user