Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 93211 invoked from network); 11 Feb 2008 12:30:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2008 12:30:48 -0000 Received: (qmail 98300 invoked by uid 500); 11 Feb 2008 12:30:33 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 98290 invoked by uid 500); 11 Feb 2008 12:30:33 -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 98279 invoked by uid 99); 11 Feb 2008 12:30:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 04:30:33 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thakkar.rushikesh@gmail.com designates 72.14.204.228 as permitted sender) Received: from [72.14.204.228] (HELO qb-out-0506.google.com) (72.14.204.228) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 12:30:00 +0000 Received: by qb-out-0506.google.com with SMTP id e34so8319862qbe.6 for ; Mon, 11 Feb 2008 04:30:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=NFmgCTrbXXnCPG1ed00dWec0B6Zis1pItS61XhWyQoE=; b=cuHGQdVNU6zHVS01Cby2rFc1oMw7AemW+c7ZyCf8pYrANk1OgxbxxDrzirFk/hlnF9YqgY3BkS4g4gefhQuGTEEITnQoHnyB/vpBky4lia9lccBU9nmtgXYuhFHBVdXn+aBtGq93j2nXtMxdawEXNFNe2E9w2ERLjFo1inJJgsk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=TIsWU0gCp9ZYXjybvWCGnwEbau+qtLVT6tuP7tA161kD29akeFBKqZ795iyMZgGJTUVFtfRNr15ioR0JOMstwwykpqfMaDYSGzXb6sS5tgWLY/PBDYko+mYOqo3QHlSQ0Vfcwj4KDZ3Fi9+jBBzQA2DaX8ruHq0Rpjo3ezeu6nc= Received: by 10.64.150.18 with SMTP id x18mr31689209qbd.87.1202733005916; Mon, 11 Feb 2008 04:30:05 -0800 (PST) Received: by 10.65.139.20 with HTTP; Mon, 11 Feb 2008 04:30:05 -0800 (PST) Message-ID: Date: Mon, 11 Feb 2008 13:30:05 +0100 From: "Rushikesh Thakkar" To: axis-user@ws.apache.org Subject: Re: encoding of SOAP responses In-Reply-To: <88f5d710802110425n582d69bdh17d71dad1a88b6fe@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_82_29529817.1202733005907" References: <200802081004.m18A4nSi010725@localhost.localdomain> <88f5d710802110425n582d69bdh17d71dad1a88b6fe@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_82_29529817.1202733005907 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Oh yeah, excuse me.. Thanks Paul. On Feb 11, 2008 1:25 PM, Paul Fremantle wrote: > Unfortunately you've explained how to do it with Axis1 not Axis2. > > In Axis2 do: > > stub._getServiceClient().getOptions().setProperty( > org.apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING, > "ISO-8859-1"); > > No need to edit the generated stub. > > Paul > > On Feb 11, 2008 10:57 AM, Rushikesh Thakkar > wrote: > > Yes, It is possible. Please change the following line in your Stub > generated > > by WSDL2Java > > > > File: XxxxBindingStub.java > > > > > > > > In createCall() method: > > > > > > > > protected org.apache.axis.client.Call createCall() throws > > java.rmi.RemoteException { > > > > =85 > > > > =85 > > > > while (keys.hasMoreElements()) { > > > > java.lang.String key =3D (java.lang.String) keys.nextElement(); > > > > _call.setProperty(key, super.cachedProperties.get(key)); > > > > } > > > > // change it to the encoding you want.. > > > > _call.setProperty(org.apache.axis.client.Call.CHARACTER_SET_ENCODING, > > "ISO-8859-1"); > > > > > > > > synchronized (this) { > > > > =85 > > > > } > > } > > > > See if this works!! > > > > cheers, > > Rushikesh > > > > > > On 2/8/08, Jan Philipp Seng wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > I am using Axis2 1.3 with ADB. There is a demand to deliver the SOAP > > responses in latin1 (ISO-8859-1) instead of UTF-8. Can I change the > encoding > > of SOAP responses? > > > > > > > > > > > > Thanks > > > > > > Jan > > > > > > > > > > > > Gru=DF, > > > > > > Jan > > > > > > ______________________________________________ > > > > > > > > > > > > Jan Philipp Seng > > > > > > IT-Entwicklung > > > > > > > > > > > > TravelTainment AG > > > > > > Carlo-Schmid-Stra=DFe 12 > > > > > > 52146 W=FCrselen/Aachen > > > > > > Germany > > > > > > Tel: +49 (0)2405 - 4484-50 > > > > > > Fax: +49 (0)2405 - 4484-90 > > > > > > email: seng@traveltainment.de > > > > > > > > > > > > Amtsgericht Aachen, HRB 8173 > > > > > > Vorstand: Ralf Usbeck (Vors.), Michael Kalt; Aufsichtsratvorsitzender= : > > Philippe Ch=E9r=E8que > > > > > > > > > > > > http://www.traveltainment.de > > > > > > http://www.vidado.com > > > > > > > > > > > > > > -- > Paul Fremantle > Co-Founder and VP of Technical Sales, WSO2 > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > paul@wso2.com > > "Oxygenating the Web Service Platform", www.wso2.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > ------=_Part_82_29529817.1202733005907 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Oh yeah,
excuse me..

Thanks Paul.

On Feb 11, 2008 1:25 PM, Paul Fremantle <pzfreo@gmail.com> wrote:
Unfortunately you've explained how to do it with Axis1 not Axis2.
In Axis2 do:

stub._getServiceClient().getOptions().setProperty(org= .apache.axis2.Constants.Configuration.CHARACTER_SET_ENCODING,
"ISO-= 8859-1");

No need to edit the generated stub.

Paul

On Feb 11, 2008 10:57 AM, Rushikesh Thakkar <thakkar.rushikesh@gmail.com&g= t; wrote:
> Yes, It is possible. Please change the following line in your Stub gen= erated
> by WSDL2Java
>
> File: XxxxBindingStub.java
&= gt;
>
>
> In createCall() method:
>
>
>
> protected org.apache.axis.client.Call createCall() throws
&= gt; java.rmi.RemoteException {
>
>       =85
= >
> =85
>
> while (keys.hasMoreElements()) {
>> java.lang.String key =3D (java.lang.String) keys.nextElement();
>
> _call.setProperty(key, super.cachedProperties.get(key));
&g= t;
> }
>
> // change it to the encoding you want..
>= ;
> _call.setProperty(org.apache.axis.client.Call.CHARACTER_SET_ENCOD= ING,
> "ISO-8859-1");
>
>
>
> synchronized = (this) {
>
> =85
>
> }
>      = }
>
> See if this works!!
>
> cheers,
> Rush= ikesh
>
>
> On 2/8/08, Jan Philipp Seng <Seng@traveltainment.de> wrote:
> >
> >=
> >
> >
> > Hi,
> >
> >
> >
> > I am using Axis2 1.3 with ADB. There is a demand to = deliver the SOAP
> responses in latin1 (ISO-8859-1) instead of UTF-8.= Can I change the encoding
> of SOAP responses?
> >
> = >
> >
> > Thanks
> >
> > Jan
> >> >
> >
> > Gru=DF,
> >
> > Jan<= br>> >
> > ______________________________________________ > >
> >
> >
> > Jan Philipp Seng
> &= gt;
> > IT-Entwicklung
> >
> >
> >
&= gt; > TravelTainment AG
> >
> > Carlo-Schmid-Stra=DFe = 12
> >
> > 52146 W=FCrselen/Aachen
> >
> > Ge= rmany
> >
> > Tel: +49 (0)2405 - 4484-50
> >
= > > Fax: +49 (0)2405 - 4484-90
> >
> > email: seng@traveltainment.de
> >
> >
> >
> > Amtsgericht Aachen, HRB 81= 73
> >
> > Vorstand: Ralf Usbeck (Vors.), Michael Kalt; A= ufsichtsratvorsitzender:
> Philippe Ch=E9r=E8que
> >
>= >
> >
> > http://www.traveltainment.de
> >
> > http://www.vidado.com
&= gt; >
> >
>
>



--
Paul FremantleCo-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
=
blog: http://pzf= .fremantle.org
paul@wso2.com

"Oxygenating= the Web Service Platform", www.wso2.com

-------------------------------------------= --------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-m= ail: axis-user-help@ws.apac= he.org


------=_Part_82_29529817.1202733005907--