- From: Arthur Ryman <ryman@ca.ibm.com>
- Date: Fri, 18 Feb 2005 16:00:49 -0500
- To: Lawrence Mandel <lmandel@ca.ibm.com>
- Cc: www-ws-desc@w3.org, www-ws-desc-request@w3.org
- Message-ID: <OF2E495940.BA62EBC1-ON85256FAC.0073137C-85256FAC.00736DF3@ca.ibm.com>
Lawrence, Thx for the test cases. I ran the build script to validate them but got the following errors. All test cases, including bad ones, must validate correcty versus the WSDL XSD. Are you getting different results? Here's my output: Buildfile: D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\build.xml xsd-schema: [xmlvalidate] 1 file(s) have been successfully validated. wsdl-schema: [xmlvalidate] 3 file(s) have been successfully validated. good: [xmlvalidate] 11 file(s) have been successfully validated. bad: [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-10B/Service.wsdl:26:32: cvc-complex-type.4: Attribute 'binding' must appear on element 'wsdl:endpoint'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-10B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-11B/Service.wsdl:27:23: cvc-datatype-valid.1.2.1: '' is not a valid value for 'QName'. [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-11B/Service.wsdl:27:23: cvc-attribute.3: The value '' of attribute 'binding' on element 'wsdl:endpoint' is not valid with respect to its type, 'QName'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-11B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-16B/Service.wsdl:28:27: cvc-complex-type.2.4.a: Invalid content was found starting with element 'wsdl:documentation'. One of '{"http://www.w3.org/2004/08/wsdl":endpoint, "http://www.w3.org/2004/08/wsdl":feature, "http://www.w3.org/2004/08/wsdl":property, WC[##other:"http://www.w3.org/2004/08/wsdl"]}' is expected. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-16B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-3B/Service.wsdl:25:18: cvc-complex-type.2.4.b: The content of element 'wsdl:service' is not complete. One of '{"http://www.w3.org/2004/08/wsdl":documentation, "http://www.w3.org/2004/08/wsdl":endpoint, "http://www.w3.org/2004/08/wsdl":feature, "http://www.w3.org/2004/08/wsdl":property, WC[##other:"http://www.w3.org/2004/08/wsdl"]}' is expected. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-3B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-4B/Service.wsdl:24:38: cvc-complex-type.4: Attribute 'interface' must appear on element 'wsdl:service'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-4B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-5B/Service.wsdl:24:51: cvc-datatype-valid.1.2.1: '' is not a valid value for 'QName'. [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-5B/Service.wsdl:24:51: cvc-attribute.3: The value '' of attribute 'interface' on element 'wsdl:service' is not valid with respect to its type, 'QName'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-5B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-6B/Service.wsdl:24:57: cvc-datatype-valid.1.2.1: '' is not a valid value for 'NCName'. [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-6B/Service.wsdl:24:57: cvc-attribute.3: The value '' of attribute 'name' on element 'wsdl:service' is not valid with respect to its type, 'NCName'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-6B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-8B/Service.wsdl:27:42: cvc-datatype-valid.1.2.1: '' is not a valid value for 'NCName'. [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-8B/Service.wsdl:27:42: cvc-attribute.3: The value '' of attribute 'name' on element 'wsdl:endpoint' is not valid with respect to its type, 'NCName'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-8B\Service.wsdl is not a valid XML document [xmlvalidate] /D:/workspaces/Eclipse%20V3.1%20M4/W3C/test-suite/documents/bad/Service-9B/Service.wsdl:26:42: cvc-complex-type.4: Attribute 'name' must appear on element 'wsdl:endpoint'. [xmlvalidate] D:\workspaces\Eclipse V3.1 M4\W3C\test-suite\documents\bad\Service-9B\Service.wsdl is not a valid XML document [xmlvalidate] 24 file(s) have been successfully validated. main: BUILD SUCCESSFUL Total time: 6 seconds Arthur Ryman, Rational Desktop Tools Development phone: +1-905-413-3077, TL 969-3077 assistant: +1-905-413-2411, TL 969-2411 fax: +1-905-413-4920, TL 969-4920 mobile: +1-416-939-5063, text: 4169395063@fido.ca intranet: http://labweb.torolab.ibm.com/DRY6/ Lawrence Mandel/Toronto/IBM@IBMCA Sent by: www-ws-desc-request@w3.org 02/16/2005 05:52 PM To www-ws-desc@w3.org cc Subject Test Suite Update I've created some more test cases for the WSDL 2.0 test suite. These test cases show valid and invalid uses of the service and endpoint elements by exercising different options with the service name and interface attributes and documentation element, and the endpoint name, binding, and address attributes, and documentation element. <wsdl:service name="EchoService" interface="tns:EchoInterface"> <wsdl:documentation> The Echo service. </wsdl:documentation> <wsdl:endpoint name="SOAPEndpoint" binding="tns:EchoSOAPBinding" address="http://www.example.com/services/EchoService"/> </wsdl:service> For example, the interface attribute is specified as 1) interface="tns:EchoInterface" 2) interface="EchoInterface" 3) interface="tns:WrongEchoInterface" 4) interface="" 5) is omitted all together. Similar tests are performed for the name attributes and the binding and address attributes. The presence, absence, and position of the documentation and endpoint elements are tested as well. This patch contains 3 valid and 16 invalid tests. Lawrence Mandel Software Developer IBM Rational Software Phone: 905 - 413 - 3814 Fax: 905 - 413 - 4920 lmandel@ca.ibm.com[attachment "test-suite-patch.txt" deleted by Arthur Ryman/Toronto/IBM]
Received on Friday, 18 February 2005 21:01:49 UTC