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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> >
> >
> >
> > 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
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]