WebService——服务端的代码,使用Tomcat编译成客户端可读的文件(未完善)

 

Microsoft Windows [版本 10.0.17134.556]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\lenovopc>\
'\' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\Users\lenovopc>cd\

C:\>set classpath
ClassPath=C:\Program Files (x86)\Java\jdk1.7.0_79\lib\tools.jar;C:\Program Files (x86)\Java\jdk1.7.0_79\lib\dt.jar;

C:\>set path
Path=D:\Program Files (x86)\NetSarang\Xftp 6\;F:\oracle\product\10.2.0\db_1\bin;F:\ALL_Course\4Oracle10g\oracle\product\10.2.0\db_1\bin;F:\ALL_Course\4Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Java\jdk1.7.0_79\bin;D:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;F:\ALL_Course\Python_Q;C:\Users\lenovopc\AppData\Local\Microsoft\WindowsApps;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

C:\>d
'd' 不是内部或外部命令,也不是可运行的程序
或批处理文件。

C:\>d:

D:\>f:

F:\>cd ALL_Course\10Activiti\Ecli\WebServiceClientQ\src

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://192.168.90.125:6688/hi?wsdl
parsing WSDL...



Generating code...


Compiling code...


F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://120.0.0.1:6688/hi?wsdl
parsing WSDL...


[ERROR] Connection timed out: connect

Failed to read the WSDL document: http://120.0.0.1:6688/hi?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://120.0.0.1:6688/hi?wsdl
parsing WSDL...


[ERROR] Connection timed out: connect

Failed to read the WSDL document: http://120.0.0.1:6688/hi?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://120.0.0.1:6688/hello?wsdl
parsing WSDL...


[ERROR] Connection timed out: connect

Failed to read the WSDL document: http://120.0.0.1:6688/hello?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://127.0.0.1:6688/hi?wsdl
parsing WSDL...



Generating code...


Compiling code...


F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>cd\

F:\>cd ALL_Course\10Activiti\Ecli\WetherClientQ\src

F:\ALL_Course\10Activiti\Ecli\WetherClientQ\src>wsimport -keep http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl
parsing WSDL...


[WARNING] src-resolve.4.2: 解析组件 's:schema' 时出错。在该组件中检测到 's:schema' 位于名称空间 'http://www.w3.org/2001/XMLSchema' 中, 但无法从方案文档 'http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl#types?schema1' 引用此名称空间的组件。如果这是不正确的名称空间, 则很可能需要更改 's:schema' 的前缀。如果这是正确的名称空间, 则应将适当的 'import' 标记添加到 'http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl#types?schema1'。
  line 15 of http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl#types?schema1

[WARNING] src-resolve: 无法将名称 's:schema' 解析为 'element declaration' 组件。
  line 15 of http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl#types?schema1

[ERROR] undefined element declaration 's:schema'
  line 15 of http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl

[ERROR] undefined element declaration 's:schema'
  line 61 of http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl

[ERROR] undefined element declaration 's:schema'
  line 101 of http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl


F:\ALL_Course\10Activiti\Ecli\WetherClientQ\src>wsimport -keep F:\ALL_Course\10Activiti\Ecli\WetherClientQ\src\WeatherWS.asmx
parsing WSDL...


[WARNING] Ignoring SOAP port "WeatherWSSoap12": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
  line 533 of file:/F:/ALL_Course/10Activiti/Ecli/WetherClientQ/src/WeatherWS.asmx

[WARNING] ignoring port "WeatherWSHttpGet": no SOAP address specified. try running wsimport with -extension switch.
  line 536 of file:/F:/ALL_Course/10Activiti/Ecli/WetherClientQ/src/WeatherWS.asmx

[WARNING] ignoring port "WeatherWSHttpPost": no SOAP address specified. try running wsimport with -extension switch.
  line 539 of file:/F:/ALL_Course/10Activiti/Ecli/WetherClientQ/src/WeatherWS.asmx


Generating code...


Compiling code...


F:\ALL_Course\10Activiti\Ecli\WetherClientQ\src>

可以覆盖,只要记得刷新项目,main不会异常

Microsoft Windows [版本 10.0.17134.590]
(c) 2018 Microsoft Corporation。保留所有权利。

C:\Users\lenovopc>cd\

C:\>cd f:
F:\

C:\>f:

F:\>cd ALL_Course\10Activiti\Ecli\WebServiceServerQ\src

F:\ALL_Course\10Activiti\Ecli\WebServiceServerQ\src>wsimport keep http://192.168.90.226:6688/hi?wsdl
parsing WSDL...


[ERROR] file:/F:/ALL_Course/10Activiti/Ecli/WebServiceServerQ/src/keep is unreachable


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceServerQ\src>wsimport keep http://127.0.0.1:6688/hi?wsdl
parsing WSDL...


[ERROR] file:/F:/ALL_Course/10Activiti/Ecli/WebServiceServerQ/src/keep is unreachable


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceServerQ\src>f:

F:\ALL_Course\10Activiti\Ecli\WebServiceServerQ\src>cd\

F:\>cd ALL_Course\10Activiti\Ecli\WebServiceClientQ\src

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport keep http://192.168.90.226:6688/hi?wsdl
parsing WSDL...


[ERROR] file:/F:/ALL_Course/10Activiti/Ecli/WebServiceClientQ/src/keep is unreachable


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://192.168.90.125:6688/hi?wsdl
parsing WSDL...


[ERROR] Connection timed out: connect

Failed to read the WSDL document: http://192.168.90.125:6688/hi?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://192.168.90.226:6688/hi?wsdl
parsing WSDL...



Generating code...


Compiling code...


F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://127.0.0.1\:6688/hi?wsdl
parsing WSDL...


[ERROR] com.sun.istack.internal.SAXParseException2; 127.0.0.1\

Failed to read the WSDL document: http://127.0.0.1\:6688/hi?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://127.0.0.1:6688/hi?wsdl
parsing WSDL...


[ERROR] Connection refused: connect

Failed to read the WSDL document: http://127.0.0.1:6688/hi?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


[ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

 At least one WSDL with at least one service definition needs to be provided.


        Failed to parse the WSDL.

F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>wsimport -keep http://127.0.0.1:6688/hi?wsdl
parsing WSDL...



Generating code...


Compiling code...


F:\ALL_Course\10Activiti\Ecli\WebServiceClientQ\src>

 

 

 

 

 

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Yvette_QIU

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值