Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 99319 invoked from network); 25 Mar 2006 16:19:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Mar 2006 16:19:09 -0000 Received: (qmail 43324 invoked by uid 500); 25 Mar 2006 16:19:02 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 43304 invoked by uid 500); 25 Mar 2006 16:19:01 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 43293 invoked by uid 99); 25 Mar 2006 16:19:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Mar 2006 08:19:01 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of atmanes@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO pproxy.gmail.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Mar 2006 08:19:00 -0800 Received: by pproxy.gmail.com with SMTP id i49so836772pyi for ; Sat, 25 Mar 2006 08:18:39 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gHX+EgjBglM/uyhs7Cyye3Sftup15yM9CU/nBiOfMyjwK7mHFwP4+zGzKHEQwlbEXpHcnoCCYAoBu8q0zkiLjJXYariicnfQI42NW2DE39V1ExryxXkeD8NV6qLOq1BtMyEJ9MFwXCCoqaAvV3ZimKv0qoxAuhKKwoZAADaWi2o= Received: by 10.35.70.17 with SMTP id x17mr264172pyk; Sat, 25 Mar 2006 08:18:39 -0800 (PST) Received: by 10.35.96.17 with HTTP; Sat, 25 Mar 2006 08:18:39 -0800 (PST) Message-ID: Date: Sat, 25 Mar 2006 11:18:39 -0500 From: "Anne Thomas Manes" To: axis-user@ws.apache.org Subject: Re: web-service String parameter encoding problem In-Reply-To: <002601c64f38$3726f260$e802010a@wasko.pl> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1935_24498568.1143303519428" References: <002601c64f38$3726f260$e802010a@wasko.pl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_1935_24498568.1143303519428 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The embedded XML document must be escaped. That's why it looks funny. Anne On 3/24/06, Anna Krajewska wrote: > > Hi > > I have a problem with String parameter encoding. I have a web-service tha= t > takes as a parameter java.lang.String which is serialized xml DOM > document. This document has proper header: > > > > but when I try to save my SOAPEnvelope with my own created BaseHandler: > > Handler serviceHandler =3D msgContext.getService(); > MessageContext msgctx =3D msgContext.getCurrentContext(); > org.apache.axis.Message msg =3D msgctx.getCurrentMessage(); > File file =3D new File("C:\\envelope.xml"); > FileOutputStream fos =3D new FileOutputStream(file); > msg.writeTo(fos); > fos.flush(); > fos.close(); > > the whole SOAPEnvelope looks good but the xml document (String parameter) > looks terrible. I don't know how to force axis to write that string for m= e > also in UTF-8 encoding to the envelope - just as the whole envelope is > encoded. Is it possible anyway? > > HELP! > > ania > > > > > ------=_Part_1935_24498568.1143303519428 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The embedded XML document must be escaped. That's why it looks funny.
Anne

On 3/24/06, Anna Krajewska <a.krajewska@wasko.pl > wrote:
Hi
 
I have a problem with String parameter= encoding. I=20 have a web-service that takes as a parameter java.lang.String which is=20 serialized xml DOM document. This document has proper header:
 
<?xml version=3D"1.0" enc= oding=3D"UTF-8"=20 ?>
 
but when I try to save my SOAPEnvelope= with my=20 own created BaseHandler:
 
Handler serviceHandler =3D=20 msgContext.getService();
MessageContext msgctx =3D=20 msgContext.getCurrentContext();
org.apache.axis.Message msg =3D=20 msgctx.getCurrentMessage();
File file =3D new=20 File("C:\\envelope.xml");
FileOutputStream fos =3D new=20 FileOutputStream(file);  
msg.writeTo(fos);
fos.flush();fos.close();
 
the whole SOAPEnvelope looks good but = the xml=20 document (String parameter) looks terrible. I don't know how to force axis = to=20 write that string for me also in UTF-8 encoding to the envelope - just= as=20 the whole envelope is encoded. Is it possible anyway?
 
HELP!
 
ania
 
 
 
 

------=_Part_1935_24498568.1143303519428--