Testing & Monitoring Web Services Using soapUI in NetBeans IDE
The soapUI Plugin adds a powerful SOAP Monitor to NetBeans IDE 6.1, allowing users to capture and perform SOAP traffic analysis between an existing client and a server. Test cases and mock services can be created easily using the captured traffic.
To launch the SOAP Monitor, right click on the Web Services Test node in the project view, and invoke the "Launch SOAP Monitor" action. This shows the following dialog:
Select the service to be monitored and appropriate port to redirect traffic, and click OK. This opens the SOAP Monitor. Now modify your web service clients to use the "Tunnel on Port" and you will see SOAP traffic on the monitor.
HTTP headers and SOAP attachments can also be monitored in the display.
Validating WS-I Compliance
The soapUI tool can validate WSDL files and/or SOAP messages against the WS-Interoperability (WS-I) specification.
To set up the soapUI plugin for NetBeans IDE to perform WS-I validation, first download the Java version of the Interoperability Testing Tool from the WS-I.org Deliverables page and unpack it. Create a WSI_HOME environment variable pointing to the downloaded and unzipped wsi-test-tools folder. Then open the IDE and navigate to Tools > soapUI > Preferences. Open the WS-I Settings tab and, in the Tool Location field, enter the location of the tool folder (identical to WSI_HOME). Select other options according to your preferences and click OK.
To validate WSDL files, right-click the binding node in the Web Service Tests node and select Check WS-I Compliance.
To validate SOAP messages, first monitor a SOAP request and response. Right-click in the response window and select Check WS-I Compliance.
Each WS-I report opens in its own tab. The report is saved automatically if you set a location to save reports in the soapUI preferences. You can also save the report manually by clicking the Save icon above the body of the report.
You can see the test configuration used to generate the test report in the Config tab. SOAP message test reports also have a Log tab, which is an XML log of the request and response SOAP exchange.
Resources
- soapUI web site (http://www.soapui.org/)
- soapUI Feature Overview (http://www.soapui.org/features.html)
- soapUI NetBeans IDE Plugin (http://www.soapui.org/netbeans/index.html)
- WS-I Testing Tools downloads (http://www.ws-i.org/deliverables/workinggroup.aspx?wg=testingtools)
- « first
- ‹ previous
- 1
- 2
- 3
| Attachment | Size |
|---|---|
| figure1.jpg | 12 KB |
| figure2.jpg | 36 KB |
| figure3.jpg | 12 KB |
| figure4.jpg | 68 KB |
| figure5.jpg | 44 KB |
| figure6.jpg | 32 KB |
| figure7.jpg | 28 KB |
| figure8.jpg | 28 KB |
| figure9.jpg | 28 KB |
| figure10.jpg | 52 KB |
| figure11.png | 96.08 KB |
| figure11.png | 96.08 KB |
| figure12.png | 3.63 KB |
| figure13.png | 11.48 KB |
| figure14.png | 27.55 KB |
- Login or register to post comments
- 4222 reads
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)










Comments
Varun Nischal replied on Thu, 2008/06/26 - 2:16pm
My name is Varun Nischal and I'm the NetBeans Community Docs Contribution Coordinator. Your Dzone entry would make fantastic Tutorial for our Community Docs wiki (http://wiki.netbeans.org/CommunityDocs).
If you aren't a Sun Employee, Would you be willing to contribute it? If you need any help or have any questions, please contact me at nvarun@netbeans.org
I look forward to hearing from you.
Thanks,
Varun Nischal
http://nb-community-docs.blogspot.com/
--
"You must do the things you think you cannot do."