You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by wi...@apache.org on 2005/08/08 20:25:23 UTC
svn commit: r230841 [2/2] - in
/webservices/muse/trunk/src/examples/ieeedemo/src:
.xmlbeans/src/org/wsdmdemo/service/weatherClientConfig/
.xmlbeans/src/org/wsdmdemo/service/weatherStation/
.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/ .xmlbea...
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/AbstractWeatherStationService.java Mon Aug 8 11:25:04 2005
@@ -1,133 +1,131 @@
+
package org.wsdmdemo.service.weatherStation;
-import org.apache.ws.resource.AbstractPortType;
import org.apache.ws.resource.ResourceContext;
-import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
import org.apache.ws.resource.handler.SoapMethodNameMap;
-
+import org.apache.ws.resource.handler.WsrfService;
+import org.apache.ws.resource.AbstractPortType;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
import javax.xml.namespace.QName;
/**
- * **** WARNING: This file will be overwritten during generation ****
- * <p/>
- * This class should be generated on every "generation" against the WSDL.
- * This will ensure it is always up-to-date with the WSDL.
- * <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * An abstract base class for the WeatherStation service.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
*/
public abstract class AbstractWeatherStationService extends AbstractPortType
- implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType
-{
+ implements org.apache.ws.resource.handler.WsrfService, org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType, org.apache.ws.resource.properties.v2004_06.porttype.GetResourcePropertyPortType, org.apache.ws.notification.base.v2004_06.porttype.NotificationProducerPortType {
- public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station";
- public static final String TARGET_NSPREFIX = "weather-station";
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station";
+ public static final String TARGET_NSPREFIX = "weather-station";
- /**
- * DOCUMENT_ME
- */
- private ServiceSoapMethodNameMap m_methodNameMap;
-
- /**
- * DOCUMENT_ME
- */
- private boolean m_isInitialized;
-
- public AbstractWeatherStationService(ResourceContext resourceContext)
- {
- super(resourceContext);
- }
-
- /**
- * 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 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://wsdmdemo.org/service/weather-station}Recalibrate"), "Recalibrate");
- 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.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc)
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl(getResourceContext()).getMultipleResourceProperties(requestDoc);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty(org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc)
- {
- return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl(getResourceContext()).getResourceProperty(requestDoc);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc)
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).subscribe(requestDoc);
- }
-
- /**
- * DOCUMENT_ME
- *
- * @param requestDoc DOCUMENT_ME
- * @return DOCUMENT_ME
- */
- public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc)
- {
- return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
- }
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeatherStationService( ResourceContext resourceContext )
+ {
+ super(resourceContext);
+ }
+
+ /**
+ * 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 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://wsdmdemo.org/service/weather-station}Recalibrate") , "recalibrate" );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}Kickme") , "kickme" );
+ m_isInitialized = true;
+ }
+
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ protected final boolean isInitialized( )
+ {
+ return m_isInitialized;
+ }
+
+ /**
+ * @see org.apache.ws.resource.properties.v2004_06.porttype.GetMultipleResourcePropertiesPortType#getMultipleResourceProperties
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesResponseDocument getMultipleResourceProperties( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetMultipleResourcePropertiesDocument requestDoc )
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetMultipleResourcePropertiesPortTypeImpl( getResourceContext( ) ).getMultipleResourceProperties( requestDoc );
+ }
+
+ /**
+ * @see
+ */
+ public org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyResponseDocument getResourceProperty( org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument requestDoc )
+ {
+ return new org.apache.ws.resource.properties.v2004_06.porttype.impl.GetResourcePropertyPortTypeImpl( getResourceContext( ) ).getResourceProperty( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeResponseDocument subscribe( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument requestDoc )
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).subscribe( requestDoc );
+ }
+
+ /**
+ * DOCUMENT_ME
+ *
+ * @param requestDoc DOCUMENT_ME
+ *
+ * @return DOCUMENT_ME
+ */
+ public org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageResponseDocument getCurrentMessage( org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument requestDoc )
+ {
+ return new org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl( getResourceContext( ) ).getCurrentMessage( requestDoc );
+ }
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationCustomOperationsPortType.java Mon Aug 8 11:25:04 2005
@@ -1,15 +1,18 @@
+
package org.wsdmdemo.service.weatherStation;
/**
- * **** WARNING: This file will be overwritten during generation ****
- * <p/>
- * Custom operations portType.
- * <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+ * An interface containing all custom operations from the WeatherStation service's
+ * most-derived portType.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
*/
public interface WeatherStationCustomOperationsPortType
{
-
- public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument Recalibrate(org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc);
-
+
+ public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument recalibrate( org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc ) ;
+ public org.wsdmdemo.service.weatherStation.KickmeResponseDocument kickme( org.wsdmdemo.service.weatherStation.KickmeDocument requestDoc ) ;
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationHome.java Mon Aug 8 11:25:04 2005
@@ -1,52 +1,55 @@
+
package org.wsdmdemo.service.weatherStation;
+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.ResourceUnknownException;
import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.addressing.EndpointReference;
import org.wsdmdemo.service.InteropConstants;
import javax.xml.namespace.QName;
+
import java.io.Serializable;
-import java.util.Map;
/**
- * **** NOTE: This file will not be overwritten during generation ****
- * <p/>
- * Home for WeatherStation WS-Resources.
+ * The home for WeatherStation resources.
+ * <p />
+ * NOTE: This file is generated, but is meant to be modified.
+ * It will NOT be overwritten by subsequent runs of Wsdl2Java.
*/
public class WeatherStationHome
- extends AbstractResourceHome
+ extends AbstractWeatherStationHome
implements Serializable
{
- /**
- * The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. *
- */
- public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}WeatherStation");
-
- /**
- * The management PortType associated with this resource. This is useful for building EPR's.*
- */
- public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}WeatherStationPortType");
-
- /**
- * The WSDL Port name associated with the resource. This is useful for building EPR's. *
- */
+ /** The service endpoint name as registered with the SOAP Platform. This is useful for building EPR's. **/
+ public static final QName SERVICE_NAME = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}weather-station");
+
+ /** The management PortType associated with this resource. This is useful for building EPR's.**/
+ public static final QName PORT_TYPE = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}WeatherStationPortType");
+
+ /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
public static final String PORT_NAME = "weather-station";
-
- /**
- * The name of the resource key for this resource. *
- */
+
+ /** The name of the resource key for this resource. **/
public static final QName RESOURCE_KEY_NAME = javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station}ResourceIdentifier");
-
- /**
+
+ /**
* A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
*/
- public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
- /**
- * A constant for the JNDI Lookup name for this home. *
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+ /** A constant for the JNDI Lookup name for this home. **/
+ public static final String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+
+ /**
+ * Create and add any resource instances.
+ *
+ * @throws Exception on error
*/
- public static final String HOME_LOCATION =
- org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
-
public void init() throws Exception
{
super.init();
@@ -56,49 +59,31 @@
WeatherStationResource ws2 = (WeatherStationResource) createInstance( InteropConstants.WS2_KEY );
ws2.setName( "HP's NASA" );
add( ws2 );
- }
-
+ }
+
public QName getServiceName()
{
return SERVICE_NAME;
}
-
+
public QName getPortType()
{
return PORT_TYPE;
}
-
+
public String getServicePortName()
{
return PORT_NAME;
}
-
+
public QName getResourceKeyNameQName()
{
return RESOURCE_KEY_NAME;
}
-
- /**
- * Map containing all FilesystemResource instances - this map <em>must</em> be static for
- * compatibility with certain JNDI providers.
- */
- private static Map s_resources;
-
- /**
- * Returns a map of all FilesystemResource instances. Used by the {@link org.apache.ws.resource.impl.AbstractResourceHome}
- * superclass.
- */
- protected synchronized final Map getResourceMap()
- {
- if ( s_resources == null )
- {
- s_resources = AbstractResourceHome.createResourceMap( m_resourceIsPersistent );
- }
- return s_resources;
- }
+
public org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceVersionHolder()
{
- return SPEC_NAMESPACE_SET;
+ return SPEC_NAMESPACE_SET;
}
-
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationPropertyQNames.java Mon Aug 8 11:25:04 2005
@@ -2,41 +2,39 @@
import javax.xml.namespace.QName;
-/**
- * **** WARNING: This file will be overwritten during generation ****
- * <p/>
- * QNames of the resource properties defined by WeatherStation WSDL.
- * <p/>
- * NOTE: This class is generated and is NOT meant to be modified.
+/**
+ * QNames of the resource properties associated with the WeatherStation resource.
+ * <p />
+ * ***** WARNING *****
+ * This class is generated by Wsdl2Java and is NOT meant to be modified.
+ * It will be overwritten by subsequent runs of Wsdl2Java.
*/
public interface WeatherStationPropertyQNames
{
-
- QName TEMPERATURE =
- new QName("http://wsdmdemo.org/service/weather-station", "Temperature", "tns");
- QName TOPICEXPRESSIONDIALECTS =
- new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
- QName RESOURCEID =
- new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
- QName VISIBILITY =
- new QName("http://wsdmdemo.org/service/weather-station", "Visibility", "tns");
- QName MANAGEABILITYCAPABILITY =
- new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
- QName HUMIDITY =
- new QName("http://wsdmdemo.org/service/weather-station", "Humidity", "tns");
- QName PRICE =
- new QName("http://wsdmdemo.org/service/weather-station", "Price", "tns");
- QName NAME =
- new QName("http://wsdmdemo.org/service/weather-station", "Name", "tns");
- QName OPERATIONALSTATUS =
- new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
- QName FIXEDTOPICSET =
- new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
- QName CURRENTTIME =
- new QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");
- QName OWNER =
- new QName("http://wsdmdemo.org/service/weather-station", "Owner", "tns");
- QName TOPIC =
- new QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
-
+
+ QName LASTRESPONSETIME =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd", "LastResponseTime", "mows-xs");
+ QName MANAGEABILITYCAPABILITY =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ QName TEMPERATURE =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Temperature", "tns");
+ QName TOPICEXPRESSIONDIALECTS =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "TopicExpressionDialects", "wsnt");
+ QName PRICE =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Price", "tns");
+ QName RESOURCEID =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ResourceId", "muws-p1-xs");
+ QName NAME =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Name", "tns");
+ QName FIXEDTOPICSET =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName OPERATIONALSTATUS =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "OperationalStatus", "muws-p2-xs");
+ QName CURRENTTIME =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "CurrentTime", "muws-p2-xs");
+ QName OWNER =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Owner", "tns");
+ QName TOPIC =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationResource.java Mon Aug 8 11:25:04 2005
@@ -1,6 +1,8 @@
package org.wsdmdemo.service.weatherStation;
-import org.apache.ws.Soap1_1Constants;
+import java.math.BigDecimal;
+import java.util.Calendar;
+
import org.apache.ws.muws.v1_0.MuwsConstants;
import org.apache.ws.muws.v1_0.capability.IdentityCapability;
import org.apache.ws.muws.v1_0.capability.ManageabilityCharacteristicsCapability;
@@ -9,165 +11,227 @@
import org.apache.ws.muws.v1_0.topics.impl.XmlBeansManagementEventTopicImpl;
import org.apache.ws.notification.topics.TopicSpace;
import org.apache.ws.notification.topics.impl.TopicSpaceImpl;
-import org.apache.ws.resource.faults.FaultException;
import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.xmlbeans.GDurationBuilder;
+import org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.DurationMetric;
import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
import org.wsdmdemo.service.InteropConstants;
-import org.wsdmdemo.service.weatherStation.callbacks.HumidityCallback;
import org.wsdmdemo.service.weatherStation.callbacks.TemperatureCallback;
-import org.wsdmdemo.service.weatherStation.callbacks.VisibilityCallback;
import org.wsdmdemo.service.weatherStationDir.WeatherStationDirPropertyQNames;
-import java.util.Calendar;
-
/**
- * **** NOTE: This file will not be overwritten during generation ****
- * <p/>
* A WeatherStation WS-Resource.
- * <p/>
- * NOTE: This class is generated but IS meant to be modified.
+ * <p />
+ * NOTE: This file is generated, but is meant to be modified. It will NOT be
+ * overwritten by subsequent runs of Wsdl2Java.
*/
public class WeatherStationResource extends AbstractWeatherStationResource
{
- /**
- * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
- */
- public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
-
- /**
- * Initializes this resource's state (properties, etc.).
- */
- public void init()
- {
- super.init();
-
- /**
- * The ResourcePropertySet which contains all the defined ResourceProperties
- */
- org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
- org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
-
-
- try
- {
-
- /** TOPICS **/
- TopicSpace muwsTopicSpace = new TopicSpaceImpl(MuwsConstants.NSURI_MUWS_PART2_TOPICS);
- getTopicSpaceSet().addTopicSpace(muwsTopicSpace);
-
- //identity
- ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl(IdentityCapability.TOPIC_NAME);
- muwsTopicSpace.addTopic(identityCapability);
- //manageability
- ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl(ManageabilityCharacteristicsCapability.TOPIC_NAME);
- muwsTopicSpace.addTopic(manageabilityCharacteristicsCapability);
-
- //operational status
- ManagementEventTopic operationalCapability = new XmlBeansManagementEventTopicImpl(OperationalStatusCapability.TOPIC_NAME);
- muwsTopicSpace.addTopic(operationalCapability);
- /** END TOPICS **/
-
- /** CAPABILITIES **/
- // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationDirPropertyQNames.MANAGEABILITYCAPABILITY);
-
- //identity
- org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
- prop_manageabilitycapability.setManageabilityCapability(IdentityCapability.URI);
- resourceProperty.add(prop_manageabilitycapability);
-
- //operational status
- prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
- prop_manageabilitycapability.setManageabilityCapability(OperationalStatusCapability.URI);
- resourceProperty.add(prop_manageabilitycapability);
-
- //manageability listener
- resourceProperty.addChangeListener(manageabilityCharacteristicsCapability);
- /** END CAPABILITIES **/
-
-
- /** RESOURCE PROPERTIES **/
- // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.RESOURCEID);
- org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
- prop_resourceid.setResourceId("urn:" + getID());
- resourceProperty.add(prop_resourceid);
- resourceProperty.addChangeListener(identityCapability);
-
- //resetat value for metrics
- Calendar resetAt = Calendar.getInstance();
-
- // init the {http://wsdmdemo.org/service/weather-station}Visibility Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.VISIBILITY);
- org.wsdmdemo.service.weatherStation.VisibilityDocument prop_visibility = org.wsdmdemo.service.weatherStation.VisibilityDocument.Factory.newInstance();
- org.wsdmdemo.service.weatherStation.VisibilityMetricType visibilityMetricType = prop_visibility.addNewVisibility();
- visibilityMetricType.setResetAt(resetAt);
- visibilityMetricType.setDoubleValue(InteropConstants.DEFAULT_VISIBILITY);
- resourceProperty.add(prop_visibility);
- resourceProperty.setCallback(new VisibilityCallback());
-
-
- // init the {http://wsdmdemo.org/service/weather-station}Temperature Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.TEMPERATURE);
- org.wsdmdemo.service.weatherStation.TemperatureDocument prop_temperature = org.wsdmdemo.service.weatherStation.TemperatureDocument.Factory.newInstance();
- org.wsdmdemo.service.weatherStation.TemperatureMetricType temperatureMetricType = prop_temperature.addNewTemperature();
- temperatureMetricType.setDoubleValue(InteropConstants.DEFAULT_TEMP);
- temperatureMetricType.setResetAt(resetAt);
- resourceProperty.add(prop_temperature);
- resourceProperty.setCallback(new TemperatureCallback());
-
- // init the {http://wsdmdemo.org/service/weather-station}Humidity Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.HUMIDITY);
- org.wsdmdemo.service.weatherStation.HumidityDocument prop_humidity = org.wsdmdemo.service.weatherStation.HumidityDocument.Factory.newInstance();
- org.wsdmdemo.service.weatherStation.HumidityMetricType humidityMetricType = prop_humidity.addNewHumidity();
- humidityMetricType.setDoubleValue(InteropConstants.DEFAULT_HUMIDITY);
- humidityMetricType.setResetAt(resetAt);
- resourceProperty.add(prop_humidity);
- resourceProperty.setCallback(new HumidityCallback());
-
- // init the {http://wsdmdemo.org/service/weather-station}Price Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.PRICE);
- org.wsdmdemo.service.weatherStation.PriceDocument prop_price = org.wsdmdemo.service.weatherStation.PriceDocument.Factory.newInstance();
- prop_price.setPrice(InteropConstants.PRICE);
- resourceProperty.add(prop_price);
-
- // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.OPERATIONALSTATUS);
- org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();
- prop_operationalstatus.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
- resourceProperty.add(prop_operationalstatus);
- resourceProperty.addChangeListener(operationalCapability);
-
- // init the {http://wsdmdemo.org/service/weather-station}Owner Resource Property
- resourceProperty = resourcePropertySet.get(WeatherStationPropertyQNames.OWNER);
- org.wsdmdemo.service.weatherStation.OwnerDocument prop_owner = org.wsdmdemo.service.weatherStation.OwnerDocument.Factory.newInstance();
- prop_owner.setOwner(InteropConstants.OWNER);
- resourceProperty.add(prop_owner);
- /** END RESOURCE PROPERTIES **/
-
- }
- catch (Exception e)
- {
- throw new FaultException(Soap1_1Constants.FAULT_SERVER, "There was a problem in initializing resource properties. Cause: " + e.getLocalizedMessage());
- }
-
- // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet is implemented by the framework.
- // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic is implemented by the framework.
- // Resource Property {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects is implemented by the framework.
- }
-
- /**
- * Sets the name property of this resource.
- * i.e. Nasa
- *
- * @param name
- */
- public void setName(String name)
- {
- ResourceProperty resourceProperty = getResourcePropertySet().get(WeatherStationPropertyQNames.NAME);
- org.wsdmdemo.service.weatherStation.NameDocument prop_name = org.wsdmdemo.service.weatherStation.NameDocument.Factory.newInstance();
- prop_name.setName(name);
- resourceProperty.add(prop_name);
- }
+
+ /**
+ * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+ */
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+
+ /**
+ * Initializes this resource's state (properties, etc.).
+ */
+ public void init() {
+ super.init();
+
+ /**
+ * The ResourcePropertySet which contains all the defined
+ * ResourceProperties
+ */
+ org.apache.ws.resource.properties.ResourcePropertySet resourcePropertySet = getResourcePropertySet();
+ org.apache.ws.resource.properties.ResourceProperty resourceProperty = null;
+
+ try {
+
+ /** TOPICS * */
+ TopicSpace muwsTopicSpace = new TopicSpaceImpl(
+ MuwsConstants.NSURI_MUWS_PART2_TOPICS);
+ getTopicSpaceSet().addTopicSpace(muwsTopicSpace);
+
+ // identity
+ ManagementEventTopic identityCapability = new XmlBeansManagementEventTopicImpl(
+ IdentityCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(identityCapability);
+ // manageability
+ ManagementEventTopic manageabilityCharacteristicsCapability = new XmlBeansManagementEventTopicImpl(
+ ManageabilityCharacteristicsCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(manageabilityCharacteristicsCapability);
+
+ // operational status
+ ManagementEventTopic operationalCapability = new XmlBeansManagementEventTopicImpl(
+ OperationalStatusCapability.TOPIC_NAME);
+ muwsTopicSpace.addTopic(operationalCapability);
+ /** END TOPICS * */
+
+ /** CAPABILITIES * */
+ // init the
+ // {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationDirPropertyQNames.MANAGEABILITYCAPABILITY);
+
+ // identity
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory
+ .newInstance();
+ prop_manageabilitycapability
+ .setManageabilityCapability(IdentityCapability.URI);
+ resourceProperty.add(prop_manageabilitycapability);
+
+ // operational status
+ prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory
+ .newInstance();
+ prop_manageabilitycapability
+ .setManageabilityCapability(OperationalStatusCapability.URI);
+ resourceProperty.add(prop_manageabilitycapability);
+
+ // manageability listener
+ resourceProperty
+ .addChangeListener(manageabilityCharacteristicsCapability);
+ /** END CAPABILITIES * */
+
+ /** RESOURCE PROPERTIES * */
+ // resetat value for metrics
+ Calendar resetAt = Calendar.getInstance();
+ // init the
+ // {http://docs.oasis-open.org/wsdm/2004/12/mows/wsdm-mows.xsd}LastResponseTime
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.LASTRESPONSETIME);
+ org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.LastResponseTimeDocument prop_lastresponsetime = org.oasisOpen.docs.wsdm.x2004.x12.mows.wsdmMows.LastResponseTimeDocument.Factory
+ .newInstance();
+ DurationMetric durationMetric = DurationMetric.Factory
+ .newInstance();
+ GDurationBuilder builder = new GDurationBuilder(+1, 1, 2, 3, 4, 5,
+ 6, new BigDecimal("0.789"));
+
+ // TODO: Initialize the prop_lastresponsetime by calling its
+ // operations.
+ // also could call resourceProperty.setCallback(...); to add a
+ // custom callback object for this property
+ durationMetric.setGDurationValue(builder.toGDuration());
+ durationMetric.setLastUpdated(resetAt);
+ durationMetric.setResetAt(resetAt);
+ prop_lastresponsetime.setLastResponseTime(durationMetric);
+ resourceProperty.add(prop_lastresponsetime);
+
+ // init the
+ // {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.RESOURCEID);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory
+ .newInstance();
+ prop_resourceid.setResourceId("urn:" + getID());
+ resourceProperty.add(prop_resourceid);
+ resourceProperty.addChangeListener(identityCapability);
+
+ // init the {http://wsdmdemo.org/service/weather-station}Visibility
+ // Resource Property
+ // resourceProperty =
+ // resourcePropertySet.get(WeatherStationPropertyQNames.VISIBILITY);
+ // / org.wsdmdemo.service.weatherStation.VisibilityDocument
+ // prop_visibility =
+ // org.wsdmdemo.service.weatherStation.VisibilityDocument.Factory.newInstance();
+ // org.wsdmdemo.service.weatherStation.VisibilityMetricType
+ // visibilityMetricType = prop_visibility.addNewVisibility();
+ // visibilityMetricType.setResetAt(resetAt);
+ // visibilityMetricType.setDoubleValue(InteropConstants.DEFAULT_VISIBILITY);
+ // resourceProperty.add(prop_visibility);
+ // resourceProperty.setCallback(new VisibilityCallback());
+
+ // init the {http://wsdmdemo.org/service/weather-station}Temperature
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.TEMPERATURE);
+ org.wsdmdemo.service.weatherStation.TemperatureDocument prop_temperature = org.wsdmdemo.service.weatherStation.TemperatureDocument.Factory
+ .newInstance();
+ org.wsdmdemo.service.weatherStation.TemperatureMetricType temperatureMetricType = prop_temperature
+ .addNewTemperature();
+ temperatureMetricType.setDoubleValue(InteropConstants.DEFAULT_TEMP);
+ temperatureMetricType.setResetAt(resetAt);
+ resourceProperty.add(prop_temperature);
+ resourceProperty.setCallback(new TemperatureCallback());
+
+ // init the {http://wsdmdemo.org/service/weather-station}Humidity
+ // Resource Property
+ // resourceProperty =
+ // resourcePropertySet.get(WeatherStationPropertyQNames.HUMIDITY);
+ // org.wsdmdemo.service.weatherStation.HumidityDocument
+ // prop_humidity =
+ // org.wsdmdemo.service.weatherStation.HumidityDocument.Factory.newInstance();
+ // org.wsdmdemo.service.weatherStation.HumidityMetricType
+ // humidityMetricType = prop_humidity.addNewHumidity();
+ // humidityMetricType.setDoubleValue(InteropConstants.DEFAULT_HUMIDITY);
+ // humidityMetricType.setResetAt(resetAt);
+ // resourceProperty.add(prop_humidity);
+ // resourceProperty.setCallback(new HumidityCallback());
+
+ // init the {http://wsdmdemo.org/service/weather-station}Price
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.PRICE);
+ org.wsdmdemo.service.weatherStation.PriceDocument prop_price = org.wsdmdemo.service.weatherStation.PriceDocument.Factory
+ .newInstance();
+ prop_price.setPrice(InteropConstants.PRICE);
+ resourceProperty.add(prop_price);
+
+ // init the
+ // {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}OperationalStatus
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.OPERATIONALSTATUS);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory
+ .newInstance();
+ prop_operationalstatus
+ .setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
+ resourceProperty.add(prop_operationalstatus);
+ resourceProperty.addChangeListener(operationalCapability);
+
+ // init the {http://wsdmdemo.org/service/weather-station}Owner
+ // Resource Property
+ resourceProperty = resourcePropertySet
+ .get(WeatherStationPropertyQNames.OWNER);
+ org.wsdmdemo.service.weatherStation.OwnerDocument prop_owner = org.wsdmdemo.service.weatherStation.OwnerDocument.Factory
+ .newInstance();
+ prop_owner.setOwner(InteropConstants.OWNER);
+ resourceProperty.add(prop_owner);
+ /** END RESOURCE PROPERTIES * */
+
+ } catch (Exception e) {
+ throw new javax.xml.rpc.JAXRPCException(
+ "There was a problem in initializing your resource properties. Please check your init() method. Cause: "
+ + e.getLocalizedMessage());
+ }
+ // Resource Property
+ // {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}FixedTopicSet
+ // is implemented by the framework.
+ // Resource Property
+ // {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}Topic
+ // is implemented by the framework.
+ // Resource Property
+ // {http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd}TopicExpressionDialects
+ // is implemented by the framework.
+
+ }
+
+ /**
+ * Sets the name property of this resource. i.e. Nasa
+ *
+ * @param name
+ */
+ public void setName(String name) {
+ ResourceProperty resourceProperty = getResourcePropertySet().get(
+ WeatherStationPropertyQNames.NAME);
+ org.wsdmdemo.service.weatherStation.NameDocument prop_name = org.wsdmdemo.service.weatherStation.NameDocument.Factory
+ .newInstance();
+ prop_name.setName(name);
+ resourceProperty.add(prop_name);
+ }
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStationService.java Mon Aug 8 11:25:04 2005
@@ -9,52 +9,55 @@
import org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.UpdateType;
/**
- * **** NOTE: This file will not be overwritten during generation ****
- * <p/>
- * This class should be generated ONCE (and not overwritten) to maintain user-added code.
+ * A WeatherStation service.
+ *
+ * This class is generated ONCE and never overwritten.
* 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
+ * representing the implemented 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.
+ * <p />
+ * NOTE: This file is generated, but is meant to be modified.
+ * It will NOT be overwritten by subsequent runs of Wsdl2Java.
*/
public class WeatherStationService
- extends AbstractWeatherStationService
- implements WeatherStationCustomOperationsPortType
+ extends AbstractWeatherStationService
+ implements WeatherStationCustomOperationsPortType
{
- /**
- * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
- */
- public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
-
- /**
- * Creates a new {@link WeatherStationService } object.
- *
- * @param resourceContext DOCUMENT_ME
- */
- public WeatherStationService(ResourceContext resourceContext)
- {
- super(resourceContext);
- init();
- }
-
- /**
- * Returns a collection of Spec Namespaces associated with this Service
- *
- * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces
- * associated with this service.
- */
- protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
- {
- return SPEC_NAMESPACE_SET;
- }
-
-
- public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument Recalibrate(org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc)
- {
+
+
+ /**
+ * A NamespaceVerionHolder which maintains the QNames of Spec Wsdls
+ */
+ public static final org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl SPEC_NAMESPACE_SET = new org.apache.ws.muws.v1_0.impl.WsdmNamespaceVersionHolderImpl();
+
+ /**
+ * Creates a new {@link WeatherStationService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public WeatherStationService( ResourceContext resourceContext )
+ {
+ super(resourceContext);
+ init();
+ }
+
+ /**
+ * Returns a collection of Spec Namespaces associated with this Service
+ *
+ * @return A NamespaceVersionHolder impl which represents the collection of spec namespaces
+ * associated with this service.
+ */
+ protected org.apache.ws.resource.properties.NamespaceVersionHolder getNamespaceSet()
+ {
+ return SPEC_NAMESPACE_SET;
+ }
+
+
+ public org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument recalibrate( org.wsdmdemo.service.weatherStation.RecalibrateDocument requestDoc )
+ {
org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument responseDocument = org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument.Factory.newInstance();
org.wsdmdemo.service.weatherStation.RecalibrateResponseDocument.RecalibrateResponse response = responseDocument.addNewRecalibrateResponse();
+
//set status to unavailable
changeOperationalStatus(OperationalStatusDocument.OperationalStatus.UNAVAILABLE);
@@ -62,7 +65,26 @@
thread.start();
return responseDocument;
- }
+ }
+
+
+
+ public org.wsdmdemo.service.weatherStation.KickmeResponseDocument kickme( org.wsdmdemo.service.weatherStation.KickmeDocument requestDoc )
+ {
+ org.wsdmdemo.service.weatherStation.KickmeResponseDocument responseDocument = org.wsdmdemo.service.weatherStation.KickmeResponseDocument.Factory.newInstance();
+
+ /**
+ * TODO implement method and populate the response object
+ *
+ * For more information on working-with/populating the XmlBean-generated types.
+ *
+ * See http://xmlbeans.apache.org/documentation/tutorial_getstarted.html#Results+of+Compiling+the+Schema
+ */
+
+ // Switch to alternate Tempurature callback
+
+ return responseDocument;
+ }
/**
* Method to change the operational status in order to trigger a prop change event.
@@ -85,5 +107,6 @@
SetResourcePropertiesResponseDocument setResourcePropertiesResponseDocument = setResourcePropertiesPortType.setResourceProperties(setResourcePropertiesDocument);
}
-
+
+
}
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_deploy.wsdd
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_deploy.wsdd?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_deploy.wsdd (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_deploy.wsdd Mon Aug 8 11:25:04 2005
@@ -1,9 +1,11 @@
<?xml version="1.0"?>
-<!-- **** WARNING: This file will be overwritten during generation **** -->
+
+<!-- ***** WARNING: This file will be overwritten during generation. ***** -->
+
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
- <service name="WeatherStation" provider="java:WSRF" style="document" use="literal">
+ <service name="weather-station" provider="java:WSRF" style="document" use="literal">
<wsdlFile>/wsdl/weather-station.wsdl</wsdlFile>
Modified: webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml?rev=230841&r1=230840&r2=230841&view=diff
==============================================================================
--- webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml (original)
+++ webservices/muse/trunk/src/examples/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/WeatherStation_jndi-config.xml Mon Aug 8 11:25:04 2005
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
-<!-- **** WARNING: This file will be overwritten during generation **** -->
+<!-- ***** WARNING: This file will be overwritten during generation. ***** -->
<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
- <service name="WeatherStation">
- <resource name="home" type="org.wsdmdemo.service.weatherStation.WeatherStationHome">
- <resourceParams>
+ <service name="weather-station">
+ <resource name="home" type="org.wsdmdemo.service.weatherStation.WeatherStationHome">
+ <resourceParams>
<parameter>
<name>baseWebappUrl</name>
<!--
@@ -16,30 +16,26 @@
-NO Marker in which case whatever value you add will be static and used.
-->
<value>http://$IP_ADDRESS$:8080/muse</value>
- </parameter>
-
- <parameter>
- <name>serviceClassName</name>
- <value>org.wsdmdemo.service.weatherStation.WeatherStationService</value>
- </parameter>
- <parameter>
- <name>resourceClassName</name>
- <value>org.wsdmdemo.service.weatherStation.WeatherStationResource</value>
- </parameter>
- <parameter>
- <name>wsdlTargetNamespace</name>
- <value>http://wsdmdemo.org/service/weather-station</value>
- </parameter>
-
- <parameter>
- <name>resourceIdentifierReferenceParameterName</name>
- <value>{http://wsdmdemo.org/service/weather-station}ResourceIdentifier</value>
- </parameter>
-
-
- </resourceParams>
- </resource>
- </service>
+ </parameter>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.WeatherStationService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.WeatherStationResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-station</value>
+ </parameter>
+ <parameter>
+ <name>resourceIdentifierReferenceParameterName</name>
+ <value>{http://wsdmdemo.org/service/weather-station}ResourceIdentifier</value>
+ </parameter>
+ </resourceParams>
+ </resource>
+ </service>
</jndiConfig>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org