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/03/29 18:44:48 UTC

svn commit: r159395 - incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java

Author: scamp
Date: Tue Mar 29 08:44:48 2005
New Revision: 159395

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


Modified:
    incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java

Modified: incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java
URL: http://svn.apache.org/viewcvs/incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java?view=diff&r1=159394&r2=159395
==============================================================================
--- incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java (original)
+++ incubator/muse/trunk/src/site/content/interop/src/java/org/everestWeather/wsdm/samples/x2005/x04/schema/WeatherstationResource.java Tue Mar 29 08:44:48 2005
@@ -45,6 +45,8 @@
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.StateTransitionType;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmMuwsPart2.StateType;
 import org.oasisOpen.docs.wsdm.x2004.x12.muws.wsdmPbm.MatchDocument;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType;
+import org.xmlsoap.schemas.ws.x2004.x08.addressing.AttributedURI;
 
 import java.math.BigDecimal;
 import java.math.BigInteger;
@@ -240,15 +242,17 @@
         /*----------------- MOWS EndpointIdentification props -----------------*/
         resourceProperty = resourcePropertySet.get( WeatherstationPropertyQNames.ENDPOINTREFERENCE );
         EndpointReferenceDocument endpointReferenceDocument = EndpointReferenceDocument.Factory.newInstance();
-        endpointReferenceDocument.addNewEndpointReference();//temporary
-        //endpointReferenceDocument.setEndpointReference(null);//todo need the epr
+        EndpointReferenceType endpointReferenceType = endpointReferenceDocument.addNewEndpointReference();//temporary
+        AttributedURI attributedURI = endpointReferenceType.addNewAddress();
+        attributedURI.setStringValue("http://localhost:8080/muse/services/blackberry");
+        //endpointReferenceDocument.setEndpointReference(null);//todo need the real epr for interop
         resourceProperty.add( endpointReferenceDocument );
         resourceProperty.addChangeListener( mowsIdentificationCapability );
 
         resourceProperty = resourcePropertySet.get( WeatherstationPropertyQNames.ENDPOINTDESCRIPTIONS );
         EndpointDescriptionsDocument endpointDescriptionsDocument = EndpointDescriptionsDocument.Factory.newInstance();
         EndpointDescriptionsDocument.EndpointDescriptions endpointDescriptions = endpointDescriptionsDocument.addNewEndpointDescriptions();
-        endpointDescriptions.addDescription( "Something which is being managed....." );
+        endpointDescriptions.addDescription( "http://localhost:8080/muse/services/blackberry?wsdl" );
         resourceProperty.add( endpointDescriptionsDocument );
         resourceProperty.addChangeListener( mowsIdentificationCapability );
 
@@ -256,7 +260,7 @@
         resourceProperty = resourcePropertySet.get( WeatherstationPropertyQNames.NUMBEROFREQUESTS );
         NumberOfRequestsDocument numberOfRequestsDocument = NumberOfRequestsDocument.Factory.newInstance();
         IntegerCounter integerCounter = numberOfRequestsDocument.addNewNumberOfRequests();
-        //integerCounter.setDuration(new GDuration( )); //todo what is this?!?
+        //integerCounter.setDuration(new GDuration( ));
         integerCounter.setBigIntegerValue( BigInteger.valueOf( 120L ) );
         resourceProperty.add( numberOfRequestsDocument );
         resourceProperty.addChangeListener( mowsMetricsCapability );



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org