Zin*_*nid 5 console soap wsdl web-services soap-client
我正在尝试使用在 localhost 中运行的 Web 服务,该服务具有此 WSDL“ http://localhost:8000/eamsLink/RepositoryService/?wsdl ”。
我运行了命令:
wsimport -keep -p ws -verbose -wsdllocation http://localhost:8000/eamsLink/RepositoryService/?wsdl http://localhost:8000/eamsLink/RepositoryService/?wsdl
Run Code Online (Sandbox Code Playgroud)
控制台输出:
parsing WSDL...
[WARNING] unknown extensibility element or attribute "EndpointReference" (in namespace "http://www.w3.org/2005/08/addressing")
line 1 of http://localhost:8000/eamsLink/RepositoryService/?wsdl
[WARNING] Ignoring SOAP port "NetTcpBinding_IRemoteSource": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
line 1 of http://localhost:8000/eamsLink/RepositoryService/?wsdl
[WARNING] Service "RemoteSourceService" does not contain any usable ports. try running wsimport with -extension switch.
line 1 of http://localhost:8000/eamsLink/RepositoryService/?wsdl
Generating code...
Run Code Online (Sandbox Code Playgroud)
它加载了大量的类,但它不会创建任何“服务”类。
你知道如何处理这个错误吗?