You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by sa...@apache.org on 2006/05/15 13:27:45 UTC

svn commit: r406616 [1/2] - in /webservices/commons/trunk/modules/neethi: src/org/apache/ws/policy/ src/org/apache/ws/policy/attachment/ test-resources/base/ test2/org/apache/ws/policy/

Author: sanka
Date: Mon May 15 04:27:43 2006
New Revision: 406616

URL: http://svn.apache.org/viewcvs?rev=406616&view=rev
Log:
Added the set of testcases uploaded in WS-COMMONS JIRA 26.


Added:
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Endpoint.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Fault.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ImportedPolicies.xml
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Input.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_InputNotNamed.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_NoPolicies.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation_EmptyBinding.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Output.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_OutputNotNamed.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Service.wsdl
    webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ServicePartial.wsdl
    webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Driver.java
    webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_EffectivePolicy.java
Modified:
    webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/Policy.java
    webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/PolicyReference.java
    webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/attachment/WSDLPolicyProcessor.java
    webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_JIRA14.java
    webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Policy.java

Modified: webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/Policy.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/Policy.java?rev=406616&r1=406615&r2=406616&view=diff
==============================================================================
--- webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/Policy.java (original)
+++ webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/Policy.java Mon May 15 04:27:43 2006
@@ -97,7 +97,7 @@
      * @param id
      */
     public void setId(String id) {
-        addAttribute(new QName(PolicyConstants.POLICY_NAMESPACE_URI,
+        addAttribute(new QName(PolicyConstants.WSU_NAMESPACE_URI,
                 PolicyConstants.POLICY_ID), id);
     }
 
@@ -108,7 +108,7 @@
      */
     public String getId() {
         return (String) getAttribute(new QName(
-                PolicyConstants.POLICY_NAMESPACE_URI,
+                PolicyConstants.WSU_NAMESPACE_URI,
                 PolicyConstants.POLICY_ID));
     }
 

Modified: webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/PolicyReference.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/PolicyReference.java?rev=406616&r1=406615&r2=406616&view=diff
==============================================================================
--- webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/PolicyReference.java (original)
+++ webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/PolicyReference.java Mon May 15 04:27:43 2006
@@ -71,7 +71,15 @@
 			throw new RuntimeException("Cannot resolve : "
 					+ getPolicyURIString() + " .. PolicyRegistry is null");
 		}
-		Policy targetPolicy = reg.lookup(getPolicyURIString());
+        
+        String key = getPolicyURIString();
+        
+        if (key.startsWith("#")) {
+            key = key.substring(key.indexOf('#') + 1);            
+        }
+        
+		Policy targetPolicy = reg.lookup(key);
+        
 		if (targetPolicy == null) {
 			throw new RuntimeException("error : " + getPolicyURIString()
 					+ " doesn't resolve to any known policy");

Modified: webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/attachment/WSDLPolicyProcessor.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/attachment/WSDLPolicyProcessor.java?rev=406616&r1=406615&r2=406616&view=diff
==============================================================================
--- webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/attachment/WSDLPolicyProcessor.java (original)
+++ webservices/commons/trunk/modules/neethi/src/org/apache/ws/policy/attachment/WSDLPolicyProcessor.java Mon May 15 04:27:43 2006
@@ -67,15 +67,14 @@
 	DOMPolicyReader prdr = null;
 
 	public WSDLPolicyProcessor(InputStream in) throws WSDLException {
-		this(in, null);
+		this(in, new PolicyRegistry());
 	}
 
 	public WSDLPolicyProcessor(InputStream in, PolicyRegistry registry)
 			throws WSDLException {
-		if (registry != null) {
-			this.registry = registry;
-		}
-
+		
+        setRegistry(registry);
+        
 		try {
 			DocumentBuilderFactory builderFactory = DocumentBuilderFactory
 					.newInstance();
@@ -150,15 +149,37 @@
 		Binding wsdl4jBinding = wsdl4jPort.getBinding();
 		BindingOperation wsdl4jBindingOperation = wsdl4jBinding
 				.getBindingOperation(opName, null, null);
-		if (wsdl4jBindingOperation == null) {
-			throw new IllegalArgumentException("invalid binding name");
-		}
-
+        
+        Operation wsdl4jOperation;
+        
+        if (wsdl4jBindingOperation == null) {
+            PortType wsdl4jPortType = wsdl4jBinding.getPortType();
+            wsdl4jOperation = wsdl4jPortType.getOperation(opName, null, null);
+            
+        } else {
+            
+            wsdl4jOperation = wsdl4jBindingOperation.getOperation();
+        }
+        
+        if (wsdl4jOperation == null) {
+            
+            PortType wsdl4jPortType = wsdl4jBinding.getPortType();
+            wsdl4jOperation = wsdl4jPortType.getOperation(opName, null, null);
+        }
+        
+        if (wsdl4jOperation == null) {
+            throw new IllegalArgumentException("Invaild operation name " + opName);
+        }
+        
 		ArrayList policyList = new ArrayList();
+        
+        if (wsdl4jBindingOperation != null) {
 		policyList.addAll(getPoliciesAsExtElements(wsdl4jBindingOperation
 				.getExtensibilityElements()));
+        }
 
-		Operation wsdl4jOperation = wsdl4jBindingOperation.getOperation();
+//		Operation wsdl4jOperation = wsdl4jBindingOperation.getOperation();
+        
 		policyList.addAll(getPoliciesAsExtElements(wsdl4jOperation
 				.getExtensibilityElements()));
 
@@ -270,12 +291,19 @@
          
          return getEffectivePolicy(policyList);
     }
+    
+    private void setRegistry(PolicyRegistry registry) {
+        this.registry = registry;
+    }
+    
+    private PolicyRegistry getRegistry() {
+        return registry;
+    }
 
 	private Policy getEffectivePolicy(List policyList) {
 		Policy policy = null;
 		Object policyElement;
-		;
-
+         
 		for (Iterator iterator = policyList.iterator(); iterator.hasNext();) {
 			policyElement = iterator.next();
 			if (policyElement instanceof Policy) {
@@ -291,13 +319,12 @@
 
 			}
 		}
-
-		if (!policy.isNormalized()) {
-			policy = (Policy) policy.normalize(registry);
-		}
-
-		return policy;
-
+        
+        if (policy == null) {
+            return null;
+        }
+        
+        return (policy.isNormalized()) ? policy :(Policy) policy.normalize(registry);
 	}
 
 	private void processDefinition(Definition wsdl4jDefinition) {
@@ -316,12 +343,16 @@
 				unknown = (UnknownExtensibilityElement) extElement;
 
 				if (POLICY.equals(unknown.getElementType())) {
-					Policy p = prdr.readPolicy(unknown.getElement());
-
-					if (p.getPolicyURI() != null) {
-						registry.register(p.getPolicyURI(), p);
-					}
-				}
+					Policy p = prdr.readPolicy(unknown.getElement());                    
+                    
+                    if (p.getId() != null) {
+                        registry.register(p.getId(), p);
+                    }
+                    
+                    if (p.getName() != null) {
+                        registry.register(p.getName(), p);
+                    }
+                }
 			}
 		}
 	}
@@ -364,7 +395,13 @@
 			Policy policy;
 
 			for (int i = 0; i < URIs.length; i++) {
-				policy = registry.lookup(URIs[i]);
+                String key = URIs[i];
+                
+                if (key.startsWith("#")) {
+                    key = key.substring(key.indexOf("#") + 1);
+                }
+                
+				policy = registry.lookup(key);
 
 				if (policy == null) {
 					throw new RuntimeException("cannot resolve : " + URIs[i]);

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Endpoint.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Endpoint.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Endpoint.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Endpoint.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>
+		<wsp:PolicyReference URI="#LogTime" />
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#Year" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:portType name="MyPortType">
+		<wsdl:operation name="MyOperation">
+			<wsp:PolicyReference URI="#Month" />
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+			  		<cal:Log>ID</cal:Log>
+			 	</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<cal:Log>ID</cal:Log>
+		</wsp:Policy>
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsp:Policy>
+				<wsp:PolicyReference URI="#YearDay" />
+				<wsp:PolicyReference URI="#HourAndDay" />
+			</wsp:Policy>
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Fault.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Fault.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Fault.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Fault.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,211 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.ibm.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.ibm.com"
+	xmlns:impl="http://policy.tests.webservices.ibm.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm/policy"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	<wsp:Policy wsu:Id="Backoff">
+		<wsrm:RMAssertion>
+			<wsrm:ExponentialBackoff />
+		</wsrm:RMAssertion>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="AckAndInactivity">
+		<wsp:ExactlyOne>
+			<wsrm:RMAssertion>
+				<wsrm:AcknowledgementInterval Milliseconds="4000" />
+			</wsrm:RMAssertion>
+			<wsrm:RMAssertion>
+				<wsrm:InactivityTimeout Milliseconds="12000" />
+			</wsrm:RMAssertion>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="SecHeader">
+		<sec:SecurityHeader MustPrepend="true" />
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="X509">
+		<sec:SecurityToken>
+			<sec:TokenType>sec:X509v3</sec:TokenType>
+		</sec:SecurityToken>
+	</wsp:Policy>
+
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleFault">
+				<complexType>
+					<sequence>
+						<element name="fault" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#X509" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="MyResponseMessage">
+		<wsp:PolicyReference URI="#X509" />
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="YetAnotherFaultMessage">
+		<wsp:PolicyReference URI="#X509" />
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AndAnotherFaultMessage">
+		<wsp:PolicyReference URI="#X509" />
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#SecHeader">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+			<wsdl:fault name="ExtraFault" message="intf:MyFaultMessage"
+				wsp:PolicyURIs="#X509" />
+			<wsdl:fault name="YetAnotherFault"
+				message="intf:MyFaultMessage" wsp:PolicyURIs="#X509" />
+			<wsdl:fault name="AndAnotherFault"
+				message="intf:MyFaultMessage" wsp:PolicyURIs="#X509" />
+			<wsdl:fault name="MyFault" message="intf:MyFaultMessage"
+				wsp:PolicyURIs="#AckAndInactivity" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+					<sec:MessageAge Age="2000" />
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+			<wsdl:fault name="MyFault">
+				<wsp:Policy>
+					<wsrm:RMAssertion>
+						<wsrm:BaseRetransmissionInterval
+							Milliseconds="6000" />
+					</wsrm:RMAssertion>
+					<wsp:PolicyReference URI="#Backoff" />
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:fault>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+					<sec:MessageAge Age="2000" />
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+					<sec:MessageAge Age="2000" />
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<sec:SecurityToken>
+				<sec:TokenType>sec:UsernameToken</sec:TokenType>
+			</sec:SecurityToken>
+		</wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ImportedPolicies.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ImportedPolicies.xml?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ImportedPolicies.xml (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ImportedPolicies.xml Mon May 15 04:27:43 2006
@@ -0,0 +1,9 @@
+<wsp:Policy Name="http://policy.test.webservices.com/HourAndDay"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+   	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+	<wsp:ExactlyOne>
+		<cal:Hour>Numeric</cal:Hour>
+		<cal:Day>Alpha</cal:Day>
+	</wsp:ExactlyOne>
+</wsp:Policy>
+

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Input.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Input.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Input.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Input.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#YearDay" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="MyResponseMessage">		
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage"
+				wsp:PolicyURIs="#HourAndDay" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">			
+				<wsp:Policy wsu:Id="LogTime">
+					<util:Log>Time</util:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+	    	<cal:Log>ID</cal:Log>
+	    </wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+
+	<!-- Put at end of wsdl to ensure order of policies in file is not critical -->
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>	
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_InputNotNamed.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_InputNotNamed.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_InputNotNamed.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_InputNotNamed.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#YearDay" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="MyResponseMessage">		
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input message="intf:MyRequestMessage"
+				wsp:PolicyURIs="#HourAndDay" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input>			
+				<wsp:Policy wsu:Id="LogTime">
+					<util:Log>Time</util:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+	    	<cal:Log>ID</cal:Log>
+	    </wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+
+	<!-- Put at end of wsdl to ensure order of policies in file is not critical -->
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>	
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_NoPolicies.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_NoPolicies.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_NoPolicies.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_NoPolicies.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:portType name="MyPortType">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+			<wsdl:fault name="MyFault" message="intf:MyFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#Year" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsp:Policy wsu:Id="HourAndDay">
+	  			<wsp:ExactlyOne>
+					<cal:Hour>Numeric</cal:Hour>
+					<cal:Day>Alpha</cal:Day>
+				</wsp:ExactlyOne>
+			</wsp:Policy>
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsp:Policy wsu:Id="YearDay">
+				<cal:YearDay>Numeric</cal:YearDay>
+				<wsp:PolicyReference URI="#LogTime" />
+			</wsp:Policy>
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<cal:Log>ID</cal:Log>
+		</wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation_EmptyBinding.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation_EmptyBinding.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation_EmptyBinding.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Operation_EmptyBinding.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#Year" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsp:Policy wsu:Id="HourAndDay">
+	  			<wsp:ExactlyOne>
+					<cal:Hour>Numeric</cal:Hour>
+					<cal:Day>Alpha</cal:Day>
+				</wsp:ExactlyOne>
+			</wsp:Policy>
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />	
+	</wsdl:binding>
+
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+					<cal:Log>ID</cal:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<cal:Log>ID</cal:Log>
+		</wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Output.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Output.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Output.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Output.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+
+	<wsdl:message name="MyRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="MyResponseMessage">
+		<wsp:PolicyReference URI="#YearDay" />
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" wsp:PolicyURIs="#HourAndDay"/>
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy wsu:Id="LogTime">
+					<util:Log>Time</util:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+	    	<cal:Log>ID</cal:Log>
+	    </wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+
+	<!-- Put at end of wsdl to ensure order of policies in file is not critical -->
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>	
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_OutputNotNamed.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_OutputNotNamed.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_OutputNotNamed.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_OutputNotNamed.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+
+	<wsdl:message name="MyRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="MyResponseMessage">
+		<wsp:PolicyReference URI="#YearDay" />
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+
+	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Month">
+		<wsdl:operation name="MyOperation">
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output message="intf:MyResponseMessage" wsp:PolicyURIs="#HourAndDay"/>
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<wsp:Policy wsu:Id="LogTime">
+					<util:Log>Time</util:Log>
+				</wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+	    	<cal:Log>ID</cal:Log>
+	    </wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+
+	<!-- Put at end of wsdl to ensure order of policies in file is not critical -->
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>	
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Service.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Service.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Service.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_Service.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="YearDay">
+		<cal:YearDay>Numeric</cal:YearDay>
+		<wsp:PolicyReference URI="#LogTime" />
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="HourAndDay">
+		<wsp:ExactlyOne>
+			<cal:Hour>Numeric</cal:Hour>
+			<cal:Day>Alpha</cal:Day>
+		</wsp:ExactlyOne>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#Year" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:portType name="MyPortType">
+		<wsdl:operation name="MyOperation">
+			<wsp:PolicyReference URI="#Month" />
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+	    <wsp:Policy>
+	    	<cal:Seconds>Numeric</cal:Seconds>
+	    </wsp:Policy>
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsp:Policy>
+				<cal:Log>ID</cal:Log>
+			</wsp:Policy>
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+				    <cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<wsp:PolicyReference URI="#YearDay" />
+			<wsp:PolicyReference URI="#HourAndDay" />
+		</wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ServicePartial.wsdl
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ServicePartial.wsdl?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ServicePartial.wsdl (added)
+++ webservices/commons/trunk/modules/neethi/test-resources/base/EffectivePolicy_ServicePartial.wsdl Mon May 15 04:27:43 2006
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://policy.tests.webservices.com"
+	xmlns:sec="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:intf="http://policy.tests.webservices.com"
+	xmlns:impl="http://policy.tests.webservices.com"
+	xmlns:apachesoap="http://xml.apache.org/xml-soap"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:cal="http://policy.test.webservices.com/calendar"
+	xmlns:util="http://policy.test.webservices.com/util"
+	xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
+	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
+	<wsp:Policy wsu:Id="MonthDay">
+		<cal:MonthDay>Numeric</cal:MonthDay>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogTime">
+		<util:Log>Time</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="LogHeader">
+		<util:Log>Header</util:Log>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Month">
+		<cal:Month>Numeric</cal:Month>
+	</wsp:Policy>
+	<wsp:Policy wsu:Id="Year">
+		<cal:Year>Numeric</cal:Year>
+	</wsp:Policy>
+	
+	<wsdl:types>
+		<schema elementFormDefault="qualified"
+			targetNamespace="http://policy.tests.webservices.ibm.com"
+			xmlns="http://www.w3.org/2001/XMLSchema">
+			<element name="SimpleRequest">
+				<complexType>
+					<sequence>
+						<element name="request" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+			<element name="SimpleResponse">
+				<complexType>
+					<sequence>
+						<element name="response" nillable="true"
+							type="xsd:string" />
+					</sequence>
+				</complexType>
+			</element>
+		</schema>
+	</wsdl:types>
+	<wsdl:message name="MyRequestMessage">
+		<wsp:PolicyReference URI="#Year" />
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="MyResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="MyFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:message name="AnotherRequestMessage">
+		<wsdl:part name="parameters" element="intf:SimpleRequest" />
+	</wsdl:message>
+	<wsdl:message name="AnotherResponseMessage">
+		<wsdl:part name="parameters" element="intf:SimpleResponse" />
+	</wsdl:message>
+	<wsdl:message name="AnotherFaultMessage">
+		<wsdl:part name="parameters" element="intf:SimpleFault" />
+	</wsdl:message>
+
+	<wsdl:portType name="MyPortType">
+		<wsdl:operation name="MyOperation">
+			<wsp:PolicyReference URI="#Month" />
+			<wsdl:input name="MyInput" message="intf:MyRequestMessage" />
+			<wsdl:output name="MyOutput"
+				message="intf:MyResponseMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+
+	<wsdl:portType name="AnotherPortType">
+		<wsdl:operation name="AnotherOperation">
+			<wsdl:input name="AnotherInput"
+				message="intf:AnotherRequestMessage" />
+			<wsdl:output name="AnotherOutput"
+				message="intf:AnotherResponseMessage" />
+			<wsdl:fault name="AnotherFault"
+				message="intf:AnotherFaultMessage" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="MyBinding" type="intf:MyPortType">
+	    <wsp:Policy>
+	    	<cal:Seconds>Numeric</cal:Seconds>
+	    </wsp:Policy>
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="MyOperation">
+			<wsp:Policy>
+				<cal:Log>ID</cal:Log>
+			</wsp:Policy>
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="MyInput">
+				<wsp:Policy>
+				    <cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="MyOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
+		<wsdlsoap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="AnotherOperation">
+			<wsdlsoap:operation soapAction="" />
+			<wsdl:input name="AnotherInput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output name="AnotherOutput">
+				<wsp:Policy>
+			    	<cal:Log>ID</cal:Log>
+			    </wsp:Policy>
+				<wsdlsoap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AnotherService">
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:8080/services/DumdumAgain" />
+		</wsdl:port>
+	</wsdl:service>
+
+	<wsdl:service name="MyService">
+		<wsp:Policy>
+			<wsp:PolicyReference URI="http://policy.tests.webservices.com/YearDay" />
+			<wsp:PolicyReference URI="http://policy.tests.webservices.com/HourAndDay" />
+		</wsp:Policy>
+
+		<wsdl:port name="MyPort" binding="intf:MyBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/Dumdum" />
+		</wsdl:port>
+
+		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
+			<wsdlsoap:address
+				location="http://localhost:9080/services/DumdumAgain" />
+		</wsdl:port>
+
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Driver.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Driver.java?rev=406616&view=auto
==============================================================================
--- webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Driver.java (added)
+++ webservices/commons/trunk/modules/neethi/test2/org/apache/ws/policy/Test_Driver.java Mon May 15 04:27:43 2006
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2004,2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.ws.policy;
+
+import junit.framework.TestCase;
+
+public class Test_Driver extends TestCase {
+
+  public Test_Driver(String name) {
+    super(name);
+  }
+
+  public void testStartDriver() {
+  }
+
+  public static void main(String[] args) {
+    WSPTestSuite suite = new WSPTestSuite(Test_Driver.class);
+
+//    suite.addTestSuite(Test_JIRA14.class);
+//    suite.addTestSuite(Test_Policy.class);
+    suite.addTestSuite(Test_EffectivePolicy.class);
+
+    suite.run();
+  }
+
+}
\ No newline at end of file