Added: 
incubator/apollo/trunk/src/site/content/example/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/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java?view=auto&rev=155333
==============================================================================
--- 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java
 (added)
+++ 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPortService.java
 Fri Feb 25 07:16:52 2005
@@ -0,0 +1,236 @@
+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.ResourceProperty;
+import org.apache.ws.resource.properties.impl.XmlBeansResourceProperty;
+import org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet;
+import org.apache.xmlbeans.XmlBoolean;
+import org.apache.xmlbeans.XmlInteger;
+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.JobPropertiesDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateType;
+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.math.BigInteger;
+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 [EMAIL PROTECTED] 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 jobResource = null;
+
+        if(isAcceptingJobs())
+        {
+        try
+        {
+            Context initialContext = new InitialContext();
+            JobPortHome home = (JobPortHome) 
initialContext.lookup(JobPortHome.HOME_LOCATION);
+            CreateJobRequestDocument.CreateJobRequest createJobRequest = 
requestDoc.getCreateJobRequest();
+            String jobName = createJobRequest.getJobName();
+            jobResource = (JobPortResource) 
home.createJob(getResourceContext(), jobName,getResourceEpr());
+            Calendar currentTime = jobResource.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 );
+            jobResource.setTerminationTime(termTime);
+            addJobPropsToPrinterProps(jobResource);
+            incrementQueueCount();
+            addJobInfoToResponse(jobResource, creationResponse);
+
+        }
+        catch (Exception e)
+        {
+            
creationResponse.setSuccessStatusCode("server-error-internal-error");
+        }
+
+        }
+        else
+        {
+           //throw custom client fault
+        }
+         return responseDocument;
+    }
+
+    private void incrementQueueCount() throws ResourceException, 
ResourceContextException
+    {
+       PrinterPortResource printerResource = (PrinterPortResource) 
getResourceContext().getResource();
+        ResourceProperty printerJobProperties = 
printerResource.getResourcePropertySet().get(PrinterPortPropertyQNames.QUEUED_JOB_COUNT);
+        XmlInteger queued =  (XmlInteger) printerJobProperties.get(0);
+        BigInteger bigIntegerValue = queued.getBigIntegerValue();
+        int count = bigIntegerValue.intValue();
+        count++;
+        queued.setBigIntegerValue(BigInteger.valueOf(count));
+    }
+
+    private void addJobPropsToPrinterProps(JobPortResource instance)
+            throws ResourceContextException, ResourceException
+    {
+        JobPropertiesDocument jobPropDoc = getJobPropDoc(instance);
+        PrinterPortResource printerResource = (PrinterPortResource) 
getResourceContext().getResource();
+        ResourceProperty printerJobProperties = 
printerResource.getResourcePropertySet().get(PrinterPortPropertyQNames.JOB_PROPERTIES);
+        printerJobProperties.add(jobPropDoc);
+    }
+
+    private JobPropertiesDocument getJobPropDoc(JobPortResource instance)
+    {
+        XmlBeansResourcePropertySet propSet = (XmlBeansResourcePropertySet) 
instance.getResourcePropertySet();
+        return (JobPropertiesDocument) propSet.toXmlObject();
+    }
+
+    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 jobResource = null;
+        if(isAcceptingJobs())
+        {
+        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();
+                jobResource = (JobPortResource) 
home.createJob(getResourceContext(), jobName, "", documentFormat, base64Data, 
getResourceEpr());
+                addJobPropsToPrinterProps(jobResource);
+                incrementQueueCount();
+                addJobInfoToResponse(jobResource, creationResponse);
+            }
+            else
+            {
+                //throw some exception custom client
+            }
+        }
+        catch (Exception e)
+        {
+            
creationResponse.setSuccessStatusCode("server-error-internal-error");
+        }
+        }
+        else
+        {
+            //throw custom fault
+        }
+        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]);
+        JobStateType jobState = (JobStateType) ((XmlBeansResourceProperty) 
resourcePropertySet.get(JobPortPropertyQNames.JOB_STATE)).toXmlObjects()[0];
+        int enumValue = jobState.enumValue().intValue();
+        creationResponse.setJobState(jobState.Enum.forInt(enumValue));
+        creationResponse.setSuccessStatusCode("successful-ok");
+    }
+
+    private boolean isAcceptingJobs()
+    {
+        PrinterPortResource resource = null;
+        try
+        {
+            resource = (PrinterPortResource) 
getResourceContext().getResource();
+        }
+        catch (Exception e)
+        {
+            //todo throw custom exception
+        }
+
+        XmlBeansResourceProperty resourceProperty = (XmlBeansResourceProperty) 
resource.getResourcePropertySet().get(PrinterPortPropertyQNames.PRINTER_IS_ACCEPTING_JOBS);
+        XmlBoolean doc = (XmlBoolean) resourceProperty.get(0);
+        return doc.getBooleanValue();
+    }
+
+    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);
+        MimeMediaTypes documentFormatSupported = (MimeMediaTypes) 
resourceProperty.get(0);
+        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/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/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd?view=auto&rev=155333
==============================================================================
--- 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd
 (added)
+++ 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_deploy.wsdd
 Fri Feb 25 07:16:52 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/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/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml?view=auto&rev=155333
==============================================================================
--- 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml
 (added)
+++ 
incubator/apollo/trunk/src/site/content/example/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterPort_jndi-config.xml
 Fri Feb 25 07:16:52 2005
@@ -0,0 +1,27 @@
+<?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>
+            
+              
+                     </resourceParams>
+      </resource>
+   </service>
+
+</jndiConfig>
+

Added: 
incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl
URL: 
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl?view=auto&rev=155333
==============================================================================
--- 
incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl
 (added)
+++ 
incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl
 Fri Feb 25 07:16:52 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/wsdl/wsrf-Interop-2.0-draft-03.xsd
URL: 
http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.xsd?view=auto&rev=155333
==============================================================================
--- 
incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.xsd
 (added)
+++ 
incubator/apollo/trunk/src/site/content/example/src/wsdl/wsrf-Interop-2.0-draft-03.xsd
 Fri Feb 25 07:16:52 2005
@@ -0,0 +1,265 @@
+<?xml version="1.0"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
+xmlns:wsrf-pr="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd";
 
+targetNamespace="http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd";
 
+xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
+xmlns:wsrf-rl="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.xsd";
 
+xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-BaseFaults-1.2-draft-03.xsd";
 
+xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd";
+attributeFormDefault="unqualified" elementFormDefault="qualified">
+       <!--
+               Changes:
+               2004-11-17 RAM created
+       -->
+       <xsd:import 
namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
+                  schemaLocation="../spec/wsa/WS-Addressing-2004_08_10.xsd" />
+       <xsd:import 
namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceLifetime-1.2-draft-04.xsd";
 
+                  
schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_04.xsd" />
+       <xsd:import 
namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-BaseFaults-1.2-draft-03.xsd";
 
+                  schemaLocation="../spec/wsrf/WS-BaseFaults-1_2-Draft_03.xsd" 
/>
+       <xsd:import 
namespace="http://docs.oasis-open.org/wsrf/2004/11/wsrf-WS-ResourceProperties-1.2-draft-05.xsd";
 
+          schemaLocation="../spec/wsrf/WS-ResourceProperties-1_2-Draft_05.xsd" 
/>
+
+       <!-- Job Schema
+               Changes:
+               2004-11-17 RAM created
+               2004-11-19 TWB Modified. Added named enumerations, converted to 
WS-A EPR for references, added wsrf-rl properties.
+               2004-11-30 RAM added job-attributes
+               2004-12-02 TWB Added targetnamespace
+               2004-12-04 TWB Eliminate incompatibilities with Java names '-'  
-> '_'
+               2005-01-18 TWB Correct message structure vs documentation 
discrepancies.
+               2005-01-18 TWB removed question marks from namespace. 
+       -->
+       <xsd:element name="job_properties">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:job_reference" />
+                               <xsd:element 
ref="wsrf-pr:job_printer_reference" />
+                               <xsd:element ref="wsrf-pr:job_name" />
+                               <xsd:element ref="wsrf-pr:job_id" />
+                               <xsd:element 
ref="wsrf-pr:job_originating_user_name" />
+                               <xsd:element ref="wsrf-pr:job_state" />
+                               <xsd:element ref="wsrf-rl:CurrentTime" />
+                               <xsd:element ref="wsrf-rl:TerminationTime" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+       <xsd:element name="job_attributes">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:job_reference" 
minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:job_printer_reference" minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:job_name" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:job_id" minOccurs="0" 
/>
+                               <xsd:element 
ref="wsrf-pr:job_originating_user_name" minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:job_state" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-rl:CurrentTime" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-rl:TerminationTime" 
minOccurs="0" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+       <xsd:element name="job_id" type="xsd:integer" />
+       <xsd:element name="job_reference" type="wsa:EndpointReferenceType" />
+       <xsd:element name="job_printer_reference" 
type="wsa:EndpointReferenceType" />
+       <xsd:element name="job_name" type="wsrf-pr:jobNameType" />
+       <xsd:element name="job_originating_user_name" 
type="wsrf-pr:userNameType" />
+       <xsd:element name="job_state" type="wsrf-pr:jobStateType" />
+       <xsd:simpleType name="jobNameType">
+               <xsd:restriction base="xsd:string">
+                       <xsd:minLength value="1" />
+                       <xsd:maxLength value="1023" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:simpleType name="userNameType">
+               <xsd:restriction base="xsd:string">
+                       <xsd:minLength value="1" />
+                       <xsd:maxLength value="1023" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:simpleType name="jobStateType">
+               <xsd:restriction base="xsd:string">
+                       <xsd:enumeration value="pending" />
+                       <xsd:enumeration value="pending-held" />
+                       <xsd:enumeration value="processing" />
+                       <xsd:enumeration value="processing-stopped" />
+                       <xsd:enumeration value="canceled" />
+                       <xsd:enumeration value="aborted" />
+                       <xsd:enumeration value="completed" />
+               </xsd:restriction>
+       </xsd:simpleType>
+
+       <!-- Printer Schema
+               Changes:
+               2004-11-17 RAM created
+               2004-11-19 TWB Modified. Added named enumerations, converted to 
WS-A EPR for references.
+               2004-11-30 RAM added printer-attributes
+               2004-12-02 TWB Added namespaces
+       -->
+
+       <xsd:element name="printer_properties">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:printer_reference" />
+                               <xsd:element ref="wsrf-pr:printer_name" />
+                               <xsd:element ref="wsrf-pr:printer_state" />
+                               <xsd:element 
ref="wsrf-pr:printer_is_accepting_jobs" />
+                               <xsd:element ref="wsrf-pr:queued_job_count" />
+                               <xsd:element ref="wsrf-pr:operations_supported" 
/>
+                               <xsd:element 
ref="wsrf-pr:document_format_supported" />
+                               <xsd:element 
ref="wsrf-pr:job_hold_until_default" minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:job_hold_until_supported" minOccurs="0" maxOccurs="unbounded" />
+                               <xsd:element 
ref="wsrf-rp:QueryExpressionDialect" maxOccurs="unbounded" />
+                               <xsd:element ref="wsrf-pr:job_properties" 
minOccurs="0" maxOccurs="unbounded" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+       <xsd:element name="printer_attributes">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:printer_reference" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:printer_name" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:printer_state" 
minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:printer_is_accepting_jobs" minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:queued_job_count" 
minOccurs="0" />
+                               <xsd:element ref="wsrf-pr:operations_supported" 
minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:document_format_supported" minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:job_hold_until_default" minOccurs="0" />
+                               <xsd:element 
ref="wsrf-pr:job_hold_until_supported" minOccurs="0" maxOccurs="unbounded" />
+                               <xsd:element ref="wsrf-pr:job_properties" 
minOccurs="0" maxOccurs="unbounded" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+       <xsd:element name="printer_reference" type="wsa:EndpointReferenceType" 
/>
+       <xsd:element name="printer_name" type="wsrf-pr:name" />
+       <xsd:element name="printer_state" type="wsrf-pr:printerStateType" />
+       <xsd:element name="printer_is_accepting_jobs" type="xsd:boolean" />
+       <xsd:element name="queued_job_count" type="xsd:integer" />
+       <xsd:element name="operations_supported" type="wsrf-pr:operationsType" 
/>
+       <xsd:element name="document_format_supported" 
type="wsrf-pr:mimeMediaTypes" />
+       <xsd:simpleType name="name">
+               <xsd:restriction base="xsd:string">
+                       <xsd:minLength value="1" />
+                       <xsd:maxLength value="127" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:simpleType name="printerStateType">
+               <xsd:restriction base="xsd:string">
+                       <xsd:enumeration value="Idle" />
+                       <xsd:enumeration value="Processing" />
+                       <xsd:enumeration value="Stopped" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:simpleType name="operationsType">
+               <xsd:list itemType="wsrf-pr:operations" />
+       </xsd:simpleType>
+       <xsd:simpleType name="operations">
+               <xsd:restriction base="xsd:string">
+                       <xsd:enumeration value="Print_Job" />
+                       <xsd:enumeration value="Print_URI" />
+                       <xsd:enumeration value="Validate_Job" />
+                       <xsd:enumeration value="Create_Job" />
+                       <xsd:enumeration value="Send_Document" />
+                       <xsd:enumeration value="Send_URI" />
+                       <xsd:enumeration value="Cancel_Job" />
+                       <xsd:enumeration value="Get_Job_Attributes" />
+                       <xsd:enumeration value="Get_Jobs" />
+                       <xsd:enumeration value="Get_Printer_Attributes" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:simpleType name="mimeMediaTypeType">
+               <xsd:restriction base="xsd:string">
+                       <xsd:enumeration value="text/plain" />
+                       <xsd:enumeration value="application/postscript" />
+                       <xsd:enumeration value="application/vnd.hp-PCL" />
+                       <xsd:enumeration value="application/octet-stream" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       <xsd:element name="mimeMediaType" type="wsrf-pr:mimeMediaTypeType" />
+       <xsd:complexType name="mimeMediaTypes">
+               <xsd:sequence>
+                       <xsd:element ref="wsrf-pr:mimeMediaType" 
maxOccurs="unbounded" />
+               </xsd:sequence>
+       </xsd:complexType>
+       
+       <xsd:element name="job_hold_until_default" type="wsrf-pr:holdPeriod" />
+       <xsd:element name="job_hold_until_supported" type="wsrf-pr:holdPeriod" 
/>
+       <xsd:simpleType name="holdPeriod">
+               <xsd:restriction base="xsd:string">
+                       <xsd:pattern value="No-Hold" />
+                       <xsd:pattern value="Overnight" />
+                       <xsd:pattern value="[A-Z,a-z,-,0-9]{1,10}" />
+               </xsd:restriction>
+       </xsd:simpleType>
+       
+
+   <xsd:element name="Print_JobRequest">       
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:job_name" />
+                               <xsd:element name="document_format" 
type="wsrf-pr:mimeMediaTypeType" />
+                               <xsd:element name="document_content" 
type="wsrf-pr:DocumentContentType" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+
+       <xsd:complexType name="DocumentContentType">
+               <xsd:sequence>
+                       <xsd:element name="Base64Data" type="xsd:base64Binary" 
/>
+               </xsd:sequence>
+       </xsd:complexType>
+
+       <xsd:element name="CreationResponse">
+               <xsd:annotation>
+                       <xsd:documentation>"Used for responses to Print-Job, 
Create-Job"
+                        and "Send-Document"</xsd:documentation>
+               </xsd:annotation>
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:SuccessStatusCode" />
+                               <xsd:element ref="wsrf-pr:job_reference" />
+                               <xsd:element ref="wsrf-pr:job_state" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+
+       <xsd:element name="Create_JobRequest">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:job_name" />
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+       
+       <xsd:element name="Send_DocumentRequest">
+       <xsd:complexType>
+               <xsd:sequence>
+                       <xsd:element name="last_document" type="xsd:boolean" />
+                       <xsd:element name="document_format" type="xsd:string" />
+                       <xsd:element name="document_content" 
type="wsrf-pr:DocumentContentType" />
+               </xsd:sequence>
+       </xsd:complexType>
+       </xsd:element>
+       
+       <xsd:element name="client_error_not_possibleFault">
+               <xsd:complexType>
+               <xsd:complexContent>
+                       <xsd:extension base="wsrf-bf:BaseFaultType" />
+               </xsd:complexContent>
+       </xsd:complexType>
+       </xsd:element>
+       
+       <xsd:element name="SuccessStatusCode" type="xsd:string">
+               <xsd:annotation>
+                       <xsd:documentation>"Use 'successful-ok'. (See RFC 2639, 
section 2.3.1.1)"</xsd:documentation>
+               </xsd:annotation>
+       </xsd:element>
+       
+       <xsd:element name="CreatePrinterRequest"/>
+       <xsd:element name="CreatePrinterResponse">
+               <xsd:complexType>
+                       <xsd:sequence>
+                               <xsd:element ref="wsrf-pr:printer_reference"/>
+                       </xsd:sequence>
+               </xsd:complexType>
+       </xsd:element>
+</xsd:schema>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to