Try this:
// You need to do this to send an Element.
call.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML);
call.setTargetObjectURI ("service name here");
call.setMethodName ("methodName");
Vector params = new Vector ();
params.addElement(new Parameter("RequestData", Element.class, root,
null));
call.setParams(params);
call.invoke()
> -----Original Message-----
> From: Paula Young [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, July 25, 2001 8:21 AM
> To: Soap-User
> Subject: SOAP sending of Document element?
>
>
>
> Hi,
>
> This is probably more of a Xerces question, but I'm hoping someone in the
> SOAP community has some insight.
> I think most of my question relates to how to set the SOAP parameters
> vector and invoke the call.
>
> I'm looking for example SOAP client code that uses the DocumentBuilder
> class to build XML data and sends it.
> I need to know how to use the following "class.methods" and how they
> interoperate:
> Document.createElement()
> Element.appendChild()
> doc.getDocumentElement()
> ...
> Element root = Document.getDocumentElement();
> Vector params = new Vector();
> params.addElement(new Parameter("RequestData", Element.class, root,
> encodingStyleURI));
> call.setParams(params);
> call.invoke()
> .. I've looked all over, and found some SOAP server example, but I really
> need some SOAP client examples.
> Can anyone help me find a good resource that has a Java example? I'm
> using Apache SOAP 2.2 and Xerces 1.2.3.
>
> Thanks!
> Paula Young