cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r529786 - in /incubator/cxf/trunk/rt/core/src: main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
Date Tue, 17 Apr 2007 22:03:40 GMT
Author: dkulp
Date: Tue Apr 17 15:03:39 2007
New Revision: 529786

URL: http://svn.apache.org/viewvc?view=rev&rev=529786
Log:
Fix for Guillaume's issue with unwrapped part names not being written as qualified when they
should be

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
    incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?view=diff&rev=529786&r1=529785&r2=529786
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
Tue Apr 17 15:03:39 2007
@@ -721,6 +721,7 @@
                 if (el.getSchemaTypeName() != null) {
                     MessagePartInfo mpi = wrapper.addMessagePart(new QName(namespaceURI,
el.getName()));
                     mpi.setTypeQName(el.getSchemaTypeName());
+                    mpi.setConcreteName(el.getQName());
                     mpi.setXmlSchema(el);
                 } else if (el.getRefName() != null) {
                     MessagePartInfo mpi = wrapper.addMessagePart(el.getRefName());

Modified: incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java?view=diff&rev=529786&r1=529785&r2=529786
==============================================================================
--- incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
(original)
+++ incubator/cxf/trunk/rt/core/src/test/java/org/apache/cxf/wsdl11/WSDLServiceBuilderTest.java
Tue Apr 17 15:03:39 2007
@@ -244,6 +244,8 @@
         assertNotNull(greetMeOneWayUnwrapped.getInput());
         assertNull(greetMeOneWayUnwrapped.getOutput());
         assertEquals("wrapped part not set", 1, greetMeOneWayUnwrapped.getInput().size());
+        assertEquals(new QName("http://apache.org/hello_world_soap_http/types", "requestType"),
+                     greetMeOneWayUnwrapped.getInput().getMessagePartByIndex(0).getConcreteName());
 
         name = new QName(serviceInfo.getName().getNamespaceURI(), "pingMe");
         OperationInfo pingMe = serviceInfo.getInterface().getOperation(name);



Mime
View raw message