You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Sen, Puny" <Pu...@softwareagusa.com> on 2002/10/28 02:25:25 UTC

Sending arbitrary XML document

Hi all,

What would be the best strategy for sending an arbitrary XML document as a
parameter using Axis?

Using document/literal, and a <any/> sequence, generates a MessageElement[]
array, but I haven't been able to test because the generated WSDL has errors
(see previous post).

Another option seems to be using a type of javax.xml.transform.Source, but
this generates a type of "apache-xml", which doesn't seem to be
interoperable with other frameworks.

Another option would be as a mime-attachment. Would this be interoperable
with .NET?

Thanks,
Puny

Re: Sending arbitrary XML document

Posted by James Black <jb...@ieee.org>.
Sen, Puny wrote:

>What would be the best strategy for sending an arbitrary XML document as a
>parameter using Axis?
>
  Convert the string to an array of bytes, then send it.  It is base64 
encoded, so it will be sent fine.