You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pubscribe-dev@ws.apache.org by sc...@apache.org on 2005/02/01 16:31:17 UTC

svn commit: r149407 - incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java

Author: scamp
Date: Tue Feb  1 07:31:16 2005
New Revision: 149407

URL: http://svn.apache.org/viewcvs?view=rev&rev=149407
Log:
updated the address

Modified:
    incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java

Modified: incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java
URL: http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java?view=diff&r1=149406&r2=149407
==============================================================================
--- incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java (original)
+++ incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java Tue Feb  1 07:31:16 2005
@@ -108,7 +108,7 @@
     }
    public EndpointReferenceType getEPR( ResourceKey resourceKey, EndpointReferenceType producerReference )
     {
-        String producerAddress = producerReference.getAddress().toString();
+        String producerAddress = producerReference.getAddress().getStringValue();
         String subscriptionAddress = producerAddress.substring( 0, producerAddress.lastIndexOf( "/") + 1) + SERVICE_NAME;
 
         EndpointReferenceDocument eprDoc = EndpointReferenceDocument.Factory.newInstance();
@@ -117,6 +117,7 @@
         address.setStringValue( subscriptionAddress );
         // TODO: set portType and serviceName! (read from config file)
         ReferencePropertiesType refProps = epr.addNewReferenceProperties();
+       
        XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, resourceKey.getName() );
        XmlCursor xmlCursor = xmlObject.newCursor();
        xmlCursor.setTextValue(resourceKey.getValue().toString());



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