RE: [Axis2] Marshalling Extened Objects

2006-08-18 Thread Brian Dillon (ext. 944)
Will do, 

thanks,

Brian 

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: 18 August 2006 14:16
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Marshalling Extened Objects

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) <[EMAIL PROTECTED]> 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
>
> 
> 
> 
> 
>  type="xsd:string" minOccurs="0"/>
> ..
> 
> 
> 
> 
>
> The WSDL has an operation defined which takes the generic type as a 
> parameter;
>
> 
>  element="addressSpaceA:GenericType"/>
> 
>
> 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(OutInAxi
> sOpera
> tion.java:287)
> at
> bdtest.client.Axis2TestSoapServiceStub.sendBORoundtrip(Axis2TestSoapSe
> rviceS
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Marshalling Extened Objects

2006-08-18 Thread Davanum Srinivas

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) <[EMAIL PROTECTED]> 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






..





The WSDL has an operation defined which takes the generic type as a
parameter;





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





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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Marshalling Extened Objects

2006-08-18 Thread Brian Dillon (ext. 944)
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






..





The WSDL has an operation defined which takes the generic type as a
parameter;





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