WS-I.org recently published a set of test tools for XML Web services. These tools test for conformance with the WS-I's Basic Profile. For fun, I decided to test my Snow Report Service.

Configuration of the Analyzer is straight forward. Starting with the sample analyzerConfig.xml, I commented out the <uddiReference> and created a new <wsdlReference>, pointing the references to my Snow Report service. I ran the analyzer test and my service failed the tests.

Analyzer produces a report of the test in XML, which can be viewed in a user friendly format using your browser. I quickly saw from the report that the test could not find my <types> that I have declared in a separate schema file that is imported into the WSDL. And sure enough, there was a problem. I had forgotten to include the namespace reference on the <import> element in my WSDL document. A simple change to <s:import> and all was well. My service passes the WS-I Basic Profile test.

In theory, my service should interop with other platforms. I have had no problem consuming the service from Java. However, WSDL2Java from Axis still fails. Apparently it does not support the <import> element. The only way I can generate the Java based proxy classes using WSDL2Java is to include the types schema in the WSDL document as a single file. Hopefully that will be fix some day.

posted by Kirby | 24-Apr-2003 2:56 PM | comments (0)

Add Your Comment

Comment:
(No HTML)

Name:
E-mail/Web site:
Your e-mail/web site will not be published on this site. It is optional and will only be used by me should I need to contact you directly.
 
By checking this option, this site will remember your name and e-mail/web site on future visits. Uncheck this option to have the site not remember who you are on future visits.
 
Enter the code shown above:
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.