Lesson 1.5: Validate the web service traffic WS-I compliance
Before you begin
About this task
To ensure that the SOAP envelope request and response pairs are WS-I compliant, you need to direct your web service traffic through the TCP/IP Monitor:
When creating a web service using the web service or web service client wizards, you can select to set up and run the TCP/IP Monitor automatically. Since you chose this option when creating the web service, the TCP/IP monitor view should be in your workspace. If it is not, you can open this view by selecting
.Alternately, you can set up the TCP/IP Monitor manually by completing the following steps:
Procedure
Routing traffic and verifying WS-I compliance
About this task
You can route traffic through the TCP/IP monitor and test the traffic for WS-I compliance by following the proceeding steps:
Procedure
- Select a web service method in the Methods pane. Invoke this method.
- Change to the TCP/IP Monitor view by clicking the TCP/IP
Monitor tab in the Servers view. This will display request and response
pairs that are being routed through the TCP/IP Monitor. It will look
similar to the following picture:
- To ensure that your web service SOAP traffic is WS-I compliant,
you can generate a log file by clicking the
icon. In the dialog box that opens, select a name for the log file and specify where you want it to be stored. This log file will be validated for WS-I compliance. You can open the log file in an XML editor to examine its contents.
Lesson checkpoint
Finish your tutorial by reviewing the materials in the Summary.