I'm using Websphere 7. Using existing WSDL, I've created WS client using wsimport ant task (com.sun.tools.ws.ant.WsImport).
Is there a way I can log SOAP xml requests/responses sent/received by this client?
The SOAP connector port is more firewall compatible. The default setting of the SOAP port is 8880. The InterProcess Connector (IPC) port is a more stable and robust connection between the workbench and the local server. The default setting of the IPC port is 9633.
SOAP 1.1 is a protocol-independent transport and can be used in combination with a variety of protocols. In web services that are developed and implemented with WebSphere Application Server, SOAP is used in combination with HTTP, HTTP extension framework, and Java™ Message Service (JMS).
You can trace SOAP messages exchanged between a client and the server by installing a monitor or sniffer application to capture the HTTP traffic between the two points. The application server product provides a utility class, com. ibm. ws.
Trace for SOAP WS messages can be enabled by following these steps on Websphere 7 administration console:
*=info: com.ibm.ws.websvcs.trace.*=all
SOAP request/responses can now be found in trace.log on your appl. server.
For WebSphere Liberty Profile, logging of JAX-WS SOAP request and response messages can be enabled by adding the following trace configuration to the server.xml:
<logging traceFormat="BASIC" consoleLogLevel="INFO" traceSpecification="com.ibm.ws.jaxws.wsat.*=debug" traceFileName="stdout" />
Adding the traceFileName="stdout"
attribute redirects the trace output to the console. Without this attribute it will write to the trace log file instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With