axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Lulas <>
Subject RE: XML and web services
Date Tue, 29 Oct 2002 14:54:19 GMT
how do clients pass the xml file as a byte-array?

-----Original Message-----
From: James Black []
Sent: Tuesday, October 29, 2002 9:51 AM
Subject: Re: XML and web services

Barry Lulas wrote:

> I realize this is an Axis user group, but I wanted to pick your brains
> on a related issue.
> I have a generic web service that I deploy via Axis.  The web service
> takes in an XML file as a request and returns an XML file as a
> response.  My question is what is the best way to pass XML data
> to/from a web service?  Should I simply use strings?
> Any advise would be appreciated...

  Pass the xml file as a byte array, else you will have problems with
the xml wrapper that soap uses. The byte array is base64 encoded, so it
is a safe way to send it around.
  Also, you may want to zip the byte array before sending the xml file,
to help cut down on size.

View raw message