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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to