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 sc...@apache.org on 2005/05/26 17:45:59 UTC
svn commit: r178646 [8/8] - in /incubator/muse/trunk/src/ieeedemo: ./ lib/
src/.xmlbeans/ src/.xmlbeans/src/ src/.xmlbeans/src/org/
src/.xmlbeans/src/org/wsdmdemo/ src/.xmlbeans/src/org/wsdmdemo/service/
src/.xmlbeans/src/org/wsdmdemo/service/weatherClientConfig/
src/.xmlbeans/src/org/wsdmdemo/service/weatherClientConfig/impl/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStation/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStation/impl/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/
src/.xmlbeans/src/org/wsdmdemo/service/weatherStationDir/impl/
src/java/org/ src/java/org/wsdmdemo/ src/java/org/wsdmdemo/service/
src/java/org/wsdmdemo/service/weatherClientConfig/
src/java/org/wsdmdemo/service/weatherStation/
src/java/org/wsdmdemo/service/weatherStationDir/
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationHome.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationHome.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationHome.java Thu May 26 08:45:57 2005
@@ -0,0 +1,115 @@
+
+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.ResourceKey;
+import org.apache.ws.resource.ResourceUnknownException;
+import org.apache.ws.resource.impl.AbstractResourceHome;
+import org.apache.ws.addressing.EndpointReference;
+
+import javax.xml.namespace.QName;
+
+import java.io.Serializable;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * Home for Weather-station WS-Resources.
+ */
+public class Weather-stationHome
+ extends AbstractResourceHome
+ 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}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. **/
+ 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 String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+
+ /**
+ *
+ * @param resourceContext
+ *
+ * @return A Resource
+ *
+ * @throws ResourceException
+ * @throws ResourceContextException
+ * @throws ResourceUnknownException
+ */
+ public Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ ResourceKey key = resourceContext.getResourceKey();
+ Resource resource = null;
+ try
+ {
+ resource = find( key ); //attempt to find from the underlying cache
+ }
+ catch ( ResourceException re )
+ {
+ //TODO add any checking for key validity if you plan to create instances here
+
+ /**
+ * Commented below is an example of creating a resource instance, adding its epr and adding to the cache.
+ * Note: You can set the EndpointReference on your Resource using the setter (not in Resource interface)
+ */
+
+ /*
+ try
+ {
+ Weather-stationResource myresource = (Weather-stationResource)createInstance(key); //this will create the resource IF it is has default constructor. It also calls init() on the resource.
+ //the next line will create an EPR
+ EndpointReference epr = getEndpointReference(resourceContext.getBaseURL( ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
+ myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
+ add(key, myresource); //make sure to add your instance to the underlying cache to be found in future requests using find(..)
+ }
+ catch (Exception e)
+ {
+ throw new ResourceException(e);
+ }
+ */
+
+ }
+ return resource;
+ }
+
+ 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;
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationPropertyQNames.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationPropertyQNames.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationPropertyQNames.java Thu May 26 08:45:57 2005
@@ -0,0 +1,41 @@
+package org.wsdmdemo.service.weatherStation;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Weather-station WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-stationPropertyQNames
+{
+
+ 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 TEMPERATURE =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Temperature", "tns");
+ QName HUMIDITY =
+ new QName( "http://wsdmdemo.org/service/weather-station", "Humidity", "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 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 RELATIONSHIP =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-p2-xs");
+ QName TOPIC =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,130 @@
+
+package org.wsdmdemo.service.weatherStation;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * A Weather-station WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class Weather-stationResource extends AbstractWeather-stationResource
+
+{
+
+ /**
+ * 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{
+ // init the {http://wsdmdemo.org/service/weather-station}Temperature Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.TEMPERATURE);
+ org.wsdmdemo.service.weatherStation.TemperatureDocument prop_temperature = org.wsdmdemo.service.weatherStation.TemperatureDocument.Factory.newInstance();
+ // TODO: Initialize the prop_temperature by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_temperature);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.RESOURCEID);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
+ // TODO: Initialize the prop_resourceid by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_resourceid);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.MANAGEABILITYCAPABILITY);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+ // TODO: Initialize the prop_manageabilitycapability by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_manageabilitycapability);
+
+
+ // init the {http://wsdmdemo.org/service/weather-station}Visibility Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.VISIBILITY);
+ org.wsdmdemo.service.weatherStation.VisibilityDocument prop_visibility = org.wsdmdemo.service.weatherStation.VisibilityDocument.Factory.newInstance();
+ // TODO: Initialize the prop_visibility by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_visibility);
+
+
+ // init the {http://wsdmdemo.org/service/weather-station}Humidity Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.HUMIDITY);
+ org.wsdmdemo.service.weatherStation.HumidityDocument prop_humidity = org.wsdmdemo.service.weatherStation.HumidityDocument.Factory.newInstance();
+ // TODO: Initialize the prop_humidity by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_humidity);
+
+
+ // init the {http://wsdmdemo.org/service/weather-station}Price Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.PRICE);
+ org.wsdmdemo.service.weatherStation.PriceDocument prop_price = org.wsdmdemo.service.weatherStation.PriceDocument.Factory.newInstance();
+ // TODO: Initialize the prop_price by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ 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(Weather-stationPropertyQNames.OPERATIONALSTATUS);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument prop_operationalstatus = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument.Factory.newInstance();
+ // TODO: Initialize the prop_operationalstatus by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_operationalstatus);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-stationPropertyQNames.RELATIONSHIP);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
+ // TODO: Initialize the prop_relationship by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_relationship);
+
+
+ }
+ 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.
+
+
+
+
+ /**
+ * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+ *
+ * </br>
+ * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
+ * </br>
+ * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+ * </br>
+ * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
+ * Concrete dialect.
+ * </br>
+ *
+ * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+ *
+ * @param topicSpaceSet
+ * @param propSet
+ */
+ org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet() , getResourcePropertySet());
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-stationService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,65 @@
+package org.wsdmdemo.service.weatherStation;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+
+import javax.xml.rpc.JAXRPCException;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * 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 Weather-stationService
+ extends AbstractWeather-stationService
+ implements Weather-stationCustomOperationsPortType
+{
+
+
+ /**
+ * 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 Weather-stationService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public Weather-stationService( 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();
+ //TODO implement method and populate the response object
+ return responseDocument;
+ }
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_deploy.wsdd?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_deploy.wsdd (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_deploy.wsdd Thu May 26 08:45:57 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!-- **** 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="weather-station" provider="java:WSRF" style="document" use="literal">
+
+ <wsdlFile>/wsdl/weather-station.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/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_jndi-config.xml?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_jndi-config.xml (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStation/Weather-station_jndi-config.xml Thu May 26 08:45:57 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+
+<!-- **** WARNING: This file will be overwritten during generation **** -->
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+ <service name="weather-station">
+ <resource name="home" type="org.wsdmdemo.service.weatherStation.Weather-stationHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.Weather-stationService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherStation.Weather-stationResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-station</value>
+ </parameter>
+
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://wsdmdemo.org/service/weather-station}ResourceIdentifier</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
+
+</jndiConfig>
+
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,148 @@
+
+package org.wsdmdemo.service.weatherStationDir;
+
+import org.apache.ws.addressing.EndpointReference;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * An abstract Weather-station-dir WS-Resource.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ */
+public abstract class AbstractWeather-station-dirResource implements org.apache.ws.resource.PropertiesResource, org.apache.ws.notification.base.NotificationProducerResource {
+
+ /**
+ * The resource ID of the instance.
+ */
+ protected String m_id;
+
+ /** The EndpointReference for this resource **/
+ protected EndpointReference m_endpointReference;
+
+ /**
+ * The set of properties associated with this resource.
+ */
+ protected org.apache.ws.resource.properties.ResourcePropertySet m_propSet;
+
+
+ /**
+ * 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()
+ {
+
+ org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument propsDoc = org.wsdmdemo.service.weatherStationDir.WeatherStationDirectoryResourcePropertiesDocument.Factory.newInstance();
+ m_propSet = new org.apache.ws.resource.properties.impl.XmlBeansResourcePropertySet( propsDoc );
+
+
+ //init the RelationshipsProperties Resource for sending Relationship events...NOTE: THIS DOES NOT REGISTER THE TOPICS
+ org.apache.ws.muws.MuwsUtils.updateRelationshipResourceProperty(m_propSet, this);
+
+
+ }
+
+ /**
+ * Returns the EndpointReference associated with this Resource.
+ *
+ * @return The Resource's EndpointReference or null if the EndpointReference has not been set.
+ *
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
+ public EndpointReference getEndpointReference()
+ {
+ return m_endpointReference;
+ }
+
+ /**
+ * Sets the EndpointReference associated with this Resource.
+ *
+ * @param epr The Resource's EndpointReference.
+ *
+ * Note: It is the responsibility of the Resource creator to set the EndpointReference (i.e. ResourceHome impl)
+ */
+ public void setEndpointReference(EndpointReference epr)
+ {
+ m_endpointReference = epr;
+ }
+
+
+ /**
+ * @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;
+ }
+ org.apache.ws.notification.topics.TopicSpaceSet m_topicSpaceSet = new org.apache.ws.notification.topics.impl.TopicSpaceSetImpl(true);
+
+ public org.apache.ws.notification.topics.TopicSpaceSet getTopicSpaceSet()
+ {
+ return m_topicSpaceSet;
+ }
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/AbstractWeather-station-dirService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,146 @@
+
+package org.wsdmdemo.service.weatherStationDir;
+
+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.AbstractPortType;
+import org.apache.ws.resource.handler.ServiceSoapMethodNameMap;
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * 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 AbstractWeather-station-dirService 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, org.apache.ws.muws.v1_0.capability.RelationshipsCapability {
+
+ public static final String TARGET_NSURI = "http://wsdmdemo.org/service/weather-station-dir";
+ public static final String TARGET_NSPREFIX = "weather-station-dir";
+
+ /**
+ * DOCUMENT_ME
+ */
+ private ServiceSoapMethodNameMap m_methodNameMap;
+
+ /**
+ * DOCUMENT_ME
+ */
+ private boolean m_isInitialized;
+
+ public AbstractWeather-station-dirService( 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-dir}RemoveWeatherStation") , "RemoveWeatherStation" );
+ m_methodNameMap.addMapping( javax.xml.namespace.QName.valueOf("{http://wsdmdemo.org/service/weather-station-dir}AddWeatherStation") , "AddWeatherStation" );
+ 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 );
+ }
+
+
+
+org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeResponseDocument queryRelationshipsByType( org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.QueryRelationshipsByTypeDocument requestDoc )
+{
+ return new org.apache.ws.muws.v1_0.capability.impl.RelationshipsCapabilityImpl( getResourceContext( ) ).queryRelationshipsByType( requestDoc );
+}
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirCustomOperationsPortType.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirCustomOperationsPortType.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirCustomOperationsPortType.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirCustomOperationsPortType.java Thu May 26 08:45:57 2005
@@ -0,0 +1,18 @@
+
+package org.wsdmdemo.service.weatherStationDir;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * Custom operations portType.
+ *
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-station-dirCustomOperationsPortType
+{
+
+ public org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument RemoveWeatherStation( org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationDocument requestDoc ) ;
+ public org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument AddWeatherStation( org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument requestDoc ) ;
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirHome.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirHome.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirHome.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirHome.java Thu May 26 08:45:57 2005
@@ -0,0 +1,115 @@
+
+package org.wsdmdemo.service.weatherStationDir;
+
+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.addressing.EndpointReference;
+
+import javax.xml.namespace.QName;
+
+import java.io.Serializable;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * Home for Weather-station-dir WS-Resources.
+ */
+public class Weather-station-dirHome
+ extends AbstractResourceHome
+ 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-dir}weather-station-dir");
+
+ /** 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-dir}WeatherStationDirectoryPortType");
+
+ /** The WSDL Port name associated with the resource. This is useful for building EPR's. **/
+ public static final String PORT_NAME = "weather-station-dir";
+
+ /** 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-dir}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 String HOME_LOCATION =
+ org.apache.ws.resource.JndiConstants.CONTEXT_NAME_SERVICES + "/" + SERVICE_NAME.getLocalPart() + "/" + org.apache.ws.resource.JndiConstants.ATOMIC_NAME_HOME;
+
+ /**
+ *
+ * @param resourceContext
+ *
+ * @return A Resource
+ *
+ * @throws ResourceException
+ * @throws ResourceContextException
+ * @throws ResourceUnknownException
+ */
+ public Resource getInstance( ResourceContext resourceContext )
+ throws ResourceException,
+ ResourceContextException,
+ ResourceUnknownException
+ {
+ ResourceKey key = resourceContext.getResourceKey();
+ Resource resource = null;
+ try
+ {
+ resource = find( key ); //attempt to find from the underlying cache
+ }
+ catch ( ResourceException re )
+ {
+ //TODO add any checking for key validity if you plan to create instances here
+
+ /**
+ * Commented below is an example of creating a resource instance, adding its epr and adding to the cache.
+ * Note: You can set the EndpointReference on your Resource using the setter (not in Resource interface)
+ */
+
+ /*
+ try
+ {
+ Weather-station-dirResource myresource = (Weather-station-dirResource)createInstance(key); //this will create the resource IF it is has default constructor. It also calls init() on the resource.
+ //the next line will create an EPR
+ EndpointReference epr = getEndpointReference(resourceContext.getBaseURL( ) + "/" + getServiceName().getLocalPart() , key, SPEC_NAMESPACE_SET.getAddressingNamespace());
+ myresource.setEndpointReference(epr); //make sure to set the EPR on your new instance
+ add(key, myresource); //make sure to add your instance to the underlying cache to be found in future requests using find(..)
+ }
+ catch (Exception e)
+ {
+ throw new ResourceException(e);
+ }
+ */
+
+ }
+ return resource;
+ }
+
+ 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;
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirPropertyQNames.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirPropertyQNames.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirPropertyQNames.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirPropertyQNames.java Thu May 26 08:45:57 2005
@@ -0,0 +1,29 @@
+package org.wsdmdemo.service.weatherStationDir;
+
+import javax.xml.namespace.QName;
+
+/**
+ * **** WARNING: This file will be overwritten during generation ****
+ *
+ * QNames of the resource properties defined by Weather-station-dir WSDL.
+ * <p/>
+ * NOTE: This class is generated and is NOT meant to be modified.
+ *
+ */
+public interface Weather-station-dirPropertyQNames
+{
+
+ QName MANAGEABILITYCAPABILITY =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd", "ManageabilityCapability", "muws-p1-xs");
+ 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 FIXEDTOPICSET =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "FixedTopicSet", "wsnt");
+ QName RELATIONSHIP =
+ new QName( "http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd", "Relationship", "muws-p2-xs");
+ QName TOPIC =
+ new QName( "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "Topic", "wsnt");
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirResource.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirResource.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirResource.java Thu May 26 08:45:57 2005
@@ -0,0 +1,90 @@
+
+package org.wsdmdemo.service.weatherStationDir;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * A Weather-station-dir WS-Resource.
+ * <p/>
+ * NOTE: This class is generated but IS meant to be modified.
+ */
+public class Weather-station-dirResource extends AbstractWeather-station-dirResource
+
+{
+
+ /**
+ * 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{
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ManageabilityCapability Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-station-dirPropertyQNames.MANAGEABILITYCAPABILITY);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument prop_manageabilitycapability = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+ // TODO: Initialize the prop_manageabilitycapability by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_manageabilitycapability);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-station-dirPropertyQNames.RESOURCEID);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument prop_resourceid = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ResourceIdDocument.Factory.newInstance();
+ // TODO: Initialize the prop_resourceid by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_resourceid);
+
+
+ // init the {http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship Resource Property
+ resourceProperty = resourcePropertySet.get(Weather-station-dirPropertyQNames.RELATIONSHIP);
+ org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument prop_relationship = org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
+ // TODO: Initialize the prop_relationship by calling its operations.
+ //also could call resourceProperty.setCallback(...); to add a custom callback object for this property
+ resourceProperty.add(prop_relationship);
+
+
+ }
+ 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.
+
+
+
+
+ /**
+ * Initializes the Topic, TopicExpressionDialects and FixedTopicSet resource properties
+ *
+ * </br>
+ * <strong>NOTE this MUST be called last in the Resource.init() method to ensure all topics get registered</strong>
+ * </br>
+ * FixedTopicSet will be set based on the value returned from the {@see TopicSpaceSet#isFixed()} method.
+ * </br>
+ * Topic will have all root topics in the TopicSpaceSet, set to Simple dialect AND all child topics set ot
+ * Concrete dialect.
+ * </br>
+ *
+ * TopicExpressionDialects will be set to the engine's known Topic Dialects acquired from the TopicExpressionEngine
+ *
+ * @param topicSpaceSet
+ * @param propSet
+ */
+ org.apache.ws.notification.topics.util.TopicUtils.initNotificationProducerProperties(getTopicSpaceSet() , getResourcePropertySet());
+ }
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirService.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirService.java?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirService.java (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dirService.java Thu May 26 08:45:57 2005
@@ -0,0 +1,75 @@
+package org.wsdmdemo.service.weatherStationDir;
+
+import org.apache.ws.resource.ResourceContext;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlException;
+
+import javax.xml.rpc.JAXRPCException;
+
+/**
+ * **** NOTE: This file will not be overwritten during generation ****
+ *
+ * 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 Weather-station-dirService
+ extends AbstractWeather-station-dirService
+ implements Weather-station-dirCustomOperationsPortType
+{
+
+
+ /**
+ * 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 Weather-station-dirService } object.
+ *
+ * @param resourceContext DOCUMENT_ME
+ */
+ public Weather-station-dirService( 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.weatherStationDir.RemoveWeatherStationResponseDocument RemoveWeatherStation( org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationDocument requestDoc )
+ {
+ org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument responseDocument = org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument.Factory.newInstance();
+ org.wsdmdemo.service.weatherStationDir.RemoveWeatherStationResponseDocument.RemoveWeatherStationResponse response = responseDocument.addNewRemoveWeatherStationResponse();
+ //TODO implement method and populate the response object
+ return responseDocument;
+ }
+
+
+
+ public org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument AddWeatherStation( org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument requestDoc )
+ {
+ org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument responseDocument = org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument.Factory.newInstance();
+ org.wsdmdemo.service.weatherStationDir.AddWeatherStationResponseDocument.AddWeatherStationResponse response = responseDocument.addNewAddWeatherStationResponse();
+ //TODO implement method and populate the response object
+ return responseDocument;
+ }
+
+
+
+}
Added: incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_deploy.wsdd
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_deploy.wsdd?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_deploy.wsdd (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_deploy.wsdd Thu May 26 08:45:57 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!-- **** 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="weather-station-dir" provider="java:WSRF" style="document" use="literal">
+
+ <wsdlFile>/wsdl/weather-station-dir.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/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_jndi-config.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_jndi-config.xml?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_jndi-config.xml (added)
+++ incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/Weather-station-dir_jndi-config.xml Thu May 26 08:45:57 2005
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+
+<!-- **** WARNING: This file will be overwritten during generation **** -->
+
+<jndiConfig xmlns="http://www.apache.org/wsfx/wsrf/jndi/config">
+
+ <service name="weather-station-dir">
+ <resource name="home" type="org.wsdmdemo.service.weatherStationDir.Weather-station-dirHome">
+ <resourceParams>
+ <parameter>
+ <name>serviceClassName</name>
+ <value>org.wsdmdemo.service.weatherStationDir.Weather-station-dirService</value>
+ </parameter>
+ <parameter>
+ <name>resourceClassName</name>
+ <value>org.wsdmdemo.service.weatherStationDir.Weather-station-dirResource</value>
+ </parameter>
+ <parameter>
+ <name>wsdlTargetNamespace</name>
+ <value>http://wsdmdemo.org/service/weather-station-dir</value>
+ </parameter>
+
+ <parameter>
+ <name>resourceKeyName</name>
+ <value>{http://wsdmdemo.org/service/weather-station-dir}ResourceIdentifier</value>
+ </parameter>
+
+
+ </resourceParams>
+ </resource>
+ </service>
+
+</jndiConfig>
+
Added: incubator/muse/trunk/src/ieeedemo/test-build.properties
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/test-build.properties?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/test-build.properties (added)
+++ incubator/muse/trunk/src/ieeedemo/test-build.properties Thu May 26 08:45:57 2005
@@ -0,0 +1,35 @@
+
+##
+# Determines if the unit test will run an embedded version of Axis
+# to load the server and handle requests
+#
+# ***NOTE: To test an external endpoint this should be set to false
+##################################################
+runAxis=false
+
+
+##
+# Determines if wrapped notifications should be subscribed-to and expected.
+#
+# Spec Default is true
+##################################################
+wrapped_notifications=true
+
+
+
+##
+# Resource EPRs for the Resources of the Interop
+#
+#
+##################################################
+#server acts
+ipmi_server.epr=http://cvs.apache.org/~ips/interop/ipmi_server-epr.xml
+
+
+#small device acts
+blackberry.epr=http://cvs.apache.org/~ips/interop/blackberry-epr.xml
+
+
+#web service management
+weather_station.epr=http://people.apache.org/~ips/interop/weather_station-epr.xml
+weather_station_2.epr=http://people.apache.org/~ips/interop/weather_station_2-epr.xml
\ No newline at end of file
Added: incubator/muse/trunk/src/ieeedemo/test.xml
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/test.xml?rev=178646&view=auto
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/test.xml (added)
+++ incubator/muse/trunk/src/ieeedemo/test.xml Thu May 26 08:45:57 2005
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+
+<project name="interop_testfile" default="usage" basedir=".">
+
+ <property environment="env" />
+ <property file="build.properties" />
+ <property file="test-build.properties" />
+
+ <property name="jar.dir" location="${basedir}\lib" />
+ <property name="test.classes.dir" location="${basedir}\test-classes" />
+ <property name="test.dir" location="${basedir}\src\test" />
+ <property name="test.reports.dir" location="${basedir}\test-reports" />
+
+
+
+ <target name="init" unless="muse.classpath">
+
+ <fail message="Please set the location of the wsdm.webapp.dir in build.properties" unless="wsdm.webapp.dir" />
+ <echo>Using webapp dir: ${wsdm.webapp.dir}</echo>
+
+ <path id="muse.classpath.id">
+ <pathelement location="${basedir}/classes" />
+ <pathelement location="${wsdm.webapp.dir}/WEB-INF/classes" />
+ <fileset dir="${wsdm.webapp.dir}/WEB-INF/lib" includes="*.jar" />
+ <fileset dir="${jar.dir}" />
+ <pathelement location="${activation.jar}" />
+ <pathelement location="${mail.jar}" />
+ </path>
+ <property name="muse.classpath" refid="muse.classpath.id" />
+ <mkdir dir="${test.reports.dir}" />
+ </target>
+
+
+ <target name="server" depends="compile-tests" description="Runs a complete WSDM Interop set of Acts">
+ <junit fork="no" printsummary="yes" haltonfailure="no">
+ <classpath>
+ <pathelement location="${test.classes.dir}"/>
+ <pathelement path="${muse.classpath}"/>
+ </classpath>
+ <formatter type="plain"/>
+ <test name="org.apache.ws.muws.interop.client.ServerMgmtTestCase" todir="${test.reports.dir}">
+ <formatter type="xml"/>
+ </test>
+ </junit>
+ </target>
+
+ <target name="small" depends="compile-tests" description="Runs a complete WSDM Interop set of Acts">
+ <junit fork="no" printsummary="yes" haltonfailure="no">
+ <classpath>
+ <pathelement location="${test.classes.dir}"/>
+ <pathelement path="${muse.classpath}"/>
+ </classpath>
+ <formatter type="plain"/>
+ <test name="org.apache.ws.muws.interop.client.SmallDeviceMgmtTestCase" todir="${test.reports.dir}">
+ <formatter type="xml"/>
+ </test>
+ </junit>
+ </target>
+
+ <target name="ws" depends="compile-tests" description="Runs a complete WSDM Interop set of Acts">
+ <junit fork="no" printsummary="yes" haltonfailure="no">
+ <sysproperty key="runAxis" value="${runAxis}"/>
+ <classpath>
+ <pathelement location="${test.classes.dir}"/>
+ <pathelement path="${muse.classpath}"/>
+ </classpath>
+ <formatter type="plain"/>
+ <test name="org.apache.ws.muws.interop.client.WebServicesMgmtTestCase" todir="${test.reports.dir}">
+ <formatter type="xml"/>
+ </test>
+ </junit>
+ </target>
+
+
+ <target name="compile-tests" depends="init" unless="tests.compiled">
+ <mkdir dir="${test.classes.dir}" />
+ <javac srcdir="${test.dir}"
+ destdir="${test.classes.dir}"
+ classpathref="muse.classpath.id"
+ debug="on"
+ />
+ <copy todir="${test.classes.dir}">
+ <fileset dir="${test.dir}" excludes="**/*.java,**/package.html" />
+ </copy>
+ <property name="tests.compiled" value="true" />
+ </target>
+
+ <target name="usage">
+ <java classname="org.apache.tools.ant.Main">
+ <arg value="-buildfile" />
+ <arg value="${ant.file}" />
+ <arg value="-projecthelp" />
+ </java>
+ </target>
+
+ <target name="clean" description="delete the class files and generated reports">
+ <delete dir="${test.classes.dir}" />
+ <delete dir="${test.reports.dir}" />
+ </target>
+
+</project>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org