You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Gus Delgado <gu...@netquotient.com> on 2001/08/07 18:51:11 UTC

sending base64 encoding

I'm sending an XML file back from the server to the client.
How can I send an encodingType of base64 on one of the Elements of the
XML file I send back?

example of what I'm trying to do:

<my-tag>
  <thisnormaltag>hello</thisnormaltag>
  <thisbase64tag encoding=base64>???</thisbase64tag>
</my-tag>

I'm really struggling with this? thanks
gus

Re: sending base64 encoding

Posted by William Brogden <wb...@bga.com>.

Gus Delgado wrote:
> 
> I'm sending an XML file back from the server to the client.
> How can I send an encodingType of base64 on one of the Elements of the
> XML file I send back?
> 
> example of what I'm trying to do:
> 
> <my-tag>
>   <thisnormaltag>hello</thisnormaltag>
>   <thisbase64tag encoding=base64>???</thisbase64tag>
> </my-tag>
> 
> I'm really struggling with this? thanks
> gus

Here is an example response from Apache SOAP - the method returned
a byte array.

<ns1:doXorResponse xmlns:ns1="urn:Exercise" 
 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns2:base64">BSkpPmhYXBQ3XFRyIiMlOkJXFCxSETo0ITEmEVdCJl==
</return>
</ns1:doXorResponse>

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Re: sending base64 encoding

Posted by William Brogden <wb...@bga.com>.

Gus Delgado wrote:
> 
> I'm sending an XML file back from the server to the client.
> How can I send an encodingType of base64 on one of the Elements of the
> XML file I send back?
> 
> example of what I'm trying to do:
> 
> <my-tag>
>   <thisnormaltag>hello</thisnormaltag>
>   <thisbase64tag encoding=base64>???</thisbase64tag>
> </my-tag>
> 
> I'm really struggling with this? thanks
> gus

Here is an example response from Apache SOAP - the method returned
a byte array.

<ns1:doXorResponse xmlns:ns1="urn:Exercise" 
 SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/" 
xsi:type="ns2:base64">BSkpPmhYXBQ3XFRyIiMlOkJXFCxSETo0ITEmEVdCJl==
</return>
</ns1:doXorResponse>

-- 
WBB - wbrogden@lanw.com
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2