Author: scamp
Date: Tue Feb  1 07:28:18 2005
New Revision: 149406

URL: http://svn.apache.org/viewcvs?view=rev&rev=149406
Log:
updated for subscriptions

Modified:
    
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/impl/SubscriptionHome.java
    
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/v1_2/porttype/impl/NotificationProducerPortTypeImpl.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=149405&r2=149406
==============================================================================
--- 
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:28:18 2005
@@ -28,6 +28,8 @@
 import org.apache.ws.notification.base.Subscription;
 import org.apache.ws.notification.topics.TopicExpression;
 import org.apache.ws.util.XmlBeanUtils;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlCursor;
 import org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
 import org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument;
 import org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI;
@@ -115,7 +117,10 @@
         address.setStringValue( subscriptionAddress );
         // TODO: set portType and serviceName! (read from config file)
         ReferencePropertiesType refProps = epr.addNewReferenceProperties();
-        XmlBeanUtils.addChildElement( refProps, resourceKey.getName() );
+       XmlObject xmlObject = XmlBeanUtils.addChildElement( refProps, 
resourceKey.getName() );
+       XmlCursor xmlCursor = xmlObject.newCursor();
+       xmlCursor.setTextValue(resourceKey.getValue().toString());
+       xmlCursor.dispose();
         return epr;
     }
 }

Modified: 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/v1_2/porttype/impl/NotificationProducerPortTypeImpl.java
URL: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/base/v1_2/porttype/impl/NotificationProducerPortTypeImpl.java?view=diff&r1=149405&r2=149406
==============================================================================
--- 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/v1_2/porttype/impl/NotificationProducerPortTypeImpl.java
 (original)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/v1_2/porttype/impl/NotificationProducerPortTypeImpl.java
 Tue Feb  1 07:28:18 2005
@@ -134,6 +134,7 @@
         SubscribeResponseDocument subscribeResponseDocument = 
SubscribeResponseDocument.Factory.newInstance();
         SubscribeResponseDocument.SubscribeResponse subscribeResponse = 
subscribeResponseDocument.addNewSubscribeResponse();
         subscribeResponse.setSubscriptionReference( epr);
+
         return subscribeResponseDocument;
     }
 



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

Reply via email to