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

Reply via email to