我正在接管java Web服务客户端的开发,为了测试进化,我必须从远程Web服务服务器(嵌入在tomcat实例中运行的Apache Axis2中)中请求一个方法.
首先,我使用服务器提供的WSDL通过SOAP UI请求了该方法.它工作正常.
现在我尝试通过我的Java Web服务客户端请求该方法,但我无法连接到服务器,即使使用SOAP UI测试证明一切都很好.
java Web服务客户端依赖于Spring-WS.
// Setting the kycScoreRequest
...
// Trying to connect and to get the kycScoreResponse
KycScoreResponse kycScoreResponse = (KycScoreResponse) getWebServiceTemplate().marshalSendAndReceive(kycScoreRequest);
Run Code Online (Sandbox Code Playgroud)
[main] DEBUG com.foo.AbstractMain - org.springframework.ws.client.WebServiceIOException: I/O error: Connection timed out: connect; nested exception is java.net.ConnectException: Connection timed out: connect
at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:545)
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:386)
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:380)
at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:372)
at com.foo.MainKycScore.getReturn(MainKycScore.java:37)
at com.foo.MainKycScore.main(MainKycScore.java:244)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at …Run Code Online (Sandbox Code Playgroud) 我想使用<\tbody>,<\tr>并<\td>在方法的注释部分创建一个表:
<tbody>
<tr>
<td>personId</td>
<td>y</td>
<td>identifiant</td>
<td>C16</td>
<td>String</td>
</tr>
<tr>
<td>lastName</td>
<td>n</td>
<td>nom</td>
<td>C32</td>
<td>String</td>
</tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)
不幸的是它不起作用,因为我在 Java 文档中没有看到表格,只有以下内容:
personId y identifiant C16 String lastName n nom C32 String
Run Code Online (Sandbox Code Playgroud)
我应该怎么办 ?该<\table>标签不是 Eclipse 提议的,如果我使用它,它不会改变任何东西。如果重要的话,我正在使用 eclipse Neon。