XMLBeans people, sorry for answering this Axis2 question here. I just
wanted to help a guy who is in trouble.
Uday Kamath wrote:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Found
SOAPElement [<m:String
xmlns:m="http://www.bea.com/examples/PurchaseOrder">1234</m:String>].
But was not able to find a Part that is registered with this Message
which corresponds to this SOAPElement. The name of the element should be
one of these[string].>
My question is
1. Does Call automatically create SOAP Envelope and Body. If not how do
I do it?
Yes, Axis2 Call api will automatically create a SOAP Envelope and a body
for you. In that body only your payload will go.
2. Does the code look right
Code seems ok, to me. But change name of "String" to "string" and remove
the namespace.
OMElement value = factory.createOMElement("string", null);
and better use following method to add text to the element. The method
you used is also correct, but there is a more convenient way.
value.setText("1234");
BTW, Uday please post these kinds of questions to [EMAIL PROTECTED]
-- Chinthaka
Please soomeone
Thanks
---------------------------------------------------------------------
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]