208 Broker Interactions for Intra- and Inter-enterprise
Figure 8-41 Tracing SOAP messages using TCPMon
You can start TCPMon from a command window as follows:
set CLASSPATH=%CLASSPATH%;<WAS_HOME>libwebservices.jar
<WAS_HOME>javainjava com.ibm.ws.webservices.engine.utils.tcpmon
For further details on TCPMon, see the InfoCenter article Tracing Web services
messages at:
http://www.ibm.com/software/webservers/appserv/infocenter.html
Chapter 8. Router solutions using Web Services Gateway 209
The SOAP request for our getDeliveryDate() method is shown in Example 8-9.
Example 8-9 SOAP request for getDeliveryDate
POST /WSWholesale1EAR/services/Inventory HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: IBM WebServices/1.0
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 427
<?xml version="1.0" encoding="UTF-8"?>
<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:Body>
<getDeliveryDate xmlns="http://inventory.wholesale.itso.ibm.com">
<partNo xmlns="">12345</partNo>
</getDeliveryDate>
</soapenv:Body>
</soapenv:Envelope>
The SOAP response for the getDeliveryDate() method is shown in Example 8-10.
Example 8-10 SOAP response for getDeliveryDate
HTTP/1.1 200 OK
Server: WebSphere Application Server/5.0
Content-Type: text/xml; charset=utf-8
Content-Language: en-US
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<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:Body>
<getDeliveryDateResponse
xmlns="http://inventory.wholesale.itso.ibm.com">
<getDeliveryDateReturn xmlns="">09/12/2003</getDeliveryDateReturn>
</getDeliveryDateResponse>
</soapenv:Body>
</soapenv:Envelope>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.237.194