我正在尝试为.NET基于第三方的Web服务生成代理.我看到类似的错误,并意识到自定义绑定将在这里有所帮助.我试过-autoNameResolution和jaxb:globalBindings underscoreBinding="asCharInWord",但它不工作.不幸的是,"wsdl2java"没有显示模式文件中的行号.添加它作为新线程的主要原因是错误是模糊的.我无法根据[0,0]处的有限信息错误预测问题.
我在用 Apache CXF version 2.6.11
绑定文件
控制台输出:
C:\codegen>wsdl2java -verbose -b C:\codegen\bindings.xml https://mydomain.com:10011/UniversalInterface2012/EOS1?wsdl
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -verbose -b C:\codegen\bindings.xml https://mydomain.com:10011/UniversalInterface2012/EOS1?wsdl
wsdl2java - Apache CXF 2.6.11
WSDLToJava Error: https://mydomain.com:10011/UniversalInterface2012/EOS1?xsd=xsd2 [0,0]: Two declarations cause a collision in the ObjectFacto
ry class.
https://mydomain.com:10011/UniversalInterface2012/EOS1?xsd=xsd2 [0,0]: (Related to above error) This is the other declaration.
org.apache.cxf.tools.common.ToolException: https://mydomain.com:10011/UniversalInterface2012/EOS1?xsd=xsd2 [0,0]: Two declarations cause a col
lision in the ObjectFactory class.
https://mydomain.com:10011/UniversalInterface2012/EOS1?xsd=xsd2 [0,0]: (Related to …Run Code Online (Sandbox Code Playgroud)