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 [11/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/JobPort/build.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/build.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/build.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/build.xml Fri Feb 18 12:56:32 2005
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+
+<project name="JobPort_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\JobPort\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\JobPort\src\java" />
+   <property name="wsdl.file"    location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\JobPort\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 JobPort service to the wsrf webapp">
+          
+       <copy file="${wsdl.file}" todir="${wsrf.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />       
+       <echo>Deploying JobPort 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="**/JobPort_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="**/JobPort_jndi-config.xml" />          
+       </jndiUpdater>
+       
+   </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the JobPort 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/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,125 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+/**
+ * An abstract JobPort WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified. 
+ */
+public abstract class AbstractJobPortResource  implements org.apache.ws.resource.lifetime.ScheduledResourceTerminationResource, 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.JobPropertiesDocument propsDoc = org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPropertiesDocument.Factory.newInstance();
+        m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+		
+                   // initialize wsrl:CurrentTime property
+   org.apache.ws.resource.properties.ResourceProperty prop = m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
+   org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument currTime = org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.CurrentTimeDocument.Factory.newInstance();
+   currTime.setCurrentTime( java.util.Calendar.getInstance() );
+   prop.add( currTime );
+   prop.setCallback( new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback() );
+
+   // initialize wsrl:TerminationTime property
+   prop = m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME );
+   org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument termTime = org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.TerminationTimeDocument.Factory.newInstance();
+   termTime.setNilTerminationTime();
+   
+              
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @param time DOCUMENT_ME
+     */
+    public void setTerminationTime( java.util.Calendar time )
+    {
+        org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.setDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) getResourcePropertySet().get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ),
+                time );
+    }
+
+    /**
+     * Returns the current time from the prop set.
+     *
+     * @return java.util.Calendar
+     */
+     public java.util.Calendar getCurrentTime()
+     {
+         return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME ) );
+     }
+
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public java.util.Calendar getTerminationTime()
+    {
+        return org.apache.ws.resource.properties.XmlBeansResourcePropertyUtils.getDateTimePropertyValue( (org.apache.ws.resource.properties.impl.XmlBeansResourceProperty) m_propSet.get( org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType.PROP_QNAME_TERMINATION_TIME ) );
+    }
+    /**
+     * @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/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractJobPortService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,121 @@
+
+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 AbstractJobPortService
+    implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ImmediateResourceTerminationPortType, org.apache.ws.resource.lifetime.v1_2_draft04.porttype.ScheduledResourceTerminationPortType, org.apache.ws.resource.properties.v1_2_draft05.porttype.GetResourcePropertyPortType {
+
+   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}Send_DocumentRequest") , "Send_Document" );
+      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.wsrfWSResourceLifetime12Draft04.DestroyResponseDocument destroy( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.DestroyDocument requestDoc )
+   {
+      return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ImmediateResourceTerminationPortTypeImpl( getResourceContext(  ) ).destroy( requestDoc );
+   }
+   /**
+    * DOCUMENT_ME
+    *
+    * @param requestDoc DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeResponseDocument setTerminationTime( org.oasisOpen.docs.wsrf.x2004.x11.wsrfWSResourceLifetime12Draft04.SetTerminationTimeDocument requestDoc )
+   {
+      return new org.apache.ws.resource.lifetime.v1_2_draft04.porttype.impl.ScheduledResourceTerminationPortTypeImpl( getResourceContext(  ) ).setTerminationTime( 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 );
+   }
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortCustomOperationsPortType.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,15 @@
+
+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 JobPortCustomOperationsPortType
+{
+   
+      public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreationResponseDocument Send_Document( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.SendDocumentRequestDocument requestDoc ) ;       
+   
+}

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortHome.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,101 @@
+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.resource.properties.faults.ResourceUnknownFaultException;
+import org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.MimeMediaTypeType;
+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 JobPort WS-Resources.
+ */
+public class JobPortHome
+        extends AbstractResourceHome
+        implements Serializable
+{
+    private static final String SERVICE_NAME = "JobPort";
+    public static final String HOME_LOCATION = JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME + "/" + JndiConstants.ATOMIC_NAME_HOME;
+
+    private long m_jobId = 0;
+    /**
+     * @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)
+        {
+            throw new ResourceUnknownFaultException(new NamespaceVersionHolderImpl(), new ResourceUnknownException(null, "An error occurred"));
+        }
+        return resource;
+    }
+
+    public JobPortResource createJob(ResourceContext resourceContext, String jobName, String origUserName, MimeMediaTypeType.Enum documentFormat, byte[] base64Data, EndpointReferenceType epr)
+    {
+        ++ m_jobId; //todo generate a job id.....counter?
+        SimpleTypeResourceKey key = new SimpleTypeResourceKey(QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID"), Long.toString(m_jobId));
+        URL serviceURL = resourceContext.getServiceURL();
+        EndpointReferenceType jobEpr = getEprForResource(key,serviceURL);
+        JobPortResource job = new JobPortResource(jobEpr,m_jobId, jobName, origUserName, epr);
+        job.init();
+        add(key, job);
+        return job;
+    }
+
+
+    public JobPortResource createJob(ResourceContext resourceContext, String jobName, EndpointReferenceType epr)
+    {
+        ++m_jobId;
+        SimpleTypeResourceKey key = new SimpleTypeResourceKey(QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID"), Long.toString(m_jobId));
+        URL serviceURL = resourceContext.getServiceURL();
+        EndpointReferenceType jobEpr = getEprForResource(key,serviceURL);
+        JobPortResource job = new JobPortResource(jobEpr,m_jobId, jobName, epr);
+        job.init();
+        add(key, job);
+        return job;
+    }
+
+    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/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortPropertyQNames.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,31 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import javax.xml.namespace.QName;
+
+/**
+ * QNames of the resource properties defined by JobPort WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface JobPortPropertyQNames
+{
+    
+            QName JOB_NAME =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_name", "wsrf-pr");        
+            QName TERMINATIONTIME =
+            new QName( "", "TerminationTime", "wsrf-rl");        
+            QName JOB_REFERENCE =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_reference", "wsrf-pr");        
+            QName JOB_ORIGINATING_USER_NAME =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_originating_user_name", "wsrf-pr");        
+            QName JOB_STATE =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_state", "wsrf-pr");        
+            QName JOB_ID =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_id", "wsrf-pr");        
+            QName CURRENTTIME =
+            new QName( "", "CurrentTime", "wsrf-rl");        
+            QName JOB_PRINTER_REFERENCE =
+            new QName( "http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.xsd", "job_printer_reference", "wsrf-pr");        
+    
+}

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,98 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobIdDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobNameDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobOriginatingUserNameDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobPrinterReferenceDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobReferenceDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateDocument;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.JobStateType;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+
+import java.math.BigInteger;
+import java.util.Calendar;
+
+/**
+ * A JobPort WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class JobPortResource extends AbstractJobPortResource
+{
+    private String m_jobName;
+    private long m_jobId;
+    private String m_origUserName;
+    private EndpointReferenceType m_jobRef;
+    private EndpointReferenceType m_printerRef;
+
+    public JobPortResource(EndpointReferenceType jobEpr, long jobId, String jobName, String origUserName, EndpointReferenceType printerRef)
+    {
+        super();
+        m_jobName = jobName;
+        m_jobId = jobId;
+        m_origUserName = origUserName;
+        m_jobRef = jobEpr;
+        m_printerRef = printerRef;
+    }
+
+    public JobPortResource(EndpointReferenceType jobEpr, long jobId, String jobName, EndpointReferenceType epr)
+    {
+        super();
+        m_jobId = jobId;
+        m_jobName = jobName;
+        m_jobRef = jobEpr;
+        m_printerRef = epr;
+    }
+
+    /**
+     * Initializes this resource's state (properties, etc.).
+     */
+    public void init()
+    {
+        super.init();
+
+        ResourceProperty resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_NAME);
+        JobNameDocument jobNameDocument = JobNameDocument.Factory.newInstance();
+        jobNameDocument.setJobName(m_jobName);
+        resourceProperty.add(jobNameDocument);
+
+        resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_ID);
+        JobIdDocument jobIdDocument = JobIdDocument.Factory.newInstance();
+        jobIdDocument.setJobId(BigInteger.valueOf(m_jobId));
+        resourceProperty.add(jobIdDocument);
+
+        resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_ORIGINATING_USER_NAME);
+        JobOriginatingUserNameDocument jobOriginatingUserNameDocument = JobOriginatingUserNameDocument.Factory.newInstance();
+        jobOriginatingUserNameDocument.setJobOriginatingUserName(m_origUserName);
+        resourceProperty.add(jobOriginatingUserNameDocument);
+
+        resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_PRINTER_REFERENCE);
+        JobPrinterReferenceDocument jobPrinterReferenceDocument = JobPrinterReferenceDocument.Factory.newInstance();
+        jobPrinterReferenceDocument.setJobPrinterReference(m_printerRef);
+        resourceProperty.add(jobPrinterReferenceDocument);
+
+        resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_REFERENCE);
+        JobReferenceDocument jobReferenceDocument = JobReferenceDocument.Factory.newInstance();
+        jobReferenceDocument.setJobReference(getEpr());
+        resourceProperty.add(jobReferenceDocument);
+
+        resourceProperty = m_propSet.get(JobPortPropertyQNames.JOB_STATE);
+        JobStateDocument jobStateDocument = JobStateDocument.Factory.newInstance();
+        jobStateDocument.setJobState(JobStateType.PENDING);
+        resourceProperty.add(jobStateDocument);
+
+        Calendar currentTime = getCurrentTime();
+        Calendar termTime = Calendar.getInstance();
+        termTime.set(currentTime.get(Calendar.YEAR),currentTime.get(Calendar.MONTH), currentTime.get(Calendar.DATE) + 2 );
+        setTerminationTime(termTime);
+
+    }
+
+    private EndpointReferenceType getEpr()
+    {              
+        return m_jobRef;
+    }
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPortService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,142 @@
+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.impl.SimpleTypeResourceKey;
+import org.apache.ws.resource.properties.impl.XmlBeansResourceProperty;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+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.JobPrinterReferenceDocument;
+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.SendDocumentRequestDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.ReferencePropertiesType;
+
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.xml.namespace.QName;
+
+/**
+ * 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 JobPortService
+        extends AbstractJobPortService
+        implements JobPortCustomOperationsPortType
+{
+
+    private ResourceContext m_resourceContext;
+
+    /**
+     * Creates a new {@link JobPortService } object.
+     *
+     * @param resourceContext DOCUMENT_ME
+     */
+    public JobPortService(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 Send_Document(org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.SendDocumentRequestDocument requestDoc)
+    {
+        CreationResponseDocument responseDoc = createResponseDocument();
+        CreationResponseDocument.CreationResponse creationResponse = responseDoc.getCreationResponse();
+        SendDocumentRequestDocument.SendDocumentRequest sendDocumentRequest = requestDoc.getSendDocumentRequest();
+        DocumentContentType documentContent = sendDocumentRequest.getDocumentContent();
+        String documentFormat = sendDocumentRequest.getDocumentFormat();
+        boolean lastDocument = sendDocumentRequest.getLastDocument();
+        try
+        {
+            if(isDocTypeSupported(documentFormat))
+            {
+                JobPortResource jobResource = (JobPortResource) getResourceContext().getResource();
+                org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = jobResource.getResourcePropertySet();
+                //todo ok this just means we add to document to be printed...need some representation or something
+                //also if is last document..probably change its state or something
+            }
+            else
+            {
+                creationResponse.setSuccessStatusCode("server-error-internal-error");
+            }
+        }
+        catch (Exception e)
+        {
+            //throw something
+        }
+
+        return responseDoc;
+    }
+
+    private CreationResponseDocument createResponseDocument()
+    {
+        CreationResponseDocument creationResponseDocument = CreationResponseDocument.Factory.newInstance();
+        creationResponseDocument.addNewCreationResponse();
+        return creationResponseDocument;
+    }
+
+    private boolean isDocTypeSupported(String documentFormat)
+            throws ResourceContextException, ResourceException
+    {
+        //not sure if over engineering here
+        boolean docTypeSupported = false;
+        JobPortResource jobPortResource = (JobPortResource) getResourceContext().getResource();
+        XmlBeansResourceProperty xmlProp = (XmlBeansResourceProperty) jobPortResource.getResourcePropertySet().get(JobPortPropertyQNames.JOB_PRINTER_REFERENCE);
+        JobPrinterReferenceDocument printRef = (JobPrinterReferenceDocument) xmlProp.get(0);
+        EndpointReferenceType jobPrinterReference = printRef.getJobPrinterReference();
+        ReferencePropertiesType referenceProperties = jobPrinterReference.getReferenceProperties();
+        QName keyQName = QName.valueOf("{http://docs.oasis-open.org/wsrf/2005/01/wsrf-Interop-2.0-draft-03.wsdl}ResourceID)");
+        XmlObject[] childElements = XmlBeanUtils.getChildElements(referenceProperties, keyQName);
+        String value = XmlBeanUtils.getValue(childElements[0]);                //todo check this
+        SimpleTypeResourceKey key = new SimpleTypeResourceKey(keyQName, value);
+        try
+        {
+            InitialContext ctx = new InitialContext();
+            PrinterPortHome home = (PrinterPortHome) ctx.lookup(PrinterPortHome.HOME_LOCATION);
+            PrinterPortResource printResource = (PrinterPortResource) home.find(key);
+            XmlBeansResourceProperty xmlPropDocFormat = (XmlBeansResourceProperty) printResource.getResourcePropertySet().get(PrinterPortPropertyQNames.DOCUMENT_FORMAT_SUPPORTED);
+            DocumentFormatSupportedDocument docsSupported = (DocumentFormatSupportedDocument) xmlPropDocFormat.toXmlObjects()[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;
+                }
+            }
+        }
+        catch (NamingException e)
+        {
+            //throw something!!
+        }
+
+
+        return docTypeSupported;
+    }
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_deploy.wsdd?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_deploy.wsdd (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_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="JobPort" 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/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_jndi-config.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_jndi-config.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/JobPort_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="JobPort">
+      <resource name="home" type="org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.JobPortHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.JobPortService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl.JobPortResource</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>
+

Added: incubator/apollo/trunk/src/site/content/example/src/JobPort/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/JobPort/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/JobPort/src/wsdl/wsrf-Interop-2.0-draft-03.wsdl (added)
+++ incubator/apollo/trunk/src/site/content/example/src/JobPort/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/PrinterFactory/build.properties
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/build.properties?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/build.properties (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/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/PrinterFactory/build.xml
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/build.xml?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/build.xml (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/build.xml Fri Feb 18 12:56:32 2005
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+
+<project name="PrinterFactory_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\PrinterFactory\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\PrinterFactory\src\java" />
+   <property name="wsdl.file"    location="C:\apache-apollo-incubating-1.0-alpha-SNAPSHOT\docs\tutorial\generated\PrinterFactory\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 PrinterFactory service to the wsrf webapp">
+          
+       <copy file="${wsdl.file}" todir="${wsrf.webapp.dir}/WEB-INF/classes/wsdl" overwrite="true" verbose="true" />       
+       <echo>Deploying PrinterFactory 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="**/PrinterFactory_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="**/PrinterFactory_jndi-config.xml" />          
+       </jndiUpdater>
+       
+   </target>
+        
+   <target name="sendRequest"
+           description="sends a request to the PrinterFactory 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/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,62 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+/**
+ * An abstract PrinterFactory WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified. 
+ */
+public abstract class AbstractPrinterFactoryResource  implements org.apache.ws.resource.Resource {
+    
+    /**
+     * The resource ID of the instance.
+     */
+    protected String m_id;
+
+            
+    /**
+     * 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()
+    {
+                
+        	
+              
+    }
+
+      
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/AbstractPrinterFactoryService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,88 @@
+
+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 AbstractPrinterFactoryService
+    implements org.apache.ws.resource.handler.WsrfService {
+
+   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}CreatePrinterRequest") , "CreatePrinter" );
+      m_isInitialized      = true;
+   }
+   
+   
+      /**
+       * DOCUMENT_ME
+       *
+       * @return DOCUMENT_ME
+       */
+   protected final boolean isInitialized(  )
+   {
+         return m_isInitialized;
+   }
+
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryCustomOperationsPortType.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryCustomOperationsPortType.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryCustomOperationsPortType.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,15 @@
+
+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 PrinterFactoryCustomOperationsPortType
+{
+   
+      public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterResponseDocument CreatePrinter( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterRequestDocument requestDoc ) ;       
+   
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryHome.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryHome.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryHome.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryHome.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,48 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+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 java.io.Serializable;
+
+/**
+ * Home for PrinterFactory WS-Resources.
+ */
+public class PrinterFactoryHome
+        extends AbstractResourceHome
+        implements Serializable
+{
+    private PrinterFactoryResource m_printerFactory;
+
+    /**
+     * TODO
+     *
+     * @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
+    {
+        //singleton
+         if(m_printerFactory == null)
+         {
+            m_printerFactory = new PrinterFactoryResource();
+            m_printerFactory.init();
+         }
+
+        return m_printerFactory;
+    }
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryResource.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryResource.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryResource.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryResource.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,21 @@
+
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+/**
+ * A PrinterFactory WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class PrinterFactoryResource extends AbstractPrinterFactoryResource
+
+{
+
+    /**
+     * Initializes this resource's state (properties, etc.).
+     */
+    public void init()
+    {
+        super.init();                
+    }
+
+}

Added: incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryService.java
URL: http://svn.apache.org/viewcvs/incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryService.java?view=auto&rev=154347
==============================================================================
--- incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryService.java (added)
+++ incubator/apollo/trunk/src/site/content/example/src/PrinterFactory/src/java/org/oasisOpen/docs/wsrf/x2005/x01/wsrfInterop20Draft03Wsdl/PrinterFactoryService.java Fri Feb 18 12:56:32 2005
@@ -0,0 +1,89 @@
+package org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03Wsdl;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.ResourceException;
+import org.apache.ws.resource.ResourceContextException;
+import org.apache.ws.resource.Resource;
+import org.apache.ws.resource.properties.impl.XmlBeansResourceProperty;
+import org.apache.ws.resource.properties.faults.ResourceUnknownFaultException;
+import org.apache.ws.resource.properties.v1_2_draft05.porttype.impl.NamespaceVersionHolderImpl;
+import org.apache.ws.util.jndi.JNDIUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+import org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterResponseDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+
+import javax.xml.rpc.JAXRPCException;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+/**
+ * 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.
+ *
+ * NOTE: This class is generated. However, it will not be overwritten by subsequent
+ *       calls to the code generator.
+ *
+ */
+public class PrinterFactoryService
+   extends AbstractPrinterFactoryService 
+   implements PrinterFactoryCustomOperationsPortType
+{
+
+   private ResourceContext m_resourceContext;
+
+   /**
+    * Creates a new {@link PrinterFactoryService } object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public PrinterFactoryService( 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.CreatePrinterResponseDocument CreatePrinter( org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterRequestDocument requestDoc )
+   {
+       CreatePrinterResponseDocument responseDocument = createResponseDocument();
+       try
+       {
+           Context initialContext = new InitialContext(  );
+           PrinterPortHome printerPortHome = (PrinterPortHome) initialContext.lookup( PrinterPortHome.HOME_LOCATION );
+           PrinterPortResource instance = (PrinterPortResource) printerPortHome.getInstance(getResourceContext());
+           CreatePrinterResponseDocument.CreatePrinterResponse createPrinterResponse = responseDocument.getCreatePrinterResponse();
+           XmlBeansResourceProperty prop = (XmlBeansResourceProperty) instance.getResourcePropertySet().get(PrinterPortPropertyQNames.PRINTER_REFERENCE);
+           createPrinterResponse.setPrinterReference((EndpointReferenceType) prop.toXmlObjects()[0]);
+       }
+       catch (Exception e)
+       {
+           throw new ResourceUnknownFaultException(new NamespaceVersionHolderImpl(),new ResourceUnknownException(null,"An error occurred when invoking CreatePrinter"));
+
+       }
+
+       return responseDocument;
+   }
+   
+   public org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterResponseDocument createResponseDocument()
+   {
+       org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterResponseDocument response =
+               org.oasisOpen.docs.wsrf.x2005.x01.wsrfInterop20Draft03.CreatePrinterResponseDocument.Factory.newInstance();
+       response.addNewCreatePrinterResponse();
+       return response;
+   }
+}



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