开发者

Enable logging of metro/tube

开发者 https://www.devze.com 2023-02-03 11:39 出处:网络
I need to enable logging of the raw data captured during webservice calls/requests (using Metro WS 2.0).

I need to enable logging of the raw data captured during webservice calls/requests (using Metro WS 2.0).

I have tried to enable the two following properties, but they give no result at all to the l开发者_如何学Pythonogging:

System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.ws.assembler.jaxws.TransportTubeFactory", "true");

The following gives the wanted effect but with every entry logged 8 times:

System.setProperty("com.sun.metro.soap.dump", "true");

With every entry duplicated 8 times the log gets very cluttered and very timeconsuming to follow. How can I achieve tracing of the webservice calls/requests without having everything dumped in a duplicated manner?


I had a similar problem which I resolved by:

Metro : Printing / dumping out the contents of a SOAP packet.

Essentially, it uses the "MessageDumpingFeature". You find this in the Glassfish \lib directory in the webservices-rt.jar file.

0

精彩评论

暂无评论...
验证码 换一张
取 消