You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrf-dev@ws.apache.org by sc...@apache.org on 2005/02/18 21:56:58 UTC

svn commit: r154347 [12/13] - in incubator/apollo/trunk/src/site/content/example: ./ lib/ src/ src/.xmlbeans/ src/.xmlbeans/src/ src/.xmlbeans/src/org/ src/.xmlbeans/src/org/oasisOpen/ src/.xmlbeans/src/org/oasisOpen/docs/ src/.xmlbeans/src/org/oasisOpen/docs/wsrf/ src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/ src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/ src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/ src/.xmlbeans/src/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03/impl/ src/.xmlbeans/src/schema/ src/.xmlbeans/src/schema/system/ src/.xmlbeans/src/schema/system/s9609847545506D32B386BC2D8CF69F0A/ src/JobPort/ src/JobPort/src/ src/JobPort/src/java/ src/JobPort/src/java/org/ src/JobPort/src/java/org/oasisOpen/ src/JobPort/src/java/org/oasisOpen/docs/ src/JobPort/src/java/org/oasisOpen/docs/wsrf/ src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/ src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/ src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/ src/JobPort/src/wsdl/ src/PrinterFactory/ src/PrinterFactory/src/ src/PrinterFactory/src/java/ src/PrinterFactory/src/java/org/ src/PrinterFactory/src/java/org/oasisOpen/ src/PrinterFactory/src/java/org/oasisOpen/docs/ src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/ src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/ src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/ src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/ src/PrinterFactory/src/wsdl/ src/PrinterPort/ src/PrinterPort/src/ src/PrinterPort/src/java/ src/PrinterPort/src/java/org/ src/PrinterPort/src/java/org/oasisOpen/ src/PrinterPort/src/java/org/oasisOpen/docs/ src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/ src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/ src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/ src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/ src/PrinterPort/src/wsdl/

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_deploy.wsdd?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_deploy.wsdd (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_deploy.wsdd Fri Feb 18 12:56:32 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
+            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+   <service name="PrinterFactory" provider="java:WSRF" style="document" use="literal">
+      
+      <wsdlFile>/wsdl/wsrf-Interop-2.0-draft-03.wsdl</wsdlFile>      
+      
+      <requestFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </requestFlow>      
+      
+      <responseFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </responseFlow>            
+      
+   </service>
+
+</deployment>

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_jndi-config.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_jndi-config.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactory_jndi-config.xml Fri Feb 18 12:56:32 2005
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+   <service name="PrinterFactory">
+      <resource name="home" type="org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterFactoryHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterFactoryService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterFactoryResource</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl</value>
+            </parameter>
+            </resourceParams>
+      </resource>
+   </service>
+
+</jndiConfig>
+

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl Fri Feb 18 12:56:32 2005
@@ -0,0 +1,456 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+	Copyright (C) OASIS Open (2004). All Rights Reserved.
+	
+	This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+	
+	The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+	
+	This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+	
+-->
+<!-- 
+	Changes:
+	2004-11-30 RAM added vanilla Web Services type, messages and operations
+	2004-12-04 TWB removed choice construct - not valid for WSDL2Java
+	2004-12-04 TWB Changed operation/message/type names to suit WSDL2Java
+	2004-12-04 TWB removed MIME attachment option - too complex.
+	2004-12-04 TWB removed multiple parts-per-message for WS-I compliance
+	2005-01-18 TWB corrected message structures to be single elements.
+	2005-01-18 TWB removed question marks from namespace.
+-->
+<wsdl:definitions targetNamespace="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl" name="WSRFIPP" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd" xmlns:wsrf-rpw="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.wsdl" xmlns:wsrf-rlw="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.wsdl" xmlns:wsrf-pr="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd" xmlns:wsrf-prw="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+	<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.wsdl" 
+	                  location="../spec/wsrf/WS-ResourceProperties-1_2-Draft_05.wsdl" />
+	<wsdl:import namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.wsdl" 
+	              location="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_04.wsdl" />
+	              
+	<wsdl:types>
+		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+			<xsd:import namespace="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd" 
+			schemaLocation="../wsdl/wsrf-Interop-2.0-draft-03.xsd" />
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="CreatePrinterRequest">
+		<wsdl:part name="CreatePrinterRequest" element="wsrf-pr:CreatePrinterRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="CreatePrinterResponse">
+		<wsdl:part name="CreatePrinterResponse" element="wsrf-pr:CreatePrinterResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="Print_JobRequest">
+		<wsdl:part name="Print_JobRequest" element="wsrf-pr:Print_JobRequest" />
+	</wsdl:message>
+	<wsdl:message name="Print_JobResponse">
+		<wsdl:part name="Print_JobResponse" element="wsrf-pr:CreationResponse" />
+	</wsdl:message>
+	<message name="client_error_not_possibleFault">
+		<wsdl:part name="client_error_not_possibleFault" element="wsrf-pr:client_error_not_possibleFault" />
+	</message>
+	<wsdl:message name="Create_JobRequest">
+		<wsdl:part name="Create_JobRequest" element="wsrf-pr:Create_JobRequest" />
+	</wsdl:message>
+	<wsdl:message name="Create_JobResponse">
+		<wsdl:part name="Create_JobResponse" element="wsrf-pr:CreationResponse" />
+	</wsdl:message>
+	<wsdl:message name="Send_DocumentRequest">
+		<wsdl:part name="Send_DocumentRequest" element="wsrf-pr:Send_DocumentRequest" />
+	</wsdl:message>
+	<wsdl:message name="Send_DocumentResponse">
+		<wsdl:part name="Send_DocumentResponse" element="wsrf-pr:CreationResponse" />
+	</wsdl:message>
+
+	<wsdl:portType name="Printer" wsrf-rp:ResourceProperties="wsrf-pr:printer_properties">
+		<wsdl:operation name="GetResourcePropertyDocument">
+			<wsdl:input name="GetResourcePropertyDocumentRequest" message="wsrf-rpw:GetResourcePropertyDocumentRequest" />
+			<wsdl:output name="GetResourcePropertyDocumentResponse" message="wsrf-rpw:GetResourcePropertyDocumentResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+		</wsdl:operation>
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrf-rpw:GetResourcePropertyRequest" />
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrf-rpw:GetResourcePropertyResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+		</wsdl:operation>
+		<wsdl:operation name="GetMultipleResourceProperties">
+			<wsdl:input name="GetMultipleResourcePropertiesRequest" message="wsrf-rpw:GetMultipleResourcePropertiesRequest" />
+			<wsdl:output name="GetMultipleResourcePropertiesResponse" message="wsrf-rpw:GetMultipleResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+		</wsdl:operation>
+		<wsdl:operation name="SetResourceProperties">
+			<wsdl:input name="SetResourcePropertiesRequest" message="wsrf-rpw:SetResourcePropertiesRequest" />
+			<wsdl:output name="SetResourcePropertiesResponse" message="wsrf-rpw:SetResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidSetResourcePropertiesRequestContentFault" message="wsrf-rpw:InvalidSetResourcePropertiesRequestContentFault" />
+			<wsdl:fault name="UnableToModifyResourcePropertyFault" message="wsrf-rpw:UnableToModifyResourcePropertyFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+			<wsdl:fault name="SetResourcePropertyRequestFailedFault" message="wsrf-rpw:SetResourcePropertyRequestFailedFault" />
+		</wsdl:operation>
+		<wsdl:operation name="InsertResourceProperties">
+			<wsdl:input name="InsertResourcePropertiesRequest" message="wsrf-rpw:InsertResourcePropertiesRequest" />
+			<wsdl:output name="InsertResourcePropertiesResponse" message="wsrf-rpw:InsertResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidInsertResourcePropertiesRequestContentFault" message="wsrf-rpw:InvalidInsertResourcePropertiesRequestContentFault" />
+			<wsdl:fault name="UnableToModifyResourcePropertyFault" message="wsrf-rpw:UnableToModifyResourcePropertyFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+			<wsdl:fault name="InsertResourcePropertyRequestFailedFault" message="wsrf-rpw:InsertResourcePropertyRequestFailedFault" />
+		</wsdl:operation>
+		<wsdl:operation name="UpdateResourceProperties">
+			<wsdl:input name="UpdateResourcePropertiesRequest" message="wsrf-rpw:UpdateResourcePropertiesRequest" />
+			<wsdl:output name="UpdateResourcePropertiesResponse" message="wsrf-rpw:UpdateResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidUpdateResourcePropertiesRequestContentFault" message="wsrf-rpw:InvalidUpdateResourcePropertiesRequestContentFault" />
+			<wsdl:fault name="UnableToModifyResourcePropertyFault" message="wsrf-rpw:UnableToModifyResourcePropertyFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+			<wsdl:fault name="UpdateResourcePropertyRequestFailedFault" message="wsrf-rpw:UpdateResourcePropertyRequestFailedFault" />
+		</wsdl:operation>
+		<wsdl:operation name="DeleteResourceProperties">
+			<wsdl:input name="DeleteResourcePropertiesRequest" message="wsrf-rpw:DeleteResourcePropertiesRequest" />
+			<wsdl:output name="DeleteResourcePropertiesResponse" message="wsrf-rpw:DeleteResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="UnableToModifyResourcePropertyFault" message="wsrf-rpw:UnableToModifyResourcePropertyFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+			<wsdl:fault name="DeleteResourcePropertyRequestFailedFault" message="wsrf-rpw:DeleteResourcePropertyRequestFailedFault" />
+		</wsdl:operation>
+		<wsdl:operation name="QueryResourceProperties">
+			<wsdl:input name="QueryResourcePropertiesRequest" message="wsrf-rpw:QueryResourcePropertiesRequest" />
+			<wsdl:output name="QueryResourcePropertiesResponse" message="wsrf-rpw:QueryResourcePropertiesResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+			<wsdl:fault name="UnknownQueryExpressionDialectFault" message="wsrf-rpw:UnknownQueryExpressionDialectFault" />
+			<wsdl:fault name="InvalidQueryExpressionFault" message="wsrf-rpw:InvalidQueryExpressionFault" />
+			<wsdl:fault name="QueryEvaluationErrorFault" message="wsrf-rpw:QueryEvaluationErrorFault" />
+		</wsdl:operation>
+		<wsdl:operation name="Print_Job">
+			<wsdl:input name="Print_JobRequest" message="wsrf-prw:Print_JobRequest" />
+			<wsdl:output name="Print_JobResponse" message="wsrf-prw:Print_JobResponse" />
+			<wsdl:fault name="client_error_not_possibleFault" message="wsrf-prw:client_error_not_possibleFault" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rlw:ResourceUnknownFault" />
+		</wsdl:operation>
+		<wsdl:operation name="Create_Job">
+			<wsdl:input name="Create-JobRequest" message="wsrf-prw:Create_JobRequest" />
+			<wsdl:output message="wsrf-prw:Create_JobResponse" />
+			<wsdl:fault name="client_error_not_possibleFault" message="wsrf-prw:client_error_not_possibleFault" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rlw:ResourceUnknownFault" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="Job" wsrf-rp:ResourceProperties="wsrf-pr:job_properties">
+		<wsdl:operation name="Destroy">
+			<wsdl:input name="DestroyRequest" message="wsrf-rlw:DestroyRequest" />
+			<wsdl:output name="DestroyResponse" message="wsrf-rlw:DestroyResponse" />
+			<wsdl:fault name="ResourceNotDestroyedFault" message="wsrf-rlw:ResourceNotDestroyedFault" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rlw:ResourceUnknownFault" />
+		</wsdl:operation>
+		<wsdl:operation name="SetTerminationTime">
+			<wsdl:input name="SetTerminationTimeRequest" message="wsrf-rlw:SetTerminationTimeRequest" />
+			<wsdl:output name="SetTerminationTimeResponse" message="wsrf-rlw:SetTerminationTimeResponse" />
+			<wsdl:fault name="UnableToSetTerminationTimeFault" message="wsrf-rlw:UnableToSetTerminationTimeFault" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rlw:ResourceUnknownFault" />
+			<wsdl:fault name="TerminationTimeChangeRejectedFault" message="wsrf-rlw:TerminationTimeChangeRejectedFault" />
+		</wsdl:operation>
+		<wsdl:operation name="GetResourceProperty">
+			<wsdl:input name="GetResourcePropertyRequest" message="wsrf-rpw:GetResourcePropertyRequest" />
+			<wsdl:output name="GetResourcePropertyResponse" message="wsrf-rpw:GetResourcePropertyResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="InvalidResourcePropertyQNameFault" message="wsrf-rpw:InvalidResourcePropertyQNameFault" />
+		</wsdl:operation>
+		<wsdl:operation name="Send_Document">
+			<wsdl:input name="Send_DocumentRequest" message="wsrf-prw:Send_DocumentRequest" />
+			<wsdl:output name="Send_DocumentResponse" message="wsrf-prw:Send_DocumentResponse" />
+			<wsdl:fault name="ResourceUnknownFault" message="wsrf-rpw:ResourceUnknownFault" />
+			<wsdl:fault name="client_error_not_possibleFault" message="wsrf-prw:client_error_not_possibleFault" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:portType name="CreatePrinter">
+		<wsdl:operation name="CreatePrinter">
+			<wsdl:input name="CreatePrinterRequest" message="wsrf-prw:CreatePrinterRequest" />
+			<wsdl:output name="CreatePrinterResponse" message="wsrf-prw:CreatePrinterResponse" />
+		</wsdl:operation>
+	</wsdl:portType>
+	<binding name="Printer" type="wsrf-prw:Printer">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<operation name="GetResourcePropertyDocument">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/GetResourcePropertyDocument" />
+			<input name="GetResourcePropertyDocumentRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="GetResourcePropertyDocumentResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="GetResourceProperty">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/GetResourceProperty" />
+			<input name="GetResourcePropertyRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="GetResourcePropertyResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="GetMultipleResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/GetMultipleResourceProperties" />
+			<input name="GetMultipleResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="GetMultipleResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="SetResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/SetResourceProperties" />
+			<input name="SetResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="SetResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidSetResourcePropertiesRequestContentFault">
+				<soap:fault name="InvalidSetResourcePropertiesRequestContentFault" use="literal" />
+			</fault>
+			<fault name="UnableToModifyResourcePropertyFault">
+				<soap:fault name="UnableToModifyResourcePropertyFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+			<fault name="SetResourcePropertyRequestFailedFault">
+				<soap:fault name="SetResourcePropertyRequestFailedFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="InsertResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/InsertResourceProperties" />
+			<input name="InsertResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="InsertResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidInsertResourcePropertiesRequestContentFault">
+				<soap:fault name="InvalidInsertResourcePropertiesRequestContentFault" use="literal" />
+			</fault>
+			<fault name="UnableToModifyResourcePropertyFault">
+				<soap:fault name="UnableToModifyResourcePropertyFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+			<fault name="InsertResourcePropertyRequestFailedFault">
+				<soap:fault name="InsertResourcePropertyRequestFailedFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="UpdateResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/UpdateResourceProperties" />
+			<input name="UpdateResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="UpdateResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidUpdateResourcePropertiesRequestContentFault">
+				<soap:fault name="InvalidUpdateResourcePropertiesRequestContentFault" use="literal" />
+			</fault>
+			<fault name="UnableToModifyResourcePropertyFault">
+				<soap:fault name="UnableToModifyResourcePropertyFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+			<fault name="UpdateResourcePropertyRequestFailedFault">
+				<soap:fault name="UpdateResourcePropertyRequestFailedFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="DeleteResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/DeleteResourceProperties" />
+			<input name="DeleteResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="DeleteResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="UnableToModifyResourcePropertyFault">
+				<soap:fault name="UnableToModifyResourcePropertyFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+			<fault name="DeleteResourcePropertyRequestFailedFault">
+				<soap:fault name="DeleteResourcePropertyRequestFailedFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="QueryResourceProperties">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/QueryResourceProperties" />
+			<input name="QueryResourcePropertiesRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="QueryResourcePropertiesResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+			<fault name="UnknownQueryExpressionDialectFault">
+				<soap:fault name="UnknownQueryExpressionDialectFault" use="literal" />
+			</fault>
+			<fault name="InvalidQueryExpressionFault">
+				<soap:fault name="InvalidQueryExpressionFault" use="literal" />
+			</fault>
+			<fault name="QueryEvaluationErrorFault">
+				<soap:fault name="QueryEvaluationErrorFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="Print_Job">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/Print_Job" />
+			<input name="Print_JobRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="Print_JobResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="client_error_not_possibleFault">
+				<soap:fault name="client_error_not_possibleFault" use="literal" />
+			</fault>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="Create_Job">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/Create_Job" />
+			<input name="Create-JobRequest">
+				<soap:body use="literal" />
+			</input>
+			<output>
+				<soap:body use="literal" />
+			</output>
+			<fault name="client_error_not_possibleFault">
+				<soap:fault name="client_error_not_possibleFault" use="literal" />
+			</fault>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+		</operation>
+	</binding>
+	<binding name="Job" type="wsrf-prw:Job">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<operation name="Destroy">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/Destroy" />
+			<input name="DestroyRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="DestroyResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceNotDestroyedFault">
+				<soap:fault name="ResourceNotDestroyedFault" use="literal" />
+			</fault>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="SetTerminationTime">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/SetTerminationTime" />
+			<input name="SetTerminationTimeRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="SetTerminationTimeResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="UnableToSetTerminationTimeFault">
+				<soap:fault name="UnableToSetTerminationTimeFault" use="literal" />
+			</fault>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="TerminationTimeChangeRejectedFault">
+				<soap:fault name="TerminationTimeChangeRejectedFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="GetResourceProperty">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/GetResourceProperty" />
+			<input name="GetResourcePropertyRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="GetResourcePropertyResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="InvalidResourcePropertyQNameFault">
+				<soap:fault name="InvalidResourcePropertyQNameFault" use="literal" />
+			</fault>
+		</operation>
+		<operation name="Send_Document">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/Send_Document" />
+			<input name="Send_DocumentRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="Send_DocumentResponse">
+				<soap:body use="literal" />
+			</output>
+			<fault name="ResourceUnknownFault">
+				<soap:fault name="ResourceUnknownFault" use="literal" />
+			</fault>
+			<fault name="client_error_not_possibleFault">
+				<soap:fault name="client_error_not_possibleFault" use="literal" />
+			</fault>
+		</operation>
+	</binding>
+	<binding name="PrinterFactory" type="wsrf-prw:CreatePrinter">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<operation name="CreatePrinter">
+			<soap:operation soapAction="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl/CreatePrinter" />
+			<input name="CreatePrinterRequest">
+				<soap:body use="literal" />
+			</input>
+			<output name="CreatePrinterResponse">
+				<soap:body use="literal" />
+			</output>
+		</operation>
+	</binding>
+	<service name="PrinterService">
+		<port name="PrinterPort" binding="wsrf-prw:Printer">
+			<soap:address location="http://www.WSRF-Examples.org/IPPprinters" />
+		</port>
+		<port name="JobPort" binding="wsrf-prw:Job">
+			<soap:address location="http://www.WSRF-Examples.org/IPPprinters/Jobs" />
+		</port>
+	</service>
+	<service name="PrinterFactoryService">
+		<port name="PrinterFactory" binding="wsrf-prw:PrinterFactory">
+			<soap:address location="http://www.WSRF-Examples.org/PrinterFactory" />
+		</port>
+	</service>
+</wsdl:definitions>

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.properties
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.properties?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.properties (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.properties Fri Feb 18 12:56:32 2005
@@ -0,0 +1,12 @@
+
+endpoint.url=http://www.WSRF-Examples.org/IPPprinters/Jobs
+
+# Uncomment and modify the below lines if you would like to deploy to a
+# wsrf webapp located somewhere other than the default location of
+# ../webapps/wsrf (e.g. ${env.CATALINA_HOME}/webapps/wsrf)
+wsrf.webapp.dir=C:/apache-apollo-incubating-1.0-alpha-SNAPSHOT/webapps/wsrf
+
+# Uncomment and modify the below lines if you require a proxy to connect to external web sites
+#http.proxyHost=proxy.xyz.com
+#http.proxyPort=8088
+#http.nonProxyHosts=localhost 

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/build.xml Fri Feb 18 12:56:32 2005
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+
+<project name="PrinterPort_buildfile" default="usage" basedir=".">
+
+   <property environment="env" />   
+   <property file="build.properties" />
+   <property file="../build.properties" />
+
+   <!-- workaround for those IDEs that dont set ant.home as per the ant script -->
+   <property name="ant.home" value="env.ANT_HOME"/>
+   
+   <property name="classes.dir"  location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\PrinterPort\classes" />
+   <property name="jar.dir"      location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\.xmlbeans\lib" />
+   <property name="src.dir"      location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\PrinterPort\src\java" />
+   <property name="wsdl.file"    location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\PrinterPort\src\java/../wsdl/wsrf-Interop-2.0-draft-03.wsdl" />
+
+   <target name="init" unless="apollo.classpath">
+             
+     <fail message="Please set the location of the wsrf.webapp.dir in build.properties" unless="wsrf.webapp.dir" />
+     <echo>Using webapp dir: ${wsrf.webapp.dir}</echo>
+     <path id="apollo.classpath.id">
+       <pathelement location="${wsrf.webapp.dir}/WEB-INF/classes" />
+       <fileset dir="${wsrf.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+       <fileset dir="${jar.dir}" />
+       <pathelement location="${activation.jar}" />
+       <pathelement location="${mail.jar}" />
+     </path>
+     <property name="apollo.classpath" refid="apollo.classpath.id" />
+   
+   </target>   
+
+   <target name="compile"
+           depends="init"
+           description="compile all classes below classes directory">  
+      <mkdir dir="${classes.dir}" />
+      <javac srcdir="${src.dir}"
+             destdir="${classes.dir}"           
+             classpathref="apollo.classpath.id"
+             debug="on" 
+             excludes="xmlbeans/**"/>         
+      <copy todir="${classes.dir}">
+         <fileset dir="${src.dir}" excludes="**/*.java,**/package.html" />
+      </copy>
+   </target>
+           
+   <target name="deploy"
+           depends="init"
+           description="deploys the PrinterPort service to the wsrf webapp">
+          
+       <copy file="${wsdl.file}" todir="${wsrf.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />       
+       <echo>Deploying PrinterPort classes to ${wsrf.webapp.dir}/WEB-INF/classes/...</echo>
+       <copy todir="${wsrf.webapp.dir}/WEB-INF/classes">
+         <fileset dir="${classes.dir}" />        
+       </copy>
+
+       <copy file="${jar.dir}/wsrf-Interop-2.0-draft-03-xbeans.jar" todir="${wsrf.webapp.dir}/WEB-INF/lib" />
+       <!--  update server-config.wsdd using WsddUpdater -->
+       <taskdef name="wsddUpdater" classname="org.apache.ws.util.platform.axis.tool.WsddUpdater" classpathref="apollo.classpath.id" />
+       <property name="config.wsdd" location="${wsrf.webapp.dir}/WEB-INF/server-config.wsdd" />  <!-- normalize path -->       
+       <wsddUpdater configWsdd="${config.wsdd}">   
+          <wsddPaths dir="${src.dir}" includes="**/PrinterPort_deploy.wsdd" />          
+       </wsddUpdater>   
+       
+       <!-- update jndi-config.wsdd using JndiConfigUpdater -->
+       <taskdef name="jndiUpdater" classname="org.apache.ws.util.jndi.tools.JndiConfigUpdater" classpathref="apollo.classpath.id" />
+       <property name="jndi.config" location="${wsrf.webapp.dir}/WEB-INF/classes/jndi-config.xml" />  <!-- normalize path -->       
+       <jndiUpdater jndiConfig="${jndi.config}">   
+           <jndiConfigPaths dir="${src.dir}" includes="**/PrinterPort_jndi-config.xml" />          
+       </jndiUpdater>
+       
+   </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the PrinterPort service">      
+        
+     <ant antfile="soapclient.xml">
+       <property name="url" value="${endpoint.url}" />
+     </ant>
+   
+   </target>
+   
+   <target name="clean" description="delete the generated source and class files">
+       <delete dir="${classes.dir}" />
+   </target>
+   
+   <target name="usage">      
+      <java classname="org.apache.tools.ant.Main">
+         <arg value="-buildfile" />
+         <arg value="${ant.file}" />
+         <arg value="-projecthelp" />
+      </java>
+   </target>   
+
+</project>

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,82 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+/**
+ * An abstract PrinterPort WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified. 
+ */
+public abstract class AbstractPrinterPortResource  implements org.apache.ws.resource.PropertiesResource {
+    
+    /**
+     * The resource ID of the instance.
+     */
+    protected String m_id;
+
+        /**
+     * The set of properties associated with this resource.
+     */
+    protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+            
+    /**
+     * DOCUMENT_ME
+     *
+     * @param id DOCUMENT_ME
+     */
+    public void setID( Object id )
+    {
+        if ( m_id != null )
+        {
+            throw new IllegalStateException( "This resource's ID has already been set." );
+        }
+
+        try
+        {
+            m_id = (String) id;
+        }
+        catch ( ClassCastException cce )
+        {
+            throw new IllegalArgumentException( "Specified ID is not a String." );
+        }
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public Object getID()
+    {
+        return m_id;
+    }
+
+    public void destroy()
+    {
+        return;
+    }
+
+    public void init()
+    {
+                
+                org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument propsDoc = org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterPropertiesDocument.Factory.newInstance();
+        m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+		
+              
+    }
+
+    /**
+     * @see org.apache.ws.resource.PropertiesResource#setResourcePropertySet(org.apache.ws.resource.properties.ResourcePropertySet)
+     */
+    public void setResourcePropertySet( org.apache.ws.resource.properties.ResourcePropertySet propSet )
+    {
+        m_propSet = propSet;
+    }
+
+    /**
+     * @see org.apache.ws.resource.PropertiesResource#getResourcePropertySet()
+     */
+    public org.apache.ws.resource.properties.ResourcePropertySet getResourcePropertySet()
+    {
+        return m_propSet;
+    }      
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterPortService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,183 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.handler.SoapMethodNameMap;
+import org.apache.ws.resource.handler.WsrfService;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import javax.xml.namespace.QName;
+
+/**
+ * This class should be generated on every "generation" against the WSDL.
+ * This will ensure it is always up-to-date with the WSDL.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractPrinterPortService
+    implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.SetResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.UpdateResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.InsertResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyDocumentPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.DeleteResourcePropertiesPortType {
+
+   public static final String TARGET_NSURI = "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl";
+   public static final String TARGET_NSPREFIX = "wsrf-Interop-2.0-draft-03.wsdl";
+
+   /**
+    * DOCUMENT_ME
+    */
+   private ServiceSoapMethodNameMap m_methodNameMap;
+
+   /**
+    * DOCUMENT_ME
+    */
+   private boolean m_isInitialized;
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestQname DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public String getMethodName( QName requestQname )
+   {
+      if ( !m_isInitialized )
+      {
+         init(  );
+      }
+
+      return m_methodNameMap.getMethodName( requestQname );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public abstract ResourceContext getResourceContext(  );
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public final SoapMethodNameMap getMethodNameMap(  )
+   {
+      return m_methodNameMap;
+   }
+   
+      /**
+       * DOCUMENT_ME
+       */
+   public void init(  )
+   {
+      m_methodNameMap    = new ServiceSoapMethodNameMap( getResourceContext(  ) );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Create_JobRequest") , "Create_Job" );
+      m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd}Print_JobRequest") , "Print_Job" );
+      m_isInitialized      = true;
+   }
+   
+   
+      /**
+       * DOCUMENT_ME
+       *
+       * @return DOCUMENT_ME
+       */
+   protected final boolean isInitialized(  )
+   {
+         return m_isInitialized;
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetMultipleResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext(  ) ).getMultipleResourceProperties( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesResponseDocument setResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.SetResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.SetResourcePropertiesPortTypeImpl( getResourceContext(  ) ).setResourceProperties( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesResponseDocument updateResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.UpdateResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.UpdateResourcePropertiesPortTypeImpl( getResourceContext(  ) ).updateResourceProperties( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesResponseDocument insertResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.InsertResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.InsertResourcePropertiesPortTypeImpl( getResourceContext(  ) ).insertResourceProperties( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentResponseDocument getResourcePropertyDocument( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocumentDocument1.GetResourcePropertyDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyDocumentPortTypeImpl( getResourceContext(  ) ).getResourcePropertyDocument( requestDoc );
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.GetResourcePropertyDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext(  ) ).getResourceProperty( requestDoc );
+   }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesResponseDocument queryResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.QueryResourcePropertiesPortTypeImpl( getResourceContext(  ) ).queryResourceProperties( requestDoc );
+   }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesResponseDocument deleteResourceProperties( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.DeleteResourcePropertiesDocument requestDoc )
+   {
+      return new org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.DeleteResourcePropertiesPortTypeImpl( getResourceContext(  ) ).deleteResourceProperties( requestDoc );
+   }
+
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortCustomOperationsPortType.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortCustomOperationsPortType.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortCustomOperationsPortType.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,16 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+/**
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface PrinterPortCustomOperationsPortType
+{
+   
+      public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Create_Job( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreateJobRequestDocument requestDoc ) ;       
+      public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Print_Job( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrintJobRequestDocument requestDoc ) ;       
+   
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortHome.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortHome.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortHome.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,87 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import org.apache.ws.resource.JndiConstants;
+import org.apache.ws.resource.Resource;
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.ResourceContextException;
+import org.apache.ws.resource.ResourceException;
+import org.apache.ws.resource.ResourceKey;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.resource.impl.SimpleTypeResourceKey;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlCursor;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.ReferencePropertiesType;
+
+import javax.xml.namespace.QName;
+import java.io.Serializable;
+import java.net.URL;
+
+/**
+ * Home for PrinterPort WS-Resources.
+ */
+public class PrinterPortHome
+        extends AbstractResourceHome
+        implements Serializable
+{
+    private static final String SERVICE_NAME = "PrinterPort";
+    public static final String HOME_LOCATION = JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+
+    /**
+     * @param resourceContext DOCUMENT_ME
+     * @return DOCUMENT_ME
+     * @throws ResourceException        DOCUMENT_ME
+     * @throws ResourceContextException DOCUMENT_ME
+     * @throws ResourceUnknownException DOCUMENT_ME
+     */
+    public Resource getInstance(ResourceContext resourceContext)
+            throws ResourceException,
+                   ResourceContextException,
+                   ResourceUnknownException
+    {
+        ResourceKey key = resourceContext.getResourceKey();
+        Resource resource = null;
+        try
+        {
+            resource = find(key);
+        }
+        catch (ResourceException re)
+        {
+            /**
+             * Determine if the passed-in key is, in fact, something we expect.
+             */
+            try
+            {
+                ResourceKey newkey = new SimpleTypeResourceKey(QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID"), "Printer1");
+                URL serviceURL = resourceContext.getServiceURL();
+                resource = new PrinterPortResource("Printer1", getEprForResource(newkey, serviceURL));
+                resource.init();
+                add(newkey, resource);
+            }
+            catch (Exception e)
+            {
+                throw new ResourceException(e);
+            }
+        }
+        return resource;
+    }
+
+    public EndpointReferenceType getEprForResource(ResourceKey key, URL serviceUrl)
+    {
+        EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance();
+        EndpointReferenceType epr = eprDoc.addNewEndpointReference();
+        AttributedURI address = epr.addNewAddress();
+        address.setStringValue( serviceUrl.toString() );
+        // TODO: set portType and serviceName! (read from config file)
+        ReferencePropertiesType refProps = epr.addNewReferenceProperties();
+
+       XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, key.getName() );
+       XmlBeanUtils.setValue(xmlObject,key.getValue().toString() );
+
+        return epr;
+    }
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortPropertyQNames.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortPropertyQNames.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortPropertyQNames.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,35 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import javax.xml.namespace.QName;
+
+/**
+ * QNames of the resource properties defined by PrinterPort WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface PrinterPortPropertyQNames
+{
+    
+            QName PRINTER_STATE =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_state", "wsrf-pr");        
+            QName PRINTER_NAME =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_name", "wsrf-pr");        
+            QName JOB_PROPERTIES =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_properties", "wsrf-pr");        
+            QName DOCUMENT_FORMAT_SUPPORTED =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "document_format_supported", "wsrf-pr");        
+            QName JOB_HOLD_UNTIL_SUPPORTED =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_hold_until_supported", "wsrf-pr");        
+            QName QUEUED_JOB_COUNT =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "queued_job_count", "wsrf-pr");        
+            QName JOB_HOLD_UNTIL_DEFAULT =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_hold_until_default", "wsrf-pr");        
+            QName OPERATIONS_SUPPORTED =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "operations_supported", "wsrf-pr");        
+            QName PRINTER_IS_ACCEPTING_JOBS =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_is_accepting_jobs", "wsrf-pr");        
+            QName PRINTER_REFERENCE =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "printer_reference", "wsrf-pr");        
+    
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,125 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.query.QueryConstants;
+import org.apache.ws.resource.properties.v1_2_draft05.porttype.QueryResourcePropertiesPortType;
+import org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceProperties12Draft05.QueryExpressionDialectDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.DocumentFormatSupportedDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypeType;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.Operations;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.OperationsSupportedDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterIsAcceptingJobsDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterNameDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrinterReferenceDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.QueuedJobCountDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+
+import java.math.BigInteger;
+import java.util.List;
+
+/**
+ * A PrinterPort WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class PrinterPortResource extends AbstractPrinterPortResource
+
+{
+    private String m_name;
+    private EndpointReferenceType m_epr;
+
+    public PrinterPortResource(String name, EndpointReferenceType eprForResource)
+    {
+        m_name = name;
+        m_epr = eprForResource;
+    }
+
+    /**
+     * Initializes this resource's state (properties, etc.).
+     */
+    public void init()
+    {
+        super.init();
+        ResourceProperty resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_REFERENCE);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_NAME);
+        PrinterReferenceDocument refdoc = PrinterReferenceDocument.Factory.newInstance();
+        refdoc.setPrinterReference(getEpr());
+        resourceProperty.add(refdoc);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_STATE);
+        PrinterNameDocument printName = PrinterNameDocument.Factory.newInstance();
+        printName.setPrinterName(m_name);
+        resourceProperty.add(printName);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.PRINTER_IS_ACCEPTING_JOBS);
+        PrinterIsAcceptingJobsDocument isAccepting = PrinterIsAcceptingJobsDocument.Factory.newInstance();
+        isAccepting.setPrinterIsAcceptingJobs(false);
+        resourceProperty.add(isAccepting);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.QUEUED_JOB_COUNT);
+        QueuedJobCountDocument queuedJobCountDocument = QueuedJobCountDocument.Factory.newInstance();
+        queuedJobCountDocument.setQueuedJobCount(BigInteger.valueOf(0));
+        resourceProperty.add(queuedJobCountDocument);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.OPERATIONS_SUPPORTED);
+        OperationsSupportedDocument operationsSupportedDocument = OperationsSupportedDocument.Factory.newInstance();
+        List operationsSupported = operationsSupportedDocument.getOperationsSupported();
+        operationsSupported.add(Operations.PRINT_JOB); //refer to doc...
+        operationsSupported.add(Operations.CREATE_JOB); //refer to doc...
+        operationsSupported.add(Operations.SEND_DOCUMENT); //refer to doc...
+        resourceProperty.add(operationsSupportedDocument);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
+        DocumentFormatSupportedDocument documentFormatSupportedDocument = DocumentFormatSupportedDocument.Factory.newInstance();
+        MimeMediaTypes mimeMediaTypes = documentFormatSupportedDocument.addNewDocumentFormatSupported();
+        mimeMediaTypes.addMimeMediaType(MimeMediaTypeType.TEXT_PLAIN);
+        resourceProperty.add(documentFormatSupportedDocument);
+
+        //not shown in example...maybe add later
+        /*resourceProperty = m_propSet.get(PrinterPortPropertyQNames.JOB_HOLD_UNTIL_DEFAULT);
+        JobHoldUntilDefaultDocument jobHoldUntilDefaultDocument = JobHoldUntilDefaultDocument.Factory.newInstance();
+        jobHoldUntilDefaultDocument.setJobHoldUntilDefault(HoldPeriod);
+        resourceProperty.add(jobHoldUntilDefaultDocument);
+
+        resourceProperty = m_propSet.get(PrinterPortPropertyQNames.JOB_HOLD_UNTIL_SUPPORTED);
+        JobHoldUntilSupportedDocument jobHoldUntilSupportedDocument = JobHoldUntilSupportedDocument.Factory.newInstance();
+        jobHoldUntilSupportedDocument.setJobHoldUntilSupported();
+        JobHoldUntilSupportedDocument jobHoldUntilSupportedDocument2 = JobHoldUntilSupportedDocument.Factory.newInstance();
+        jobHoldUntilSupportedDocument2.setJobHoldUntilSupported();
+        resourceProperty.add(jobHoldUntilSupportedDocument);
+        resourceProperty.add(jobHoldUntilSupportedDocument2);*/
+
+        resourceProperty = m_propSet.get(QueryResourcePropertiesPortType.PROP_QNAME_QUERY_EXPRESSION_DIALECT);
+        QueryExpressionDialectDocument queryExpressionDialectDocument = QueryExpressionDialectDocument.Factory.newInstance();
+        queryExpressionDialectDocument.setQueryExpressionDialect(QueryConstants.DIALECT_URI__XPATH1_0.toString());  //todo this should be done for them
+        resourceProperty.add(queryExpressionDialectDocument);
+
+        //todo probably need a backend representatino of job or maintain them or some htins...
+
+        //not shwn in initial state in doc
+        /*resourceProperty = m_propSet.get(PrinterPortPropertyQNames.JOB_PROPERTIES);
+        JobPropertiesDocument jobPropertiesDocument = JobPropertiesDocument.Factory.newInstance();
+        JobPropertiesDocument.JobProperties jobProperties = jobPropertiesDocument.addNewJobProperties();
+        jobProperties.setCurrentTime();
+        jobProperties.setJobId();
+        jobProperties.setJobName();
+        jobProperties.setJobOriginatingUserName();
+        jobProperties.setJobPrinterReference();
+        jobProperties.setJobReference();
+        jobProperties.setJobState();
+        jobProperties.setNilTerminationTime();
+        jobProperties.setTerminationTime();
+
+        resourceProperty.add(jobPropertiesDocument);*/
+    }
+
+    //todo not sure how this will work yet
+    public EndpointReferenceType getEpr( )
+    {
+       return  m_epr;
+    }
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,169 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.ResourceContextException;
+import org.apache.ws.resource.ResourceException;
+import org.apache.ws.resource.properties.impl.XmlBeansResourceProperty;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreateJobRequestDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.DocumentContentType;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.DocumentFormatSupportedDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypeType;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypes;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrintJobRequestDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import java.util.Calendar;
+
+/**
+ * This class should be generated ONCE (and not overwritten) to maintain user-added code.
+ * If there is a change to the WSDL, then the generated implemented interfaces
+ * (representing the "base" portTypes) will change, thus showing a compile error to the
+ * user.
+ * <p/>
+ * NOTE: This class is generated. However, it will not be overwritten by subsequent
+ * calls to the code generator.
+ */
+public class PrinterPortService
+        extends AbstractPrinterPortService
+        implements PrinterPortCustomOperationsPortType
+{
+
+    private ResourceContext m_resourceContext;
+
+    /**
+     * Creates a new {@link PrinterPortService } object.
+     *
+     * @param resourceContext DOCUMENT_ME
+     */
+    public PrinterPortService(ResourceContext resourceContext)
+    {
+        m_resourceContext = resourceContext;
+        init();
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public ResourceContext getResourceContext()
+    {
+        return m_resourceContext;
+    }
+
+
+    public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Create_Job(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreateJobRequestDocument requestDoc)
+    {
+        CreationResponseDocument responseDocument = createResponseDocument();
+        CreationResponseDocument.CreationResponse creationResponse = responseDocument.getCreationResponse();
+        JobPortResource instance = null;
+        try
+        {
+            Context initialContext = new InitialContext();
+            JobPortHome home = (JobPortHome) initialContext.lookup(JobPortHome.HOME_LOCATION);
+            CreateJobRequestDocument.CreateJobRequest createJobRequest = requestDoc.getCreateJobRequest();
+            String jobName = createJobRequest.getJobName();
+            instance = (JobPortResource) home.createJob(getResourceContext(), jobName,getResourceEpr());
+            Calendar currentTime = instance.getCurrentTime();
+            Calendar termTime = Calendar.getInstance();
+            termTime.set(currentTime.get(Calendar.YEAR),currentTime.get(Calendar.MONTH), currentTime.get(Calendar.DATE), currentTime.get(Calendar.HOUR), currentTime.get(Calendar.MINUTE) + 4 );
+            instance.setTerminationTime(termTime);
+            addJobInfoToResponse(instance, creationResponse);
+        }
+        catch (Exception e)
+        {
+            creationResponse.setSuccessStatusCode("server-error-internal-error");
+        }
+        return responseDocument;
+    }
+
+    private EndpointReferenceType getResourceEpr()
+            throws ResourceContextException, ResourceException
+    {
+        PrinterPortResource resource = (PrinterPortResource) getResourceContext().getResource();
+        return resource.getEpr();
+    }
+
+
+    public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Print_Job(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.PrintJobRequestDocument requestDoc)
+    {
+        CreationResponseDocument responseDocument = createResponseDocument();
+        CreationResponseDocument.CreationResponse creationResponse = responseDocument.getCreationResponse();
+        JobPortResource instance = null;
+        try
+        {
+            Context initialContext = new InitialContext();
+            JobPortHome home = (JobPortHome) initialContext.lookup(JobPortHome.HOME_LOCATION);
+            PrintJobRequestDocument.PrintJobRequest printJobRequest = requestDoc.getPrintJobRequest();
+            String jobName = printJobRequest.getJobName();
+
+
+            //check if valid format type
+            MimeMediaTypeType.Enum documentFormat = printJobRequest.getDocumentFormat();
+
+            if (isDocTypeSupported(documentFormat))
+            {
+                DocumentContentType documentContent = printJobRequest.getDocumentContent();
+                byte[] base64Data = documentContent.getBase64Data();
+
+                instance = (JobPortResource) home.createJob(getResourceContext(), jobName, "", documentFormat, base64Data, getResourceEpr());
+                addJobInfoToResponse(instance, creationResponse);
+            }
+            else
+            {
+                //throw some exception
+            }
+        }
+        catch (Exception e)
+        {
+            creationResponse.setSuccessStatusCode("server-error-internal-error");
+        }
+
+        return responseDocument;
+    }
+
+    private void addJobInfoToResponse(JobPortResource instance, CreationResponseDocument.CreationResponse creationResponse)
+    {
+        org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = instance.getResourcePropertySet();
+        creationResponse.setJobReference((EndpointReferenceType) ((XmlBeansResourceProperty) resourcePropertySet.get(JobPortPropertyQNames.JOB_REFERENCE)).toXmlObjects()[0]);
+        JobStateDocument jobState = (JobStateDocument) ((XmlBeansResourceProperty) resourcePropertySet.get(JobPortPropertyQNames.JOB_STATE)).toXmlObjects()[0];
+        creationResponse.setJobState(jobState.getJobState());
+        creationResponse.setSuccessStatusCode("successful-ok");
+    }
+
+    private boolean isDocTypeSupported(MimeMediaTypeType.Enum documentFormat)
+            throws ResourceContextException, ResourceException
+    {
+        boolean docTypeSupported = false;
+        PrinterPortResource resource = (PrinterPortResource) getResourceContext().getResource();
+        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) resource.getResourcePropertySet().get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
+        DocumentFormatSupportedDocument docsSupported = (DocumentFormatSupportedDocument) resourceProperty.get(0);
+        MimeMediaTypes documentFormatSupported = docsSupported.getDocumentFormatSupported();
+        MimeMediaTypeType.Enum[] mimeMediaTypeArray = documentFormatSupported.getMimeMediaTypeArray();
+
+        //todo chekc that the equals check really works
+        for (int i = 0; i < mimeMediaTypeArray.length; i++)
+        {
+            MimeMediaTypeType.Enum enum = mimeMediaTypeArray[i];
+            if (enum.equals(documentFormat))
+            {
+                docTypeSupported = true;
+            }
+        }
+        return docTypeSupported;
+    }
+
+
+    private CreationResponseDocument createResponseDocument()
+    {
+        CreationResponseDocument creationResponseDocument = CreationResponseDocument.Factory.newInstance();
+        creationResponseDocument.addNewCreationResponse();
+        return creationResponseDocument;
+    }
+
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd Fri Feb 18 12:56:32 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" 
+            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+   <service name="PrinterPort" provider="java:WSRF" style="document" use="literal">
+      
+      <wsdlFile>/wsdl/wsrf-Interop-2.0-draft-03.wsdl</wsdlFile>      
+      
+      <requestFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </requestFlow>      
+      
+      <responseFlow>
+         <handler type="java:org.apache.axis.handlers.JAXRPCHandler">
+            <parameter name="className" value="org.apache.axis.message.addressing.handler.AxisServerSideAddressingHandler" />
+            <parameter name="referencePropertyNames" value="*" />
+         </handler>
+      </responseFlow>            
+      
+   </service>
+
+</deployment>

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml Fri Feb 18 12:56:32 2005
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+   <service name="PrinterPort">
+      <resource name="home" type="org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterPortHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterPortService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.PrinterPortResource</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl</value>
+            </parameter>
+            
+                        <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID</value>
+            </parameter>
+                     </resourceParams>
+      </resource>
+   </service>
+
+</jndiConfig>
+



---------------------------------------------------------------------
To unsubscribe, e-mail: apollo-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: apollo-dev-help@ws.apache.org