Author: scamp
Date: Fri Apr  1 07:43:46 2005
New Revision: 159695

URL: http://svn.apache.org/viewcvs?view=rev&rev=159695
Log: (empty)


Added:
    incubator/muse/trunk/src/site/content/interop/src/java/org/everest/
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_deploy.wsdd
    
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapResource.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,85 @@
+
+package org.everest;
+
+/**
+ * An abstract WeatherStationSoap WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified. 
+ */
+public abstract class AbstractWeatherStationSoapResource  implements 
org.apache.ws.resource.Resource {
+    
+    /**
+     * The resource ID of the instance.
+     */
+    protected String m_id;
+
+            
+    
+    /**
+     * A list of termination listeners to be notified when the resource is 
terminated.
+     */
+    private java.util.List m_terminationListeners = new java.util.ArrayList(); 
+     
+     
+    /**
+     * 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
+     *
+     * @param listener DOCUMENT_ME
+     */
+    public void addTerminationListener( 
org.apache.ws.resource.lifetime.ResourceTerminationListener listener)
+    {         
+         m_terminationListeners.add(listener);
+    }
+
+    /**
+     * DOCUMENT_ME
+     *
+     * @return DOCUMENT_ME
+     */
+    public Object getID()
+    {
+        return m_id;
+    }
+
+    public void destroy()
+    {
+       org.apache.ws.resource.lifetime.ResourceTerminationEvent rte = new 
org.apache.ws.resource.lifetime.impl.ResourceTerminationEventImpl(getID(),"Resource
 Destroyed");
+       for (int i = 0; i < m_terminationListeners.size(); i++)
+       {
+           org.apache.ws.resource.lifetime.ResourceTerminationListener 
resourceTerminationEventListener = 
(org.apache.ws.resource.lifetime.ResourceTerminationListener) 
m_terminationListeners.get(i);
+           resourceTerminationEventListener.terminationOccurred(rte);
+       }     
+        return;
+    }
+
+    public void init()
+    {
+                
+               
+              
+    }
+
+      
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/AbstractWeatherStationSoapService.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,88 @@
+
+package org.everest;
+
+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 AbstractWeatherStationSoapService
+    implements org.apache.ws.resource.handler.WsrfService {
+
+   public static final String TARGET_NSURI = "http://everest.org/";;
+   public static final String TARGET_NSPREFIX = "everest.org";
+
+   /**
+    * 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://everest.org/}GetCurrentTemperature";) 
, "GetCurrentTemperature" );
+      m_isInitialized      = true;
+   }
+   
+   
+      /**
+       * DOCUMENT_ME
+       *
+       * @return DOCUMENT_ME
+       */
+   protected final boolean isInitialized(  )
+   {
+         return m_isInitialized;
+   }
+
+
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapCustomOperationsPortType.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,15 @@
+
+package org.everest;
+
+/**
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface WeatherStationSoapCustomOperationsPortType
+{
+   
+      public org.everest.GetCurrentTemperatureResponseDocument 
GetCurrentTemperature( org.everest.GetCurrentTemperatureDocument requestDoc ) ; 
      
+   
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapHome.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,50 @@
+package org.everest;
+
+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 WeatherStationSoap WS-Resources.
+ */
+public class WeatherStationSoapHome
+        extends AbstractResourceHome
+        implements Serializable
+{
+
+    /**
+     * 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
+    {
+        ResourceKey key = resourceContext.getResourceKey();
+        Resource resource = null;
+        try
+        {
+            resource = find( key );
+        }
+        catch ( ResourceException re )
+        {
+            //todo add any checking for key validity
+        }
+        return resource;
+    }
+
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapResource.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,30 @@
+
+package org.everest;
+
+/**
+ * A WeatherStationSoap WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class WeatherStationSoapResource extends 
AbstractWeatherStationSoapResource
+
+{
+
+        
+    /**
+     * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+     */
+    public static final 
org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl 
SPEC_NAMESPACE_SET = new 
org.apache.ws.notification.base.v1_2.impl.WsnNamespaceVersionHolderImpl();
+    
+    /**
+     * Initializes this resource's state (properties, etc.).
+     */
+    public void init()
+    {
+        super.init();
+        
+                
+        // TODO: init all custom properties - this includes setting values, 
registering callbacks, and adding prop value changed topics
+    }
+
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoapService.java
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,55 @@
+package org.everest;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+
+import javax.xml.rpc.JAXRPCException;
+
+/**
+ * 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 WeatherStationSoapService
+   extends AbstractWeatherStationSoapService 
+   implements WeatherStationSoapCustomOperationsPortType
+{
+
+   private ResourceContext m_resourceContext;
+
+   /**
+    * Creates a new [EMAIL PROTECTED] WeatherStationSoapService } object.
+    *
+    * @param resourceContext DOCUMENT_ME
+    */
+   public WeatherStationSoapService( ResourceContext resourceContext )
+   {
+      m_resourceContext = resourceContext;
+      init();
+   }
+
+   /**
+    * DOCUMENT_ME
+    *
+    * @return DOCUMENT_ME
+    */
+   public ResourceContext getResourceContext(  )
+   {
+      return m_resourceContext;
+   }
+
+      
+   public org.everest.GetCurrentTemperatureResponseDocument 
GetCurrentTemperature( org.everest.GetCurrentTemperatureDocument requestDoc )
+   {              
+       //todo implement  
+       return null;
+   }
+   
+      
+}

Added: 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_deploy.wsdd
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_deploy.wsdd?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_deploy.wsdd
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_deploy.wsdd
 Fri Apr  1 07:43:46 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="WeatherStationSoap" provider="java:WSRF" style="document" 
use="literal">
+      
+      <wsdlFile>/wsdl/weatherws.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/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml?view=auto&rev=159695
==============================================================================
--- 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml
 (added)
+++ 
incubator/muse/trunk/src/site/content/interop/src/java/org/everest/WeatherStationSoap_jndi-config.xml
 Fri Apr  1 07:43:46 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config";>
+
+   <service name="WeatherStationSoap">
+      <resource name="home" type="org.everest.WeatherStationSoapHome">
+         <resourceParams>
+            <parameter>
+               <name>serviceClassName</name>
+               <value>org.everest.WeatherStationSoapService</value>
+            </parameter>
+            <parameter>
+               <name>resourceClassName</name>
+               <value>org.everest.WeatherStationSoapResource</value>
+            </parameter>
+            <parameter>
+               <name>wsdlTargetNamespace</name>
+               <value>http://everest.org/</value>
+            </parameter>
+            
+            <parameter>
+               <name>resourceKeyName</name>
+               <value>{http://everest.org/}ResourceID</value>
+            </parameter>
+            
+
+         </resourceParams>
+      </resource>
+   </service>
+
+</jndiConfig>
+



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

Reply via email to