Author: scamp
Date: Fri Jun  3 15:08:34 2005
New Revision: 179901

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

Modified:
    incubator/muse/trunk/src/ieeedemo/lib/weather-client-config-xbeans.jar
    incubator/muse/trunk/src/ieeedemo/lib/weather-station-dir-xbeans.jar
    incubator/muse/trunk/src/ieeedemo/lib/weather-station-xbeans.jar
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java
    incubator/muse/trunk/src/ieeedemo/src/test/IEEEDemoTest.java

Modified: incubator/muse/trunk/src/ieeedemo/lib/weather-client-config-xbeans.jar
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/lib/weather-client-config-xbeans.jar?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/muse/trunk/src/ieeedemo/lib/weather-station-dir-xbeans.jar
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/lib/weather-station-dir-xbeans.jar?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
Binary files - no diff available.

Modified: incubator/muse/trunk/src/ieeedemo/lib/weather-station-xbeans.jar
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/lib/weather-station-xbeans.jar?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
Binary files - no diff available.

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigResource.java
 Fri Jun  3 15:08:34 2005
@@ -94,6 +94,9 @@
         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);
+
     }
 
     /**

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/AbstractWeatherClientConfigService.java
 Fri Jun  3 15:08:34 2005
@@ -16,7 +16,7 @@
  * NOTE: This class is generated and is NOT meant to be modified.
  */
 public abstract class AbstractWeatherClientConfigService extends 
AbstractPortType
-        implements org.apache.ws.resource.handler.WsrfService, 
org.apache.ws.resource.properties.v2004_06.porttype.SetResourcePropertiesPortType,
 
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.SetResourcePropertiesPortType,
 
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-client-config";;
@@ -139,5 +139,9 @@
         return new 
org.apache.ws.notification.base.v2004_06.porttype.impl.NotificationProducerPortTypeImpl(getResourceContext()).getCurrentMessage(requestDoc);
     }
 
+    public 
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 );
+    }
 
 }

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigPropertyQNames.java
 Fri Jun  3 15:08:34 2005
@@ -26,6 +26,8 @@
             new 
QName("http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd";, 
"OperationalStatus", "muws-p2-xs");
     QName WEATHERDATAREFRESHINTERVAL =
             new QName("http://wsdmdemo.org/service/weather-client-config";, 
"WeatherDataRefreshInterval", "tns");
+    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");
 

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherClientConfig/WeatherClientConfigResource.java
 Fri Jun  3 15:08:34 2005
@@ -6,20 +6,34 @@
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
 import 
org.apache.ws.muws.v1_0.capability.ManageabilityCharacteristicsCapability;
 import org.apache.ws.muws.v1_0.capability.OperationalStatusCapability;
+import org.apache.ws.muws.v1_0.capability.RelationshipsCapability;
 import org.apache.ws.muws.v1_0.topics.ManagementEventTopic;
 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.PropertiesResource;
 import org.apache.ws.resource.Resource;
 import org.apache.ws.resource.ResourceException;
 import org.apache.ws.resource.impl.SimpleTypeResourceKey;
+import org.apache.ws.resource.properties.ResourceProperty;
+import org.apache.ws.resource.properties.ResourcePropertySet;
+import org.apache.ws.resource.properties.SetResourcePropertyCallback;
+import org.apache.ws.resource.properties.impl.CallbackFailedException;
+import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlException;
+import org.apache.xmlbeans.XmlObject;
 import 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.OperationalStatusDocument;
+import 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument;
+import 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipParticipantType;
+import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipType;
+import 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipTypeType;
 import org.wsdmdemo.service.InteropConstants;
 import org.wsdmdemo.service.weatherStation.WeatherStationHome;
 import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
 
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
+import javax.xml.namespace.QName;
 
 /**
  * **** NOTE: This file will not be overwritten during generation ****
@@ -28,7 +42,7 @@
  * <p/>
  * NOTE: This class is generated but IS meant to be modified.
  */
-public class WeatherClientConfigResource extends 
AbstractWeatherClientConfigResource
+public class WeatherClientConfigResource extends 
AbstractWeatherClientConfigResource implements SetResourcePropertyCallback
 
 {
 
@@ -73,6 +87,10 @@
             //operational status
             ManagementEventTopic operationalCapability = new 
XmlBeansManagementEventTopicImpl(OperationalStatusCapability.TOPIC_NAME);
             muwsTopicSpace.addTopic(operationalCapability);
+
+            //relationships
+            ManagementEventTopic relationshipCapability = new 
XmlBeansManagementEventTopicImpl(RelationshipsCapability.TOPIC_NAME);
+            muwsTopicSpace.addTopic(relationshipCapability);
             /** END TOPICS **/
 
 
@@ -90,6 +108,11 @@
             
prop_manageabilitycapability.setManageabilityCapability(OperationalStatusCapability.URI);
             resourceProperty.add(prop_manageabilitycapability);
 
+            //relationships
+            prop_manageabilitycapability = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart1.ManageabilityCapabilityDocument.Factory.newInstance();
+            
prop_manageabilitycapability.setManageabilityCapability(RelationshipsCapability.URI);
+            resourceProperty.add(prop_manageabilitycapability);
+
             
resourceProperty.addChangeListener(manageabilityCharacteristicsCapability);
             resourceProperty.add(prop_manageabilitycapability);
             /** END CAPABILITIES **/
@@ -101,6 +124,7 @@
             
org.wsdmdemo.service.weatherClientConfig.WeatherStationReferenceDocument 
prop_weatherstationreference = 
org.wsdmdemo.service.weatherClientConfig.WeatherStationReferenceDocument.Factory.newInstance();
             
prop_weatherstationreference.setWeatherStationReference(getWeatherStationEPR());
             resourceProperty.add(prop_weatherstationreference);
+            resourceProperty.setCallback(this);
 
 
             // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part1.xsd}ResourceId 
Resource Property
@@ -124,6 +148,10 @@
             
prop_operationalstatus.setOperationalStatus(OperationalStatusDocument.OperationalStatus.AVAILABLE);
             resourceProperty.addChangeListener(operationalCapability);
             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(WeatherClientConfigPropertyQNames.RELATIONSHIP);
+            resourceProperty.addChangeListener(relationshipCapability);
             /** END RESOURCE PROPERTIES **/
 
         }
@@ -180,5 +208,103 @@
         Resource resource = home.find(new 
SimpleTypeResourceKey(WeatherStationHome.RESOURCE_KEY_NAME, 
InteropConstants.WS1_KEY));
         //get the 2004 EPR
         return (EndpointReferenceType) ((XmlBeansEndpointReference) 
resource.getEndpointReference()).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
+    }
+
+    /**
+     * Implement this method for handling "delete" on the backend.
+     *
+     * @param propQName
+     * @throws CallbackFailedException An exception if the delete fails on the 
backend
+     *                                 and you want the server to return a 
fault.
+     */
+    public void deleteProperty(QName propQName) throws CallbackFailedException
+    {
+
+    }
+
+    /**
+     * Implement this method for handling "insert" on the backend.
+     *
+     * @param propElems
+     * @throws CallbackFailedException An exception if the insert fails on the 
backend
+     *                                 and you want the server to return a 
fault.
+     */
+    public void insertProperty(Object[] propElems) throws 
CallbackFailedException
+    {
+         if(propElems.length == 1)                //todo CHECK THIS...May 
throw ClassCast..unsure of type...
+         {
+              //get the request epr
+             EndpointReferenceType weatherStationEpr = (EndpointReferenceType) 
propElems[0];
+             ResourcePropertySet resourcePropertySet = ((PropertiesResource) 
this).getResourcePropertySet();
+             ResourceProperty resourceProperty = 
resourcePropertySet.get(WeatherClientConfigPropertyQNames.RELATIONSHIP);
+
+             //define a relationship
+             RelationshipDocument relationshipDocument = 
RelationshipDocument.Factory.newInstance();
+             RelationshipType relationshipType = 
relationshipDocument.addNewRelationship();
+
+             try
+             {
+                 //define the relationship type
+                 relationshipType = relationshipDocument.addNewRelationship();
+                 RelationshipTypeType relationshipTypeType = 
relationshipType.addNewType();
+                 XmlObject relationType = XmlObject.Factory.parse("<" + 
InteropConstants.RELATIONSHIP_RELATION.getPrefix() + ":" + 
InteropConstants.RELATIONSHIP_RELATION.getLocalPart() + " xmlns:" + 
InteropConstants.RELATIONSHIP_RELATION.getPrefix() + "=" + "\"" + 
InteropConstants.RELATIONSHIP_RELATION.getNamespaceURI() + "\" />");
+                 XmlBeanUtils.addChildElement(relationshipTypeType, 
relationType);
+             }
+             catch (XmlException e)
+             {
+                 e.printStackTrace();
+             }
+
+             //add self as a participant
+             RelationshipParticipantType relationshipParticipantType = 
relationshipType.addNewParticipant();
+             XmlBeansEndpointReference xmlEpr = (XmlBeansEndpointReference) 
this.getEndpointReference();
+             EndpointReferenceType configEndpointReferenceType = 
(EndpointReferenceType) 
xmlEpr.getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
+             relationshipParticipantType.setResourceId("urn:" + getID());
+             relationshipParticipantType.setRole("urn://parent");//uri
+             
relationshipParticipantType.setManageabilityEndpointReferenceArray(new 
EndpointReferenceType[]{configEndpointReferenceType});
+
+
+             //add the new ws as the other participant
+             RelationshipParticipantType relationshipParticipantType2 = 
relationshipType.addNewParticipant();
+             //todo barties needs to fix communications
+             // 
relationshipParticipantType2.setResourceId(getResourceId(addedEpr));
+             
relationshipParticipantType2.setResourceId(InteropConstants.WS1_KEY);
+             relationshipParticipantType2.setRole("urn://child");//uri
+             
relationshipParticipantType.setManageabilityEndpointReferenceArray(new 
EndpointReferenceType[]{weatherStationEpr});
+
+             resourceProperty.add(relationshipDocument);
+
+         }
+        else
+         {
+             throw new CallbackFailedException("There was more than one 
reference passed!");
+         }
+    }
+
+    /**
+     * Implement this method for handling "update" on the backend.
+     *
+     * @param propElems
+     * @throws CallbackFailedException An exception if the update fails on the 
backend
+     *                                 and you want the server to return a 
fault.
+     */
+    public void updateProperty(Object[] propElems) throws 
CallbackFailedException
+    {
+
+    }
+
+    /**
+     * This method is called by the all of the WSRP PortType impls, prior
+     * to performing any work, in order to ensure the resource properties
+     * accurately reflect the current state of the managed resource.
+     *
+     * @param prop the property to be refreshed
+     * @return the refreshed property
+     * @throws CallbackFailedException An exception if the refresh fails on 
the backend
+     *                                 and you want the server to return a 
fault instead of the current stored value.
+     */
+    public ResourceProperty refreshProperty(ResourceProperty prop) throws 
CallbackFailedException
+    {
+        return null;
     }
 }

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirResource.java
 Fri Jun  3 15:08:34 2005
@@ -85,9 +85,7 @@
 
             // init the 
{http://docs.oasis-open.org/wsdm/2004/12/muws/wsdm-muws-part2.xsd}Relationship 
Resource Property
             resourceProperty = 
resourcePropertySet.get(WeatherStationDirPropertyQNames.RELATIONSHIP);
-            
//org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument 
prop_relationship = 
org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.RelationshipDocument.Factory.newInstance();
-            resourceProperty.addChangeListener(relationshipCapability);
-            //resourceProperty.add(prop_relationship);
+            resourceProperty.addChangeListener(relationshipCapability);        
    
 
             /** END RESOURCE PROPERTIES **/
         }

Modified: incubator/muse/trunk/src/ieeedemo/src/test/IEEEDemoTest.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/test/IEEEDemoTest.java?rev=179901&r1=179900&r2=179901&view=diff
==============================================================================
--- incubator/muse/trunk/src/ieeedemo/src/test/IEEEDemoTest.java (original)
+++ incubator/muse/trunk/src/ieeedemo/src/test/IEEEDemoTest.java Fri Jun  3 
15:08:34 2005
@@ -1,18 +1,20 @@
 
+import junit.framework.TestCase;
 import org.apache.ws.addressing.XmlBeansEndpointReference;
-import org.apache.ws.util.test.axis.AbstractOneAxisTestCase;
+import org.apache.ws.util.XmlBeanUtils;
 import org.apache.xmlbeans.XmlObject;
 import 
org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.GetResourcePropertyDocument;
-import org.wsdmdemo.service.InteropRequestUtils;
+import 
org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.SetResourcePropertiesDocument;
+import 
org.oasisOpen.docs.wsrf.x2004.x06.wsrfWSResourceProperties12Draft01.UpdateType;
 import org.wsdmdemo.service.InteropConstants;
-import org.wsdmdemo.service.weatherStation.WeatherStationPropertyQNames;
+import org.wsdmdemo.service.InteropRequestUtils;
 import 
org.wsdmdemo.service.weatherClientConfig.WeatherClientConfigPropertyQNames;
+import 
org.wsdmdemo.service.weatherClientConfig.WeatherStationReferenceDocument;
+import org.wsdmdemo.service.weatherStation.WeatherStationPropertyQNames;
 import org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument;
 import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceDocument;
 
 import java.net.URL;
-
-import junit.framework.TestCase;
 /**
  * @author Sal Campana
  */
@@ -24,13 +26,25 @@
 
     public void testDemo() throws Exception
     {
+        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( 
new URL( WEATHER_STATION_1_EPR_URL ) );
+        EndpointReferenceDocument clientConfigEpr = getEndpointReference( new 
URL( WEATHER_STATION_CLIENT_CONFIG_EPR_URL ) );
+
+        //set the weatherstation config prop to ws1 resource
+        SetResourcePropertiesDocument setResourcePropertiesDocument = 
SetResourcePropertiesDocument.Factory.newInstance();
+        SetResourcePropertiesDocument.SetResourceProperties 
setResourceProperties = 
setResourcePropertiesDocument.addNewSetResourceProperties();
+        UpdateType update = UpdateType.Factory.newInstance();
+        WeatherStationReferenceDocument weatherStationReferenceDocument = 
WeatherStationReferenceDocument.Factory.newInstance();
+        
weatherStationReferenceDocument.setWeatherStationReference(weatherStationEprDoc.getEndpointReference());
+        XmlBeanUtils.addChildElement(update,weatherStationReferenceDocument);
+        setResourceProperties.setUpdateArray(new UpdateType[]{update});
+        XmlObject addResponse = 
InteropRequestUtils.sendRequest(setResourcePropertiesDocument,"http://wsdmdemo.org/service/weather-station-dir/SetResourceProperties",new
 XmlBeansEndpointReference(clientConfigEpr.getEndpointReference()));
+
         //addweatherstation
         AddWeatherStationDocument addWeatherStationDocument = 
AddWeatherStationDocument.Factory.newInstance();
         
org.wsdmdemo.service.weatherStationDir.AddWeatherStationDocument.AddWeatherStation
 addWeatherStation = addWeatherStationDocument.addNewAddWeatherStation();
-        EndpointReferenceDocument weatherStationEprDoc = getEndpointReference( 
new URL( WEATHER_STATION_1_EPR_URL ) );
-        EndpointReferenceDocument clientConfigEpr = getEndpointReference( new 
URL( WEATHER_STATION_CLIENT_CONFIG_EPR_URL ) );
+
         
addWeatherStation.setEndpointReference(weatherStationEprDoc.getEndpointReference());
-        XmlObject addResponse = 
InteropRequestUtils.sendRequest(addWeatherStationDocument,"http://wsdmdemo.org/service/weather-station-dir/AddWeatherStation",WEATHER_STATION_DIR_SERVICE_URL);
+        addResponse = 
InteropRequestUtils.sendRequest(addWeatherStationDocument,"http://wsdmdemo.org/service/weather-station-dir/AddWeatherStation",WEATHER_STATION_DIR_SERVICE_URL);
 
         //retrieve the epr for weather station 1 from wc
         GetResourcePropertyDocument getResourcePropertyDocument = 
GetResourcePropertyDocument.Factory.newInstance();



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

Reply via email to