axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rushikesh Thakkar" <thakkar.rushik...@gmail.com>
Subject Re: encoding of SOAP responses
Date Mon, 11 Feb 2008 12:30:05 GMT
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>
> 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 {
> >
> >       …
> >
> > …
> >
> > while (keys.hasMoreElements()) {
> >
> > java.lang.String key = (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) {
> >
> > …
> >
> > }
> >       }
> >
> > See if this works!!
> >
> > cheers,
> > Rushikesh
> >
> >
> > 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ß,
> > >
> > > Jan
> > >
> > > ______________________________________________
> > >
> > >
> > >
> > > Jan Philipp Seng
> > >
> > > IT-Entwicklung
> > >
> > >
> > >
> > > TravelTainment AG
> > >
> > > Carlo-Schmid-Straße 12
> > >
> > > 52146 Würselen/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érèque
> > >
> > >
> > >
> > > 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
>
>

Mime
View raw message