我试图使用在具有此WSDL" http://localhost:8000/eamsLink/RepositoryService/?wsdl"的本地主机中运行的Web服务。
我跑了命令:
wsimport -keep -p ws -verbose -wsdllocation http://localhost:8000/eamsLink/RepositoryService/?wsdl http://localhost:8000/eamsLink/RepositoryService/?wsdl
控制台输出:
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...
它加载了大量的类,但它没有创建任何"服务"类。
你知道如何处理这个错误吗?