List Info

Thread: AXIS2 + wsdl2java + XMLBeans not producing correct binding




AXIS2 + wsdl2java + XMLBeans not producing correct binding
user name
2007-06-11 05:28:53


So I have a schema containing the following structure:

AbstractType
     ; /   
     /           extension
  ; /         ;
Type1    Type2


When I send the service an instance of Type1 for example using xsi:type="ns1:Type1", it should give me the Type1 class(which wsdl2java generated and which extends the AbstractType class).

Instead it gives me a class of type AbstractType!

Has anyone successfully done this? ; Does it work? ; Is this the expected behaviour of XML beans?  What am I doing wrong?

RE: AXIS2 + wsdl2java + XMLBeans not producing correct binding
country flaguser name
United States
2007-06-11 07:04:31

You will have to use the method changeType and typecast the result back to the Type1 class.

 

Mohana

 


From: Spike Mulligan [mailto:spikemulligan44gmail.com]
Sent: Monday, June 11, 2007 5:29 AM
To: userxmlbeans.apache.org
Subject: AXIS2 + wsdl2java + XMLBeans not producing correct binding

 



So I have a schema containing the following structure:

AbstractType
    ;  /   
     /           extension
   /         ;
Type1    Type2


When I send the service an instance of Type1 for example using xsi:type=";ns1:Type1", it should give me the Type1 class(which wsdl2java generated and which extends the AbstractType class).

Instead it gives me a class of type AbstractType!

Has anyone successfully done this? ; Does it work? ; Is this the expected behaviour of XML beans?  What am I doing wrong?

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )