The WS-I:

The Web Services Interoperability Organization (WS-I) is an organization founded to write best practices about the web services interoperability. Its WS-Basic Profile and WS-Basic Security Profile documents deals with some specifications and recommendations to prevent interoperability problems.

They provide a toolkit which can be used to check if the services are compliants with the basic profile or not.

The WS-I testing toolkit contains two tools:

The monitor:
It works as a proxy for web services requests and responses. An interceptor looks at the messages, and sends some informations to a Logger which persists them.

The analyzer:
It analyses the logs generated by the monitor and analyse the traffic between the ckient and the server to determine if it is compliant.
It can analyse WSDLs to check thier compliance, and can even analyse an UDDI repository.

The tool which will interest us today is the WSDL Analyzer, and its ability to check a WSDL and generate a report about its compliance with the WSI-Basic Profile. The report contains the result of the test, and the uncompliant points if there are.

This analyzer can be integrated with Soapui, in order to validate the imported wsdls.

Integration in SOAP UI:
Once you have downloaded soapUI and installed it, you can configure it to use the WS-I analyser to check your WSDL’s compliance with the WSI-Basic Profile.

Download the toolkit:
Download the toolkit on the testing tool download page of the WS-I. Install it by unzipping the zip file in a directory of your local disk.

Configure soapui:
Launch soapUI, go to the “Preferences” box, and choose the “WS-I Settings” tab.
Here, you can configure the path to the toolkit, and some options of the analyser.

Validate a wsdl:
When it is configured, you are able to check the compliance of your WSDLs. To do it, rigth click on the WSDL you want to chack, and select “Chack WS-I Compliance”. Your WSDL will be analysed, and the report will be generated in the soapUI window.

The report:
The report tells you if all the tests have passed, or if at least one of them has failed. You can find all the tests performed on your WSDL, and the assertions verified.
If your WSDL is not compliant you can have look at the “Test Assertion Document” available on the testing tool download page of the WSI to retrieve which recommendation your failed assertion is relating.

I found this tool very usefull…

Mathias

Répondre