[jbossws-commits] JBossWS SVN: r12907 - stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/wsaddressing.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Sep 6 09:42:16 EDT 2010


Author: richard.opalka at jboss.com
Date: 2010-09-06 09:42:16 -0400 (Mon, 06 Sep 2010)
New Revision: 12907

Modified:
   stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/wsaddressing/NativeEndpointReference.java
Log:
[JBWS-3119] fixing EndpointName WSA EPR serialization

Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/wsaddressing/NativeEndpointReference.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/wsaddressing/NativeEndpointReference.java	2010-09-06 12:38:44 UTC (rev 12906)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/wsaddressing/NativeEndpointReference.java	2010-09-06 13:42:16 UTC (rev 12907)
@@ -152,7 +152,11 @@
                         String endpointName = e.getAttribute(ENDPOINT_ATTRIBUTE); 
                         if (endpointName != null)
                         {
-                           this.endpointName = this.getQName(e, endpointName);
+                           this.endpointName = new QName(
+                              this.serviceName.getNamespaceURI(),
+                              endpointName,
+                              this.serviceName.getPrefix()
+                           );
                         }
                      }
                      if (e.getLocalName().equals(INTERFACE_QNAME.getLocalPart()))
@@ -341,7 +345,7 @@
    {
       if (this.endpointName != null && this.serviceNameElement != null)
       {
-         this.serviceNameElement.setAttribute(ENDPOINT_ATTRIBUTE, this.toString(this.endpointName));
+         this.serviceNameElement.setAttribute(ENDPOINT_ATTRIBUTE, this.endpointName.getLocalPart());
          
          if (this.wsdlLocation != null)
          {



More information about the jbossws-commits mailing list