axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [Axis2] Marshalling Extened Objects
Date Fri, 18 Aug 2006 13:15:48 GMT
Please log a bug report if the problem still exists in a nightly
build. Please upload the wsdl/service code/client code as well.

thanks,
dims

On 8/18/06, Brian Dillon (ext. 944) <Brian.Dillon@fineos.com> wrote:
> Hi,
>
> I am tring to move from Axis 1.3 to Axis 2. I currently using JAXME binding
> with Axis 2 for my tests but have run into a problem with objects which
> extend other object types.
>
> I have a situation where I have an Object type (addressSpaceB:AddressType)
> which is the extension of another type (addressSpaceA:GenericType) defined
> in a separate xsd and address space
>
>         <xsd:complexType name="SpecificType">
>                 <xsd:complexContent>
>                         <xsd:extension base="addressSpaceA:GenericType">
>                                 <xsd:sequence>
>                                         <xsd:element name="SomeValue"
> type="xsd:string" minOccurs="0"/>
>                                         ......
>                                 </xsd:sequence>
>                         </xsd:extension>
>                 </xsd:complexContent>
>         </xsd:complexType>
>
> The WSDL has an operation defined which takes the generic type as a
> parameter;
>
>         <wsdl:message name="sendRequest">
>                 <wsdl:part name="input"
> element="addressSpaceA:GenericType"/>
>         </wsdl:message>
>
> If on the client side I create an object of type GenericType and invoke the
> service everything is ok. However if I create an object of type AddressSpace
> and send it I get a DataBinding exception;
>
> org.apache.axis2.AxisFault: Data binding error
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOpera
> tion.java:287)
>         at
> bdtest.client.Axis2TestSoapServiceStub.sendBORoundtrip(Axis2TestSoapServiceS
> tub.java:327)
>         at testClient.main(testClient.java:100)
>
> I.e.;
>
>
>
>                         GenericType bo = new GenericTypeImpl();
>                         bo.setSomeValue("testVal");
>                         GenericType retBO = (GenericType)
> persClientStub.send(bo);//This Works
>
>                         SpecificType testAddr = new SpecificTypeImpl();
>                         SpecificType retAddr = (SpecificType)
> persClientStub.sendBORoundtrip(testAddr);//This fails
>
> Is there anyway around this ? I have used this type of extension with axis
> 1.3 so would have thought that I shouldn't have issues with it in Axis 2.
>
> Thanks,
>
> Brian
>
> __________________________________________________________
> The information contained in this e-mail is confidential, may be privileged and is intended
> only for the user of the recipient named above. If you are not the intended recipient
or a
> representative of the intended recipient, you have received this e-mail in error and
must
> not copy, use or disclose the contents of this e-mail to anybody else.
>
> If you have received this e-mail in error, please notify the sender immediately by return
> e-mail and permanently delete the copy you received.  This e-mail has been swept for
> computer viruses. However, you should carry out your own virus checks.
> Registered in Ireland, No. 205721.  http://www.FINEOS.com
> __________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
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