List Info

Thread: Re: AXIS2 + wsdl2java + XMLBeans not producing correct binding




Re: AXIS2 + wsdl2java + XMLBeans not producing correct binding
user name
2007-06-11 09:14:32
SchemaType can only be done on the document--my abstract type is higher up.

I can do .schemaType().getName() but that still just gives me the abstract parent type. ; There must be some way to get at the inheiriting type!

What if I was doing an xs:choice--would how would I get at the specific type? ;  Or does it already give me the correct class?

On 6/11/07, Mohana Ramaratnam < mohanarnpg.wustl.edu">mohanarnpg.wustl.edu> wrote:

I think you can invoke the method schemaType to check the xsiType

 


From: Spike Mulligan [mailto: spikemulligan44gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">spikemulligan44gmail.com]
Sent: Monday, June 11, 2007 7:48 AM
To: userxmlbeans.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">userxmlbeans.apache.org
Subject: Re: AXIS2 + wsdl2java + XMLBeans not producing correct binding

 

Okay, but how do I check at runtime whether its Type1 or Type2?

On 6/11/07, Mohana Ramaratnam < mohanarnpg.wustl.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mohanarnpg.wustl.edu > wrote:

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

 

Mohana

 


From: Spike Mulligan [mailto: spikemulligan44gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">spikemulligan44gmail.com]
Sent: Monday, June 11, 2007 5:29 AM
To: userxmlbeans.apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">userxmlbeans.apache.org
Subject: AXIS2 + wsdl2java + XMLBeans not producing correct binding

 



So I have a schema containing the following structure:

AbstractType
&nbsp;   ;  / &nbsp; 
 &nbsp;   / &nbsp; &nbsp;   &nbsp; &nbsp; extension
 &nbsp; / &nbsp; &nbsp; &nbsp;   ;
Type1&nbsp; &nbsp; Type2


When I send the service an instance of Type1 for example using xsi:type=";ns1:Type1&quot;, 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?&nbsp; What am I doing wrong?

 


[1]

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