W3C home > Mailing lists > Public > public-ws-desc-eds@w3.org > November 2005

2002/ws/desc/test-suite test-suite.xml,NONE,1.1 wsdl-coverage.xsl,NONE,1.1 build.xml,1.8,1.9

From: Arthur Ryman via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 09 Nov 2005 19:36:37 +0000
To: public-ws-desc-eds@w3.org
Message-Id: <E1EZvkL-0005ih-PH@lionel-hutz.w3.org>

Update of /sources/public/2002/ws/desc/test-suite
In directory hutz:/tmp/cvs-serv21427/test-suite

Modified Files:
	build.xml 
Added Files:
	test-suite.xml wsdl-coverage.xsl 
Log Message:
Updated WSDL 2.0 namespaces to 2005/08 version. Begin work on test suite coverage reports.

--- NEW FILE: test-suite.xml ---
<?xml version="1.0" encoding="utf-8"?>
<test-suite>
	<test-case id="documents/good/Chameleon-1G">
		<file>getBalance.wsdl</file>
	</test-case>
	<test-case id="documents/good/Chameleon-2G">
		<file>getBalance.wsdl</file>
	</test-case>
	<test-case id="documents/good/Chameleon-3G">
		<file>getBalance.wsdl</file>
	</test-case>
	<test-case id="documents/good/Chameleon-4G">
		<file>getBalance.wsdl</file>
	</test-case>
</test-suite>
Index: build.xml
===================================================================
RCS file: /sources/public/2002/ws/desc/test-suite/build.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** build.xml	27 May 2005 18:11:21 -0000	1.8
--- build.xml	9 Nov 2005 19:36:35 -0000	1.9
***************
*** 7,10 ****
--- 7,13 ----
  	ChangeLog:
  	
+ 	2005-11-09 Arthur Ryman ryman@ca.ibm.com
+ 	- upgrade to use 2005/08 versions of WSDL 2.0 schemas
+ 
  	2005-04-30 Arthur Ryman ryman@ca.ibm.com
  	- Added gooxsd target to validate good schemas. 
***************
*** 103,108 ****
  
  	<target name="update-wsdl-ns" description="Updates the WSDL namespaces.">
! 		<replace dir="documents" includes="**/*.*" token="http://www.w3.org/2004/08/wsdl" value="http://www.w3.org/2005/05/wsdl" />
! 		<replace dir="xmlcatalog/wsdl" includes="**/*.xsd" token="http://www.w3.org/2004/08/wsdl" value="http://www.w3.org/2005/05/wsdl" />
  	</target>
  
--- 106,111 ----
  
  	<target name="update-wsdl-ns" description="Updates the WSDL namespaces.">
! 		<replace dir="documents" includes="**/*.*" token="http://www.w3.org/2005/05/wsdl" value="http://www.w3.org/2005/08/wsdl" />
! 		<replace dir="xmlcatalog/wsdl" includes="**/*.xsd" token="http://www.w3.org/2005/05/wsdl" value="http://www.w3.org/2005/08/wsdl" />
  	</target>
  
***************
*** 111,113 ****
--- 114,120 ----
  	</target>
  
+ 	<target name="coverage-test" description="Test case for generating coverage report for a WSDL document">
+ 		<xslt style="wsdl-coverage.xsl" in="documents/good/Chameleon-1G/getBalance.wsdl" out="documents/good/Chameleon-1G/getBalance.wsdl-coverage" />
+ 	</target>
+ 
  </project>
\ No newline at end of file

--- NEW FILE: wsdl-coverage.xsl ---
<?xml version="1.0" encoding="utf-8"?>

<!-- 
	
	Transforms a WSDL 2.0 document into a statistical report of element and attribute coverage.
	
	ChangeLog:
	
	2005-11-09 Arthur Ryman <ryman@ca.ibm.com>
	- created
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:wsdl="http://www.w3.org/2005/08/wsdl" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	version="1.0">

	<xsl:output method="xml" indent="yes" />

	<xsl:template match="/">
		<coverage>
			<item xpath="/description"
				count="{count(/wsdl:description)}" />
			<item xpath="/description//documentation"
				count="{count(/wsdl:description//wsdl:documentation)}" />
				
			<item xpath="/description/import"
				count="{count(/wsdl:description/wsdl:import)}" />
			<item xpath="/description/import/@location"
				count="{count(/wsdl:description/wsdl:import/@location)}" />
			<item xpath="/description/include"
				count="{count(/wsdl:description/wsdl:include)}" />
				
			<item xpath="/description/types"
				count="{count(/wsdl:description/wsdl:types)}" />
			<item xpath="/description/types/xs:schema"
				count="{count(/wsdl:description/wsdl:types/xs:schema)}" />
			<item xpath="/description/types/xs:import"
				count="{count(/wsdl:description/wsdl:types/xs:import)}" />
				
			<item xpath="/description/interface"
				count="{count(/wsdl:description/wsdl:interface)}" />
			<item xpath="/description/interface/@extends"
				count="{count(/wsdl:description/wsdl:interface/@extends)}" />
			<item xpath="/description/interface/fault"
				count="{count(/wsdl:description/wsdl:interface/wsdl:fault)}" />
			<item xpath="/description/interface/fault/@element"
				count="{count(/wsdl:description/wsdl:interface/wsdl:fault/@element)}" />
			<item xpath="/description/interface/operation"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation)}" />
			<item xpath="/description/interface/operation/@safe"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/@safe)}" />
			<item xpath="/description/interface/operation/@style"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/@style)}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/in-only']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/in-only'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/robust-in-only']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/robust-in-only'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/in-out']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/in-out'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/in-opt-out']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/in-opt-out'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/out-only']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/out-only'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/robust-out-only']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/robust-out-only'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/out-in']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/out-in'])}" />
			<item xpath="/description/interface/operation[@pattern='http://www.w3.org/2005/05/wsdl/out-opt-in']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation[@pattern='http://www.w3.org/2005/05/wsdl/out-opt-in'])}" />
			<item xpath="/description/interface/operation/input"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input)}" />
			<item xpath="/description/interface/operation/input/@messageLabel"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input/@messageLabel)}" />
			<item xpath="/description/interface/operation/input/@element"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input/@element)}" />
			<item xpath="/description/interface/operation/input[@element='#any']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input[@element='#any'])}" />
			<item xpath="/description/interface/operation/input[@element='#none']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input[@element='#none'])}" />
			<item xpath="/description/interface/operation/input[@element='#other']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:input[@element='#other'])}" />
			<item xpath="/description/interface/operation/output"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output)}" />
			<item xpath="/description/interface/operation/output/@messageLabel"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output/@messageLabel)}" />
			<item xpath="/description/interface/operation/output/@element"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output/@element)}" />
			<item xpath="/description/interface/operation/output[@element='#any']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output[@element='#any'])}" />
			<item xpath="/description/interface/operation/output[@element='#none']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output[@element='#none'])}" />
			<item xpath="/description/interface/operation/output[@element='#other']"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:output[@element='#other'])}" />
			<item xpath="/description/interface/operation/infault"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:infault)}" />
			<item xpath="/description/interface/operation/infault/@messageLabel"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:infault/@messageLabel)}" />
			<item xpath="/description/interface/operation/outfault"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:outfault)}" />
			<item xpath="/description/interface/operation/outfault/@messageLabel"
				count="{count(/wsdl:description/wsdl:interface/wsdl:operation/wsdl:outfault/@messageLabel)}" />
				
			<item xpath="/description/binding"
				count="{count(/wsdl:description/wsdl:binding)}" />
			<item xpath="/description/binding/@interface"
				count="{count(/wsdl:description/wsdl:binding/@interface)}" />
			<item xpath="/description/binding/fault"
				count="{count(/wsdl:description/wsdl:binding/wsdl:fault)}" />
			<item xpath="/description/binding/operation"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation)}" />
			<item xpath="/description/binding/operation/input"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:input)}" />
			<item xpath="/description/binding/operation/input/@messageLabel"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:input/@messageLabel)}" />
			<item xpath="/description/binding/operation/output"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:output)}" />
			<item xpath="/description/binding/operation/output/@messageLabel"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:output/@messageLabel)}" />
			<item xpath="/description/binding/operation/infault"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:infault)}" />
			<item xpath="/description/binding/operation/infault/@messageLabel"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:infault/@messageLabel)}" />
			<item xpath="/description/binding/operation/outfault"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:outfault)}" />
			<item xpath="/description/binding/operation/outfault/@messageLabel"
				count="{count(/wsdl:description/wsdl:binding/wsdl:operation/wsdl:outfault/@messageLabel)}" />
				
			<item xpath="/description/service"
				count="{count(/wsdl:description/wsdl:service)}" />
			<item xpath="/description/service/endpoint"
				count="{count(/wsdl:description/wsdl:service/wsdl:endpoint)}" />
			<item xpath="/description/service/endpoint/@address"
				count="{count(/wsdl:description/wsdl:service/wsdl:endpoint/@address)}" />
				
			<item xpath="/description//feature"
				count="{count(/wsdl:description//wsdl:feature)}" />
			<item xpath="/description//feature/@required"
				count="{count(/wsdl:description//wsdl:feature/@required)}" />
			<item xpath="/description//property"
				count="{count(/wsdl:description//wsdl:property)}" />
				
		</coverage>
	</xsl:template>

</xsl:stylesheet>
Received on Wednesday, 9 November 2005 19:36:53 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Wednesday, 9 November 2005 19:37:01 GMT