Attachments are tricky -- the industry has not yet adopted a standard
way to send attachments (the industry is converging on MTOM, but
products don't support it yet). It's also difficult to properly secure
them, so I generally discourage folks from using attachments at this
time.
Unless it's essential for you to maintain the full-fidelity of the XML
document (including the <?xml> root element), I recommend sending your
document as an XML fragment within the SOAP envelope. If you must
maintain the <?xml> root element, then I suggest that you convert the
XML document to a string, and send it inside the SOAP element.
As a general rule, I recommend using the "wrapped" document/literal
style of service. If you look the archives of this list, you can find
a lot of information on the "wrapped" style.
Anne
On 7/20/05, Krthekeyan Suriyanarayanan <
s.krthekeyan@verc...> wrote:
> How can we send xml document as attachment using document style webservice.
>
> Regards,
> krthekeyan.s
>
> Harm de Laat wrote:
>
> >Hi all,
> >
> >I'm currently in the process of learning Axis.
> >
> >Currently I have succesfuly set up Axis on JBoss and WebLogic.
> >I also followed some tutorials on the net speaking about RPC style SOAP.
> >
> >Unfortunatly I cannot find a good tutorial about document style Webservices.
> >
> >Can somebody recommend a tutorial or good book about Document Style Webservices?
> >
> >Many thanks,
> >
> >Regards,
> >
> >Harm de Laat
> >Ciber Netherlands
> >
> >
> >
> >
>
>
opensubscriber is not affiliated with the authors of this message nor responsible for its content.