Author: richard.opalka(a)jboss.com
Date: 2010-09-07 06:44:38 -0400 (Tue, 07 Sep 2010)
New Revision: 12919
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/epr/NativeEndpointReferenceTestCase.java
Log:
[JBWS-3119] fixing EndpointName WSA EPR serialization
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/epr/NativeEndpointReferenceTestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/epr/NativeEndpointReferenceTestCase.java 2010-09-07
09:45:37 UTC (rev 12918)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/epr/NativeEndpointReferenceTestCase.java 2010-09-07
10:44:38 UTC (rev 12919)
@@ -59,7 +59,7 @@
" <ns2:param2 wsa:IsReferenceParameter='true'
xmlns:ns2='http://helloservice.org/param2'
xmlns:wsa='http://www.w3.org/2005/08/addressing'>World</ns2...
+
" </ReferenceParameters>" +
" <Metadata
wsdli:wsdlLocation='http://helloservice.org/wsdl
http://localhost:8080/hello?wsdl'
xmlns:wsdli='http://www.w3.org/ns/wsdl-instance'>" +
- " <wsam:ServiceName EndpointName='myns:HelloPort'
xmlns:myns='http://helloservice.org/wsdl'
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>myn...
+
+ " <wsam:ServiceName EndpointName='HelloPort'
xmlns:myns='http://helloservice.org/wsdl'
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>myn...
+
" <wsam:InterfaceName
xmlns:myns='http://helloservice.org/wsdl'
xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>myn...
+
" </Metadata>" +
"</EndpointReference>";
@@ -102,7 +102,7 @@
assertEquals("wrong text content in ServiceName element",
"myns:HelloService", DOMUtils.getTextContent(serviceNameElement));
String endpointNameValue = DOMUtils.getAttributeValue(serviceNameElement,
"EndpointName");
assertNotNull("cannot find endpointName attribute value",
endpointNameValue);
- assertEquals("wrong endpointName attribute value", endpointNameValue,
"myns:HelloPort");
+ assertEquals("wrong endpointName attribute value", endpointNameValue,
"HelloPort");
Element interfaceNameElement =
(Element)DOMUtils.getFirstChildElement(metadataElement, WSAM_INTERFACE_QNAME);
assertNamespaces(interfaceNameElement);
assertEquals("wrong text content in InterfaceName element",
"myns:Hello", DOMUtils.getTextContent(interfaceNameElement));