locked
WSDL to Java - Collision in the ObjectFactory class using jaxb RRS feed

  • Question

  • I have a wsdl that is giving me collision error for element/type 

    line 761 of file:/C:/Users/syedf/Documents/Checkers/4842/PwsDemo_creditcardtransactionservice.xml
    line 796 of file:/C:/Users/syedf/Documents/Checkers/4842/PwsDemo_creditcardtransactionservice.xml

    When I run the wsimport using the binding binding.xjb I am getting the following error.

    [ERROR] "C:\Users\syedf\Documents\Checkers\4842\PwsDemo_creditcardtransactionservice.wsdl" is not a part of this compilation. Is this a mistake for "file:/C:/Users/syedf/Documents/Checkers/4842/PwsDemo_creditcardtransactionservice.wsdl#types?schema8"?
      line 5 of file:/C:/Users/syedf/Documents/Checkers/4842/binding.xjb

    whereas my wsimport command is :
    wsimport -b C:\Users\syedf\Documents\Checkers\4842\binding.xjb C:\Users\syedf\Documents\Checkers\4842\PwsDemo_creditcardtransactionservice.wsdl

    and my binding.xjb is :
    <jxb:bindings version="1.0"
                   xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                   xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <jxb:bindings schemaLocation="C:\Users\syedf\Documents\Checkers\4842\PwsDemo_creditcardtransactionservice.wsdl" node="/xs:schema">
    <jxb:schemaBindings>
     <jxb:package name="com.tecsys.dms.api.ccg.client"/>
    <jxb:nameXmlTransform>
     <jxb:elementName suffix="Type"/>
    </jxb:nameXmlTransform>
    </jxb:schemaBindings> 
      </jxb:bindings> 
    </jxb:bindings>


    any help regarding this issue would be highly appreciated.

    Thanks
    Wednesday, May 22, 2013 6:58 PM

Answers

  • [ERROR] "C:\Users\syedf\Documents\Checkers\4842\PwsDemo_creditcardtransactionservice.wsdl" is not a part of this compilation. Is this a mistake for "file:/C:/Users/syedf/Documents/Checkers/4842/PwsDemo_creditcardtransactionservice.wsdl#types?schema8"?

      line 5 of file:/C:/Users/syedf/Documents/Checkers/4842/binding.xjb


    Hi,

    When occur the below error, Please try to modify the binding.xjb with the following:

    <jxb:bindings schemaLocation="C:\Users\syedf\Documents\Checkers\4842\PwsDemo_creditcardtransactionservice.wsdl#types"

    node="/xs:schema">

    For more information, please try to refer to:

    http://cwweng.tumblr.com/post/7000245700/wsdltojava-error-thrown-by-jaxb-two-declarations .

    Hope it can help you.

    Best Regards.


    Amy Peng
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Monday, May 27, 2013 8:16 AM