Don't use SOAP Encoding. Define the service as style="wrapped" (in either java2wsdl or WSDD). You may need to edit the generated WSDL file and specify the type of the image as xsd:base64binary.
On 8/11/06, Nirmish Dholakia <[EMAIL PROTECTED]> wrote:
Thanks Anne, We have a service returning a string as XML. Following is the sample out-put of the service. <?xml version="1.0" encoding="UTF-8"?> <person> <firstname>Nirmish</firstname> <lastname>Dholakia</lastname> <age>25</age> </person> So in the WSDL the type of the output is defined as "type=soapenc:string". Now The requirement is like .. we want to append two images in the current websevice response. So the response would be like below. <?xml version="1.0" encoding="UTF-8"?> <person> <headerimage></headerimage> <firstname>Nirmish</firstname> <lastname>Dholakia</lastname> <age>25</age> <footerimage> </footerimage> </person> For producing above out put. Can I encode the image file using Base64 and pass this base64 string as element's(<headerimage> and <footerimage>) value. If yes then will the .Net client able to decode the same? Or is there any other way? Please give your inputs/comments. Thanks You Nirmish -----Original Message----- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 10, 2006 8:36 PM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: Re: Base64 Yes. Define it as type="xsd:base64binary". Anne On 8/10/06, Nirmish Dholakia <[EMAIL PROTECTED]> wrote: > > > Hi All, > > I have a web services written in Java. and the client for this > webservice is in .Net environment. > > I am passing an image file in this webservice using Base64 encoding. > > Now the question is will the .Net client able to decode the same? > > Please provide your views/inputs. > > Thank You > Nirmish > > > > -- > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: > 8/7/2006 > -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]