如何获取Web Service的请求来源?

发布于 2024-08-21 23:59:09 字数 306 浏览 5 评论 0原文

我想

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prin="http://localhost/example">
   <soapenv:Header/>
   <soapenv:Body>
THIS
   </soapenv:Body>
</soapenv:Envelope>

从 Java 发送的 Web 服务请求中获取数据。

我使用 javax.jws

I want to get

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prin="http://localhost/example">
   <soapenv:Header/>
   <soapenv:Body>
THIS
   </soapenv:Body>
</soapenv:Envelope>

from webservice request I send from Java.

I use javax.jws

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

胡渣熟男 2024-08-28 23:59:09

这可以通过编程方式(侵入式)或通过配置来完成,而无需更改任何代码。 此页面记录了如何配置 JAX-WS RI:

转储 SOAP 消息在客户端,使用以下系统属性:

-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

要在服务器端转储 SOAP 消息,请使用以下系统属性:

-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true

This can be done programmatically (invasive) or by configuration without changing any code. This page documents how to configure JAX-WS RI:

To dump SOAP messages on the client side, use the following system property:

-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

To dump SOAP messages on the server side, use the following system property:

-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true
挽袖吟 2024-08-28 23:59:09

设置以下虚拟机属性:

-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true

Set the following VM property:

-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文