java调用net开发的webservice实例

时间:2017-06-19 05:09:23
【文件属性】:

文件名称:java调用net开发的webservice实例

文件大小:11.7MB

文件格式:ZIP

更新时间:2017-06-19 05:09:23

webservice

java调用net开发的webservice实例下载 问题终于解决了,之前加上?wsdl的时候报如下错: - I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect - Retrying request - I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect - Retrying request - I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect - Retrying request - java.net.ConnectException: Connection timed out: connect org.codehaus.xfire.fault.XFireFault: Couldn't send message. at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:30) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.codehaus.xfire.client.Client.invoke(Client.java:368) at cn.watersoft.reportinfo.test.test.main(test.java:22) Caused by: org.codehaus.xfire.XFireException: Couldn't send message. at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:145) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) ... 6 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at java.net.Socket.(Socket.java:366) at java.net.Socket.(Socket.java:240) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79) at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121) at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.codehaus.xfire.transport.http.CommonsHttpMessageSender.send(CommonsHttpMessageSender.java:369) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:123) ... 8 more 不加?wsdl的时候报如下的错: [Fatal Error] :110:17: The element type "p" must be terminated by the matching end-tag "

". javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "

". at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at org.codehaus.xfire.client.Client.(Client.java:235) at org.codehaus.xfire.client.Client.(Client.java:246) at cn.watersoft.reportinfo.test.test.main(test.java:21) Caused by: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "

". at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) ... 5 more 在网上查了一天的时间终于得以解决 附件中包含测试类javaAxisCallnet.java和所需的jar包


【文件预览】:
java调用net开发的webservice
----lib()
--------xmlsec.jar(278KB)
--------mail-1.4.jar(380KB)
--------xbean-2.2.0.jar(2.54MB)
--------jaxrpc.jar(30KB)
--------activation-1.1.jar(62KB)
--------wsdl4j-1.5.1.jar(124KB)
--------axis.jar(1.57MB)
--------mail.jar(425KB)
--------wstx-asl-3.2.0.jar(493KB)
--------axis-ant.jar(32KB)
--------commons-discovery-0.2.jar(70KB)
--------xfire-jaxws-1.2.6.jar(43KB)
--------jstl-1.2.jar(405KB)
--------xfire-jsr181-api-1.0-M1.jar(8KB)
--------xfire-aegis-1.2.6.jar(128KB)
--------saaj-impl-1.3.jar(268KB)
--------commons-codec-1.3.jar(46KB)
--------xfire-java5-1.2.6.jar(24KB)
--------saaj-api-1.3.jar(18KB)
--------activation.jar(54KB)
--------commons-beanutils-1.7.0.jar(184KB)
--------xbean-spring-2.8.jar(175KB)
--------jsf-impl.jar(1.15MB)
--------axis-schema.jar(194KB)
--------commons-httpclient-3.0.jar(273KB)
--------xfire-annotations-1.2.6.jar(28KB)
--------wsdl4j-1.6.1.jar(145KB)
--------xfire-spring-1.2.6.jar(54KB)
--------jsf-api.jar(314KB)
--------jaxen-1.1-beta-9.jar(227KB)
--------log4j-1.2.8.jar(344KB)
--------jaxws-api-2.0.jar(23KB)
--------sqljdbc4.jar(525KB)
--------stax-api-1.0.1.jar(26KB)
--------xfire-core-1.2.6.jar(414KB)
--------commons-logging-1.0.4.jar(37KB)
--------spring-1.2.6.jar(1.81MB)
--------XmlSchema-1.1.jar(125KB)
--------jsr173_api-1.0.jar(49KB)
--------saaj.jar(19KB)
--------jdom-1.0.jar(150KB)
----javaAxisCallnet.txt(3KB)

网友评论

  • 相当好用,感谢楼主分享
  • java调用net开发的webservice实例 很不错的资源 很详细全面
  • 感谢分享,很好的资源,非常有帮助
  • 感谢分享,很好的资源,非常有帮助