0 Replies Latest reply: May 22, 2013 1:54 PM by 1010480 RSS

    WSDL to Java - Collision in the ObjectFactory class using jaxb

    1010480
      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