2006/ws/policy/interop/Round2/WSDL11 PolicyAttachments.wsdl,NONE,1.1 ExternalPolicy.xml,NONE,1.1

Update of /sources/public/2006/ws/policy/interop/Round2/WSDL11
In directory hutz:/tmp/cvs-serv7700/interop/Round2/WSDL11

Added Files:
	PolicyAttachments.wsdl ExternalPolicy.xml 
Log Message:
Added interop scenarios and test cases to the WS-Policy WG CVS Archive

--- NEW FILE: ExternalPolicy.xml ---
<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy"
	xmlns:intf="http://ws-policy.tests"
	xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"

	Name="http://fabrikam123.com/policies/ExternalPolicy" >

	<intf:ServicePolicyTestAssertion1 marker="6" /> 

</wsp:Policy>
--- NEW FILE: PolicyAttachments.wsdl ---
<?xml version="1.0" encoding="UTF-8"?>
<!--
	***** Straw man WSDL file for Stage 2 of WS-Policy interop test *****
	====================================================================  
	The Effective Policy calculation at the four scope levels is very similar, 
	and each should result in 2 Alternatives. Each of the two Alternatives, 
	one with XXXPolicyTestAssertion1 and one with XXXPolicyTestAssertion2 (where
	XXX are Service, Endpoint, Operation and Message), they also have 
	specific marker values unique to the level. More particularly:
	
	Service:  (MyService): marker = 5
	Endpoint: (MyPort): marker = 4
	Operation: (MyOperation): marker = 3
	Message:
	   Input: (MyInput): marker = 2
	   Output:(MyOutput): marker = 1
	   Fault: (MyFault):  marker = 0
	
	In addition, each level should have one XXXPolicyTestAssertion1 with
	a marker value of 6, and two XXXPolicyTestAssertion2 with marker 
	values of 7 and 8.	
	
	There are also lots of other Policies scattered throughout which should
	never appear in any of the Effective Policies, making sure that cross
	contamination is not occuring in the calculation. These are all 
	tagged with a marker value of 9. There are also various branches in the
	WSDL which are placed there to make sure there is no cross contamination
	from them, as they all have marker 9 policies attached.
	====================================================================  
-->
<wsdl:definitions targetNamespace="http://ws-policy.tests" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:intf="http://ws-policy.tests" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns="http://schemas.xmlsoap.org/wsdl" xmlns:wsp="http://www.w3.org/ns/ws-policy">
	<wsp:UsingPolicy wsdl:Required="true" />
	<!--
		Dummy Assertion scattered throughout as a "spoiler", i.e. the marker value of 9 
		should NEVER appear in any of the Effective Policies calculated.
	-->
	<wsp:Policy wsu:Id="Dummy1-9">
		<intf:PolicyTestAssertion1 marker="9" />
	</wsp:Policy>

	<!--
		Message level assertions.  
	-->
	<wsp:Policy wsu:Id="Message1-6">
		<intf:MessagePolicyTestAssertion1 marker="6" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="Message2-7">
		<intf:MessagePolicyTestAssertion2 marker="7" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="Message2-Aggregate">
		<intf:MessagePolicyTestAssertion2 marker="8" />
		<wsp:PolicyReference URI="#Message2-7" />
	</wsp:Policy>

	<!--
		Operation level assertions.  
	-->
	<wsp:Policy wsu:Id="Operation1-6">
		<intf:OperationPolicyTestAssertion1 marker="6" />
	</wsp:Policy>

	<wsp:Policy wsu:Id="Operation2-7">
		<intf:OperationPolicyTestAssertion2 marker="7" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="Operation2-Aggregate">
		<intf:OperationPolicyTestAssertion2 marker="8" />
		<wsp:PolicyReference URI="#Operation2-7" />
	</wsp:Policy>

	<!--
		Endpoint level assertions.  
	-->
	<wsp:Policy wsu:Id="Endpoint2-7">
		<intf:EndpointPolicyTestAssertion2 marker="7" />
	</wsp:Policy>

	<wsp:Policy wsu:Id="Endpoint2-Aggregate">
		<intf:EndpointPolicyTestAssertion2 marker="8" />
		<wsp:PolicyReference URI="#Endpoint2-7" />
	</wsp:Policy>

	<!--
		Service level assertions.  

		This policy expression is replaced by the externally defined expression in ExternalPolicy.xml
		<wsp:Policy wsu:Id="Service1-6">
			<intf:ServicePolicyTestAssertion1 marker="6" />
		</wsp:Policy>

	-->

	<wsp:Policy wsu:Id="Service2-7">
		<intf:ServicePolicyTestAssertion2 marker="7" />
	</wsp:Policy>
	<wsp:Policy wsu:Id="Service2-Aggregate">
		<intf:ServicePolicyTestAssertion2 marker="8" />
		<wsp:PolicyReference URI="#Service2-7" />
	</wsp:Policy>

	<wsdl:types>
		<schema elementFormDefault="qualified" targetNamespace="http://ws-policy.tests" 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="#Message2-Aggregate" />				
		<wsdl:part name="parameters" element="intf:SimpleRequest" />
	</wsdl:message>
	
	<wsdl:message name="MyResponseMessage">
		<wsp:PolicyReference URI="#Message2-Aggregate" />				
		<wsdl:part name="parameters" element="intf:SimpleResponse" />
	</wsdl:message>
	
	<wsdl:message name="MyFaultMessage">
		<wsp:PolicyReference URI="#Message2-Aggregate"/>				
		<wsdl:part name="parameters" element="intf:SimpleFault" />
	</wsdl:message>

	<wsdl:message name="AnotherRequestMessage">
		<wsp:PolicyReference URI="#Dummy1-9"/>				
		<wsdl:part name="parameters" element="intf:SimpleRequest" />
	</wsdl:message>
	
	<wsdl:message name="AnotherResponseMessage">
		<wsp:PolicyReference URI="#Dummy1-9"/>				
		<wsdl:part name="parameters" element="intf:SimpleResponse" />
	</wsdl:message>
	
	<wsdl:message name="AnotherFaultMessage">
		<wsp:PolicyReference URI="#Dummy1-9"/>				
		<wsdl:part name="parameters" element="intf:SimpleFault" />
	</wsdl:message>

	<wsdl:portType name="MyPortType" wsp:PolicyURIs="#Endpoint2-Aggregate">
		<wsdl:operation name="MyOperation">
			<wsp:Policy>
				<wsp:PolicyReference URI="Operation2-Aggregate"/>							
				<wsp:PolicyReference URI="#Operation1-6"/>	
			</wsp:Policy>
			<wsdl:input name="MyInput" message="intf:MyRequestMessage" wsp:PolicyURIs="#Message1-6" />
			<wsdl:output name="MyOutput" message="intf:MyResponseMessage" wsp:PolicyURIs="#Message1-6" />
			<wsdl:fault name="MyFault" message="intf:MyFaultMessage" wsp:PolicyURIs="#Message1-6" />
		</wsdl:operation>
	</wsdl:portType>


	<wsdl:portType name="AnotherPortType" wsp:PolicyURIs="#Dummy1-9">
		<wsdl:operation name="AnotherOperation">
			<wsp:PolicyReference URI="#Dummy1-9" />
			<wsdl:input name="AnotherInput" message="intf:AnotherRequestMessage" wsp:PolicyURIs="#Dummy1-9" />
			<wsdl:output name="AnotherOutput" message="intf:AnotherResponseMessage" wsp:PolicyURIs="#Dummy1-9" />
			<wsdl:fault name="AnotherFault" message="intf:AnotherFaultMessage" wsp:PolicyURIs="#Dummy1-9" />
		</wsdl:operation>
	</wsdl:portType>

	<wsdl:binding name="MyBinding" type="intf:MyPortType">
		<wsp:Policy wsu:Id="Endpoint1-6">
			<intf:EndpointPolicyTestAssertion1 marker="6" />
		</wsp:Policy>
		<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="MyOperation">
			<wsp:Policy>
				<wsp:ExactlyOne>
					<intf:OperationPolicyTestAssertion1 marker="3" />
					<intf:OperationPolicyTestAssertion2 marker="3" />
				</wsp:ExactlyOne>
			</wsp:Policy>

			<wsdlsoap:operation soapAction="" />
			<wsdl:input name="MyInput">
				<wsp:Policy>
					<wsp:ExactlyOne>
						<intf:MessagePolicyTestAssertion1 marker="2" />
						<intf:MessagePolicyTestAssertion2 marker="2" />
					</wsp:ExactlyOne>
				</wsp:Policy>
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="MyOutput">
				<wsp:Policy>
					<wsp:ExactlyOne>
						<intf:MessagePolicyTestAssertion1 marker="1" />
						<intf:MessagePolicyTestAssertion2 marker="1" />
					</wsp:ExactlyOne>
				</wsp:Policy>
				<wsdlsoap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="MyFault">
				<wsp:Policy>
					<wsp:ExactlyOne>
						<intf:MessagePolicyTestAssertion1 marker="0" />
						<intf:MessagePolicyTestAssertion2 marker="0" />
					</wsp:ExactlyOne>
				</wsp:Policy>
				<wsdlsoap:body use="literal" />
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:binding name="AnotherBinding" type="intf:AnotherPortType">
		<wsp:PolicyReference URI="#Dummy1-9" />
		<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
		<wsdl:operation name="AnotherOperation">
			<wsp:PolicyReference URI="#Dummy1-9" />
			<wsdlsoap:operation soapAction="" />
			<wsdl:input name="AnotherInput">
				<wsp:PolicyReference URI="#Dummy1-9" />
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="AnotherOutput">
				<wsp:PolicyReference URI="#Dummy1-9" />
				<wsdlsoap:body use="literal" />
			</wsdl:output>
			<wsdl:fault name="AnotherFault">
				<wsp:PolicyReference URI="#Dummy1-9" />
				<wsdlsoap:body use="literal" />
			</wsdl:fault>
		</wsdl:operation>
	</wsdl:binding>

	<wsdl:service name="AnotherService">
		<wsp:PolicyReference URI="#Dummy1-9" />
		<wsdl:port name="MyPort" binding="intf:MyBinding">
			<wsp:PolicyReference URI="#Dummy1-9" />
			<wsdlsoap:address location="http://localhost:8080/services/AnotherServiceMyPort" />
		</wsdl:port>

		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
			<wsp:PolicyReference URI="#Dummy1-9" />
			<wsdlsoap:address location="http://localhost:8080/services/AnotherServiceAnotherPort" />
		</wsdl:port>
	</wsdl:service>

	<wsdl:service name="MyService">
		<wsp:Policy>
			<wsp:ExactlyOne>
				<intf:ServicePolicyTestAssertion1 marker="5" />
				<intf:ServicePolicyTestAssertion2 marker="5" />
			</wsp:ExactlyOne>
			<wsp:PolicyReference URI="#Service2-Aggregate" />
			<wsp:PolicyReference URI="http://fabrikam123.com/policies/ExternalPolicy" />
		</wsp:Policy>

		<wsdl:port name="MyPort" binding="intf:MyBinding">
			<wsp:Policy>
				<wsp:ExactlyOne>
					<intf:EndpointPolicyTestAssertion1 marker="4" />
					<intf:EndpointPolicyTestAssertion2 marker="4" />
				</wsp:ExactlyOne>
			</wsp:Policy>
			<wsdlsoap:address location="http://localhost:9080/services/MyServiceMyPort" />
		</wsdl:port>

		<wsdl:port name="AnotherPort" binding="intf:AnotherBinding">
			<wsp:PolicyReference URI="#Dummy1-9" />
			<wsdlsoap:address location="http://localhost:9080/services/MyServiceAnotherPort" />
		</wsdl:port>

	</wsdl:service>
		
</wsdl:definitions>

Received on Wednesday, 7 February 2007 23:57:48 UTC