4

我现在正在改变整个问题。我正在尝试连接到 SOAP 服务。在 Windows 上,在应用程序和 SoapUI 上都可以正常工作。在 Linux 上,它们都不起作用。Linux 上相同请求的输出如下:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
  <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
     <faultcode>S:Client</faultcode>
     <faultstring>Couldn't create SOAP message due to exception: Unable to create StAX reader or writer</faultstring>
  </S:Fault>
</S:Body>
</S:Envelope>

在标题上:

Transfer-Encoding   chunked
Date    Tue, 25 Jun 2013 18:03:46 GMT
#status#    HTTP/1.1 200 OK
Content-Type    text/xml;charset=utf-8
Server  Apache-Coyote/1.1

任何人都知道为什么它可以在 Windows 而不是 Linux 上运行,因为它应该发送相同的请求。

4

0 回答 0