Wsimport генерирует классы из WSDL с множественной ошибкой схемы при передаче папки пакета - PullRequest
0 голосов
/ 14 февраля 2020

У меня возникает следующая ошибка при передаче папки пакета "-p com.ahmet", похоже, что это из-за наличия схемы с множеством адресов, адресованной одним и тем же объектам. MAuthToken, Как я могу решить эту проблему, не редактируя файл wsdl?

xxxx:Desktop ttahkarakaya$ wsimport -p com.ahmetk  https://www.wirecard.com.tr/services/saleservice.asmx?WSDL
parsing WSDL...


[WARNING] src-resolve: Cannot resolve the name 's1:guid' to a(n) 'type definition' component.
  line 30 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL#types?schema1

[WARNING] src-resolve: Cannot resolve the name 's2:MAuthToken' to a(n) 'type definition' component.
  line 456 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL#types?schema1

[ERROR] A class/interface with the same name "com.ahmetk.MSaleOutput" is already in use. Use a class customization to resolve this conflict.
  line 62 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "MSaleOutput" is generated from here.
  line 633 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.MAuthToken" is already in use. Use a class customization to resolve this conflict.
  line 15 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "MAuthToken" is generated from here.
  line 575 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.ArrayOfMSaleProduct" is already in use. Use a class customization to resolve this conflict.
  line 41 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "ArrayOfMSaleProduct" is generated from here.
  line 610 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.MSaleInput" is already in use. Use a class customization to resolve this conflict.
  line 21 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "MSaleInput" is generated from here.
  line 590 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.MMicroPaymentOutput" is already in use. Use a class customization to resolve this conflict.
  line 86 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "MMicroPaymentOutput" is generated from here.
  line 657 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.MSaleProduct" is already in use. Use a class customization to resolve this conflict.
  line 46 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "MSaleProduct" is generated from here.
  line 615 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] A class/interface with the same name "com.ahmetk.ArrayOfMMicroPaymentOutput" is already in use. Use a class customization to resolve this conflict.
  line 81 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Relevant to above error) another "ArrayOfMMicroPaymentOutput" is generated from here.
  line 652 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 62 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 633 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 15 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 575 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 41 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 610 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 21 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 590 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 86 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 657 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 46 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 615 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 81 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

[ERROR] (Related to above error) This is the other declaration.
  line 652 of https://www.wirecard.com.tr/services/saleservice.asmx?WSDL

Exception in thread "main" com.sun.tools.internal.ws.wscompile.AbortException
    at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:129)
    at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2283)
    at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:183)
    at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
    at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:429)
    at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
    at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
    at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)
...