Web Service is very important part in SOA world for WebSphere, both WAS and WPS. Sometimes, you need to check the contents of web service request and web service reply. the following trace will show these contents in trace.log
com.ibm.ws.webservices.trace.MessageTrace=all
enable it in runtime and you will see the following:
[3/6/11 22:05:13:697 EST] 000088de MessageTrace 3 WSWS3569I: Inbound HTTP SOAP request:
Content-Type: text/xml; charset=utf-8
Message contents:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://
www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processTicket xmlns="http://RSDWorld
/IF_RSD"><ticket xmlns="">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</soapenv:Body></soapenv:Envelope>
and
[3/6/11 22:05:14:198 EST] 000088de MessageTrace 3 WSWS3572I: Outbound HTTP SOAP response:
Content-Type: text/xml; charset=utf-8
Message contents:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/
" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body>xxxxxxxxxxxxxxxxxxxx
</soapenv:Body></soapenv:Envelope>
this trace works for both WAS and WPS
No comments:
Post a Comment