Hi,

I currently using JAXME binding with Axis 2 but have run into a problem with
object inheritance where ObjectA extends ObjectB but the are in different
namespace.

I have a situation where I have an Object type (nameSpaceB:AddressType)
which is the extension of another type (nameSpaceA:GenericType) defined in a
separate xsd and name space

        <xsd:complexType name="SpecificType">
                <xsd:complexContent>
                        <xsd:extension base="nameSpaceA: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="nameSpaceA: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 SpecificType
and send it I get a DataBinding exception.

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

However from further testing I have found that if the two objects are in the
same namespace everyhting is ok. Is this a known limitation with JAXMe or is
it just a configuration step that I am missing.

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to