You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Eran Chinthaka <ch...@opensource.lk> on 2006/03/31 16:08:48 UTC

Re: [Axis2] Encoding Style


Arnaud MERGEY wrote:
>  
> 
> Is it possible to use some Axis2 option to have encoding style attribute ?


options.setProperty(MessageContext.CHARACTER_SET_ENCODING,
<yourEncodingScheme>);

-- Chinthaka


Re: [Axis2] Encoding Style

Posted by Anne Thomas Manes <at...@gmail.com>.
Axis 2 does not [yet] support rpc/encoded.

Anne

On 3/31/06, Arnaud MERGEY <am...@sunopsis.com> wrote:
>
> Eran Chinthaka a écrit :
>
> Hi,
> It wasn't my question I didn't need to change charset, I need to have
> encodingStyle attribute for interoperability with GLU RPC web services
>
> Arnaud
> > Arnaud MERGEY wrote:
> >
> >>
> >>
> >> Is it possible to use some Axis2 option to have encoding style
> attribute ?
> >>
> >
> >
> > options.setProperty(MessageContext.CHARACTER_SET_ENCODING,
> > <yourEncodingScheme>);
> >
> > -- Chinthaka
> >  Hi,
> >
> > I'have same problem,
> >
> >
> >
> > I'have compared Axis 1.3 and Axis2 0.95 soap request generation (dynamic
> > invocation)
> >
> >
> >
> > Axis 1.3 (OK):
> >
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> "><soapenv:Body><ns1:getAnagramWithLetters
> > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xmlns:ns1="x"><letters xsi:type="xsd:string">DEFAIRE</letters><nbLetters
> > href="#id0"/></ns1:getAnagramWithLetters><multiRef id="id0"
> > soapenc:root="0"
> > soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > xsi:type="xsd:int"
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/
> ">7</multiRef></soapenv:Body></soapenv:Envelope>
> >
> >
> >
> > Axis2 (KO : org.apache.axis2.AxisFault: this is a soap-encoded endpoint)
> >
> > <soapenv:Envelope
> > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Header
> > /><soapenv:Body><getAnagramWithLetters
> > xmlns="http://www.webmethods.com/wsdl/AnagramImpl/
> "><letters>DEFAIRE</letters><nbLetters>7</nbLetters></getAnagramWithLetters></soapenv:Body></soapenv:Envelope>
> >
> >
> >
> > Is it possible to use some Axis2 option to have encoding style attribute
> ?
> >
> >
> >
> > Arnaud
> >
> >
> >
> >
> >> Dharminder Singh
> >> Wed, 26 Feb 2003 12:26:41 -0800
> >
> >> Hi all,
> >
> >> I have a question about the encoding style attribute. I'm using axis as
> > a client to a glue server and I'm setting the encoding style attribute
> on
> >> both the rpc element aswell as the body element in the request soap
> > message. It seems that glue expects the encoding style attribute to be
> >> on the envelope or body elements. If the encoding style attribute is
> not
> > on this level glue throws a "this is a soap encoded endpoint" exception.
> >
> >> I looked at the axis code specifically SOAPEnvelope.java and
> > SOAPBody.java and I see that attributes on the body element are never
> > serialized. Is this correct or am I doing >something wrong?
> >
> >> I appreciate any help.
> >
> >> Thanks
> >
> > Dharminder Singh
> >
>
>

Re: [Axis2] Encoding Style

Posted by Arnaud MERGEY <am...@sunopsis.com>.
Eran Chinthaka a écrit :

Hi,
It wasn't my question I didn't need to change charset, I need to have 
encodingStyle attribute for interoperability with GLU RPC web services

Arnaud
> Arnaud MERGEY wrote:
>   
>>  
>>
>> Is it possible to use some Axis2 option to have encoding style attribute ?
>>     
>
>
> options.setProperty(MessageContext.CHARACTER_SET_ENCODING,
> <yourEncodingScheme>);
>
> -- Chinthaka
>  Hi,
>
> I'have same problem,
>
>
>
> I'have compared Axis 1.3 and Axis2 0.95 soap request generation (dynamic 
> invocation)
>
>
>
> Axis 1.3 (OK):
>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ns1:getAnagramWithLetters 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
> xmlns:ns1="x"><letters xsi:type="xsd:string">DEFAIRE</letters><nbLetters 
> href="#id0"/></ns1:getAnagramWithLetters><multiRef id="id0" 
> soapenc:root="0" 
> soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
> xsi:type="xsd:int" 
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">7</multiRef></soapenv:Body></soapenv:Envelope>
>
>
>
> Axis2 (KO : org.apache.axis2.AxisFault: this is a soap-encoded endpoint)
>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header 
> /><soapenv:Body><getAnagramWithLetters 
> xmlns="http://www.webmethods.com/wsdl/AnagramImpl/"><letters>DEFAIRE</letters><nbLetters>7</nbLetters></getAnagramWithLetters></soapenv:Body></soapenv:Envelope>
>
>
>
> Is it possible to use some Axis2 option to have encoding style attribute ?
>
>
>
> Arnaud
>
>
>
>   
>> Dharminder Singh
>> Wed, 26 Feb 2003 12:26:41 -0800
>
>> Hi all,
>
>> I have a question about the encoding style attribute. I'm using axis as 
> a client to a glue server and I'm setting the encoding style attribute on
>> both the rpc element aswell as the body element in the request soap 
> message. It seems that glue expects the encoding style attribute to be
>> on the envelope or body elements. If the encoding style attribute is not 
> on this level glue throws a "this is a soap encoded endpoint" exception.
>
>> I looked at the axis code specifically SOAPEnvelope.java and 
> SOAPBody.java and I see that attributes on the body element are never 
> serialized. Is this correct or am I doing >something wrong?
>
>> I appreciate any help.
>
>> Thanks
>
> Dharminder Singh
>