Author: scamp
Date: Tue Jun  7 13:50:06 2005
New Revision: 188862

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

Modified:
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropRequestUtils.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/WeatherStationDirHome.java
    
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropRequestUtils.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropRequestUtils.java?rev=188862&r1=188861&r2=188862&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropRequestUtils.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/InteropRequestUtils.java
 Tue Jun  7 13:50:06 2005
@@ -2,6 +2,7 @@
 
 import org.apache.axis.message.addressing.Constants;
 import org.apache.ws.XmlObjectWrapper;
+import org.apache.ws.resource.properties.ResourceProperty;
 import org.apache.ws.addressing.EndpointReference;
 import org.apache.ws.addressing.XmlBeansEndpointReference;
 import org.apache.ws.muws.v1_0.capability.IdentityCapability;
@@ -195,4 +196,5 @@
         }
         return relationshipType;
     }
+   
 }

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=188862&r1=188861&r2=188862&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
 Tue Jun  7 13:50:06 2005
@@ -19,14 +19,10 @@
 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.InteropRequestUtils;
 import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
@@ -230,20 +226,7 @@
 
             //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();
-            }
+            RelationshipType relationshipType = 
InteropRequestUtils.createRelationshipType(relationshipDocument.addNewRelationship());
 
             //add self as a participant
             RelationshipParticipantType parentRelationshipParticipantType = 
relationshipType.addNewParticipant();
@@ -261,6 +244,7 @@
             
childRelationshipParticipantType.setRole(InteropConstants.CHILD_RELATION);//uri
             
childRelationshipParticipantType.setManageabilityEndpointReferenceArray(new 
EndpointReferenceType[]{weatherStationEpr});
 
+            resourceProperty.clear();            
             resourceProperty.add(relationshipDocument);
 
         }

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java?rev=188862&r1=188861&r2=188862&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirHome.java
 Tue Jun  7 13:50:06 2005
@@ -52,6 +52,7 @@
 
     public WeatherStationDirResource m_resource;
 
+
     /**
      * @param resourceContext
      * @return A Resource

Modified: 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java
URL: 
http://svn.apache.org/viewcvs/incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java?rev=188862&r1=188861&r2=188862&view=diff
==============================================================================
--- 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java
 (original)
+++ 
incubator/muse/trunk/src/ieeedemo/src/java/org/wsdmdemo/service/weatherStationDir/WeatherStationDirService.java
 Tue Jun  7 13:50:06 2005
@@ -112,12 +112,10 @@
 
         //define a relationship
         RelationshipDocument relationshipDocument = 
RelationshipDocument.Factory.newInstance();
-        RelationshipType relationshipType = 
relationshipDocument.addNewRelationship();
 
 
         //define the relationship type
-        relationshipType = relationshipDocument.addNewRelationship();
-        InteropRequestUtils.createRelationshipType(relationshipType);
+        RelationshipType relationshipType = 
InteropRequestUtils.createRelationshipType(relationshipDocument.addNewRelationship());
 
 
         //add self as a participant



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

Reply via email to