java: Rpc/encoded wsdls are not supported in JAXWS 2.0

前端 未结 6 1868
南方客
南方客 2020-11-28 03:31

I\'m using CXF 2.1 to generate java code from a wsdl, but I\'m getting the following error:

WSDLToJava Error: Rpc/encoded wsdls are not supported in JAXWS 2.         


        
6条回答
  •  旧巷少年郎
    2020-11-28 03:51

    just extract,and Execute WSDL2Java? using the following command (replacing the URL, of course):

    java -cp axis.jar;commons-logging-1.0.4.jar;commons-discovery-0.2.jar;jaxrpc.jar;saaj.jar;wsdl4j-1.5.1.jar org.apache.axis.wsdl.WSDL2Java http://someURL?WSDL
    

提交回复
热议问题