users@jaxb.java.net

Class pb (in use) using xjc

From: tog <guillaume.alleon_at_gmail.com>
Date: Sun, 10 Feb 2008 03:46:15 -0800 (PST)

When I try to use the following wsdl
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

with xjc I got the following errors. It's true that 2 elements have the same
name:

<s:element name="GeneralStockQuery">
       <s:complexType>
       <s:sequence>
...
</s:sequence>
</s:complexType>
</s:element>


       <s:complexType name="GeneralStockQuery">
       <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Stock_Symbol" type="s:string"/>
...
<s:element minOccurs="1" maxOccurs="1" name="IAD" type="s:double"/>
</s:sequence>
</s:complexType>

Is there a way to get rid of these errors using a binding or something else
?

Cheers
Guillaume



alleons-computer:~/Documents/jaxb/jaxb-ri-20071219 alleon$ bin/xjc.sh -wsdl
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL
parsing a schema...
compiling a schema...
[ERROR] A class/interface with the same name
"com.optionsxpress.oxbranch.GeneralStockQuery" is already in use. Use a
class customization to resolve this conflict.
  line 230 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Relevant to above error) another "GeneralStockQuery" is generated
from here.
  line 257 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] A class/interface with the same name
"com.optionsxpress.oxbranch.GeneralOptionQuery" is already in use. Use a
class customization to resolve this conflict.
  line 294 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Relevant to above error) another "GeneralOptionQuery" is generated
from here.
  line 321 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] A class/interface with the same name
"com.optionsxpress.oxbranch.GeneralMutualFundQuery" is already in use. Use a
class customization to resolve this conflict.
  line 167 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Relevant to above error) another "GeneralMutualFundQuery" is
generated from here.
  line 194 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] A class/interface with the same name
"com.optionsxpress.oxbranch.GeneralCoveredCallQuery" is already in use. Use
a class customization to resolve this conflict.
  line 350 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Relevant to above error) another "GeneralCoveredCallQuery" is
generated from here.
  line 377 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 167 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 194 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 377 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 350 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 257 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 230 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 294 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 321 of
https://oxbranch.optionsxpress.com/OPXSTools/OptionChain.asmx?WSDL

Failed to produce code.
-- 
View this message in context: http://www.nabble.com/Class-pb-%28in-use%29-using-xjc-tp15395566p15395566.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.