我使用以下命令生成了存根
轴:java org.apache.axis.wsdl.WSDL2Java CrmDiscoveryServiceWsdl.xml:生成所有类
Axis2:wsdl2java.bat -u -uri CrmDiscoveryServiceWsdl.xml:只生成几个类。
Pattern I observed is, in the wsdl:types section, it has created classes for the <s:element> types but not <s:complexTypes>. I don't get why. I have to use those complexType elements to consume webservice.
我也尝试过 -pn、-ap 选项,认为它们可能有效,但端口与此无关。我做了之后就明白了。
注意:当我使用 -ss -g 选项时,我可以使用 Axis2 生成所有内容,这也会生成服务器端。显然,这是一种解决方法,我至少不需要其中一些。
请帮忙。
谢谢。