Background:
I have the following element in an XSD:
<xsd:complexType name="Application_Type">
<xsd:sequence>
<xsd:element ref="jsdl:ApplicationName" minOccurs="0" />
<xsd:element ref="jsdl:ApplicationVersion" minOccurs="0" />
<xsd:element ref="jsdl:Description" minOccurs="0" />
<xsd:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded" />
</xsd:sequence>
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
which for one of the xsd:any elements can have the following XSD element:
<xsd:complexType name="HPCProfileApplication_Type">
<xsd:sequence>
<xsd:element ref="jsdl-hpcpa:Executable" minOccurs="0" />
<xsd:element ref="jsdl-hpcpa:Argument" minOccurs="0"
maxOccurs="unbounded" />
<xsd:element ref="jsdl-hpcpa:Input" minOccurs="0" />
<xsd:element ref="jsdl-hpcpa:Output" minOccurs="0" />
<xsd:element ref="jsdl-hpcpa:Error" minOccurs="0" />
<xsd:element ref="jsdl-hpcpa:WorkingDirectory" minOccurs="0" />
<xsd:element ref="jsdl-hpcpa:Environment" minOccurs="0"
maxOccurs="unbounded" />
<xsd:element ref="jsdl-hpcpa:UserName" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:NCName" use="optional" />
<xsd:anyAttribute namespace="##other" processContents="lax" />
</xsd:complexType>
so when I get an Application_Type object from axis, the xmlText from it looks
like
<HPCProfileApplication name=""
xmlns="http://schemas.ggf.org/jsdl/2006/07/jsdl-hpcpa"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<Executable>ver</Executable>
<Input/>
<Output>nul</Output>
<Error>nul</Error>
<WorkingDirectory/>
<UserName>myname</UserName>
</HPCProfileApplication>
which I then try to parse using
XmlObject hppcobj = XmlObject.Factory.parse(appl.xmlText());
Problem:
I run the code in one application, the XmlObject has the HPCApplicationTypeImpl
object type
I run it in another application, it has the XmlAnyTypeImpl class.
Any idea on the reason it does not return the HPCApplicationTypeImpl object
every time?
I am using the same jar and the same code with the same xsb files for both.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]