You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by "Rory Braybrook (DSLAK)" <Ro...@datacom.co.nz> on 2002/04/19 00:17:12 UTC

MS Word document using SOAP

Can the object returned from a SOAP call be a MS Word document ?

I am thinking of sending some parameters to a "document generator" (which
uses Word) which populates the document and then returns it. The client is
Java. The server is MS.

How would I do this ? Would I have to encode to something like Base64 ?

Any pointers or hints would be appreciated.

Thanks



Re: MS Word document using SOAP

Posted by "David B. Bitton" <da...@codenoevil.com>.
Sure.  All you need to do is base64 encode the Word doc and mark the return
datatype as xsl:base64binary.  I am doing this in reverse where I create a
PDF within Java and return is to a SOAP Toolkit 2.0 client.  Use the
org.apache.soap.encoding.soapenc.Base64 class for decoding the base64 binary
data.
--

David B. Bitton
david@codenoevil.com
www.codenoevil.com

Code Made Fresh Daily™
----- Original Message -----
From: "Rory Braybrook (DSLAK)" <Ro...@datacom.co.nz>
To: <so...@xml.apache.org>
Sent: Thursday, April 18, 2002 6:17 PM
Subject: MS Word document using SOAP


> Can the object returned from a SOAP call be a MS Word document ?
>
> I am thinking of sending some parameters to a "document generator" (which
> uses Word) which populates the document and then returns it. The client is
> Java. The server is MS.
>
> How would I do this ? Would I have to encode to something like Base64 ?
>
> Any pointers or hints would be appreciated.
>
> Thanks
>
>