[jbossws-commits] JBossWS SVN: r1387 - in branches/dlofthouse/JBWS-1079/src: main/java/org/jboss/ws/tools main/java/org/jboss/ws/tools/helpers main/java/org/jboss/ws/tools/mapping test/java/org/jboss/test/ws/tools test/java/org/jboss/test/ws/tools/jbws1079 test/resources/tools test/resources/tools/jbws1079

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Sun Nov 5 08:34:11 EST 2006


Author: darran.lofthouse at jboss.com
Date: 2006-11-05 08:34:01 -0500 (Sun, 05 Nov 2006)
New Revision: 1387

Added:
   branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/
   branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/Anonymous.wsdl
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumber.java
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/anonymous-mapping.xml
   branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/wstools-config.xml
Modified:
   branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
   branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
   branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
   branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
Log:
JBWS-1079 - Correct the class name used in the generated jaxrpc mapping when the XML type is anonymous.


Modified: branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -53,7 +53,6 @@
 import org.jboss.ws.metadata.wsdl.WSDLUtils;
 import org.jboss.ws.metadata.wsdl.xsd.SchemaUtils;
 import org.jboss.ws.utils.JavaUtils;
-import org.jboss.xb.binding.sunday.unmarshalling.TypeBinding;
 
 /** Class that converts a XSD Type into Java class
  *  @author <mailto:Anil.Saldhana at jboss.org>Anil Saldhana

Modified: branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -22,9 +22,7 @@
 package org.jboss.ws.tools.helpers;
 
 import java.beans.Introspector;
-import java.util.ArrayList;
 import java.util.HashSet;
-import java.util.List;
 import java.util.Set;
 
 import javax.xml.namespace.QName;
@@ -91,9 +89,7 @@
    private WSDLDefinitions wsdlDefinitions = null;
    private String serviceName = null;
    private String packageName = null;
-   private Class serviceEndpointInterface = null;
-   private String typeNamespace = null;
-
+   
    private Set<String> registeredTypes = new HashSet<String>();
 
    private LiteralTypeMapping typeMapping = null;
@@ -103,18 +99,11 @@
 
    private String parameterStyle;
 
-   /**
-    * A list of types that need java-xml type generation
-    */
-   private List<XSTypeDefinition> queueTypes = new ArrayList<XSTypeDefinition>();
-
    public MappingFileGeneratorHelper(WSDLDefinitions wsdl, String sname, String pname, Class seiClass, String tns, LiteralTypeMapping ltm, String paramStyle)
    {
       this.wsdlDefinitions = wsdl;
       this.serviceName = sname;
-      this.packageName = pname;
-      this.serviceEndpointInterface = seiClass;
-      this.typeNamespace = tns;
+      this.packageName = pname;      
       this.typeMapping = ltm;
 
       this.wsdlStyle = utils.getWSDLStyle(wsdl);
@@ -333,7 +322,7 @@
             {
                WSDLInterfaceOperationInput input = inputs[k];
                XSTypeDefinition xt = getXSType(input);
-               addJavaXMLTypeMap(xt, input.getElement().getLocalPart(), jwm, !isDocStyle());
+               addJavaXMLTypeMap(xt, input.getElement().getLocalPart(), "", jwm, !isDocStyle());
             }
 
             WSDLInterfaceOperationOutput[] outputs = op.getOutputs();
@@ -342,7 +331,7 @@
             {
                WSDLInterfaceOperationOutput output = outputs[k];
                XSTypeDefinition xt = getXSType(output);
-               addJavaXMLTypeMap(xt, output.getElement().getLocalPart(), jwm, !isDocStyle());
+               addJavaXMLTypeMap(xt, output.getElement().getLocalPart(), "", jwm, !isDocStyle());
             }
 
             for (WSDLInterfaceFault fault : wi.getFaults())
@@ -353,7 +342,7 @@
                WSDLTypes types = wsdlDefinitions.getWsdlTypes();
                JBossXSModel xsmodel = WSDLUtils.getSchemaModel(types);
                XSTypeDefinition xt = xsmodel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
-               addJavaXMLTypeMap(xt, xmlName.getLocalPart(), jwm, true);
+               addJavaXMLTypeMap(xt, xmlName.getLocalPart(), "", jwm, true);
 
                ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
                exceptionMapping.setExceptionType(getJavaTypeAsString(null, xmlType, false, true));
@@ -484,7 +473,7 @@
       return xsmodel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
    }
 
-   private void addJavaXMLTypeMap(XSTypeDefinition xt, String containingElement, JavaWsdlMapping jwm, boolean skipWrapperArray)
+   private void addJavaXMLTypeMap(XSTypeDefinition xt,String name, String containingElement, JavaWsdlMapping jwm, boolean skipWrapperArray)
    {
       JavaXmlTypeMapping jxtm = null;
 
@@ -513,8 +502,8 @@
             // Anonymous
             if (localName == null)
             {
-               javaType = getJavaTypeAsString(null, new QName(containingElement), false, true);
-               localName = ">" + containingElement;
+               javaType = getJavaTypeAsString(null, new QName(containingElement + name), false, true);
+               localName = ">" + name;
                jxtm.setAnonymousTypeQName(new QName(xt.getNamespace(), localName, "typeNS"));
             }
             else
@@ -542,7 +531,7 @@
             XSSimpleTypeDefinition simple = xc.getSimpleType();
             if (simple != null)
             {
-               addJavaXMLTypeMap(simple, xc.getName(), jwm, skipWrapperArray);
+               addJavaXMLTypeMap(simple, xc.getName(), "", jwm, skipWrapperArray);
             }
 
             // Add attributes
@@ -587,7 +576,7 @@
          XSAttributeUse obj = (XSAttributeUse)attributes.item(i);
          XSAttributeDeclaration att = obj.getAttrDeclaration();
          XSSimpleTypeDefinition simple = att.getTypeDefinition();
-         addJavaXMLTypeMap(simple, "none", jxtm.getJavaWsdlMapping(), true);
+         addJavaXMLTypeMap(simple, "none", "", jxtm.getJavaWsdlMapping(), true);
          VariableMapping vm = new VariableMapping(jxtm);
          String name = att.getName();
          vm.setXmlAttributeName(name);
@@ -612,7 +601,7 @@
          {
             XSElementDeclaration xe = (XSElementDeclaration)xsterm;
             XSTypeDefinition typeDefinition = xe.getTypeDefinition();
-            addJavaXMLTypeMap(typeDefinition, xe.getName(), jwm, true);
+            addJavaXMLTypeMap(typeDefinition, xe.getName(), xe.getEnclosingCTDefinition().getName(), jwm, true);
          }
       }
    }

Modified: branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -311,8 +311,7 @@
             MappingFileGenerator mgf = new MappingFileGenerator(wsdl, new LiteralTypeMapping());
             mgf.setPackageName(getPackageName(wsdl, glc));
             mgf.setServiceName(wsdl.getServices()[0].getName().toString());
-            mgf.setParameterStyle(w2jc.parameterStyle);
-            //mgf.generate();
+            mgf.setParameterStyle(w2jc.parameterStyle);            
 
             JavaWsdlMapping jwm = mgf.generate();
             Writer writer = IOUtils.getCharsetFileWriter(new File(outDir + "/" + w2jc.mappingFileName), Constants.DEFAULT_XML_CHARSET);

Modified: branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -219,9 +219,7 @@
          MethodParamPartsMapping[] mppmarr = mm.getMethodParamPartsMappings();
          int lenmppmarr = mppmarr != null ? mppmarr.length : 0;
          for (int j = 0; j < lenmppmarr; j++)
-         {
-            MethodParamPartsMapping mppm = mppmarr[j];
-            String paramType = mppm.getParamType();
+         {            
             listInputs.addAll(xst.getVARList((XSComplexTypeDefinition)xsmodel.getTypeDefinition(opname, typeNamespace), xsmodel, false));
          }
          JavaWriter jw = new JavaWriter();

Added: branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.tools.jbws1079;
+
+import java.io.File;
+import java.io.FileInputStream;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
+import org.jboss.ws.tools.WSTools;
+import org.jboss.ws.utils.DOMUtils;
+import org.w3c.dom.Element;
+
+/**
+ * 
+ * @author darran.lofthouse at jboss.com
+ * @since Nov 5, 2006
+ */
+public class JBWS1079TestCase extends JBossWSTest
+{
+
+   public void testAnonymousType() throws Exception
+   {
+      String resourceDir = "resources/tools/jbws1079";
+      String toolsDir = "tools/jbws1079";
+      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
+      new WSTools().generate(args);
+
+      Element exp = DOMUtils.parse(new FileInputStream(resourceDir + "/anonymous-mapping.xml"));
+      Element was = DOMUtils.parse(new FileInputStream(toolsDir + "/anonymous-mapping.xml"));
+      assertEquals(exp, was);
+
+      compareSource(resourceDir + "/TelephoneNumber.java", toolsDir + "/org/jboss/test/ws/jbws1079/TelephoneNumber.java");
+      compareSource(resourceDir + "/TelephoneNumberNumber.java", toolsDir + "/org/jboss/test/ws/jbws1079/TelephoneNumberNumber.java");
+   }
+
+   private static void compareSource(final String expectedName, final String generatedName) throws Exception
+   {
+      File expected = new File(expectedName);
+      File generated = new File(generatedName);
+
+      JBossSourceComparator sc = new JBossSourceComparator(expected, generated);
+      sc.validate();
+      sc.validateImports();
+   }
+}


Property changes on: branches/dlofthouse/JBWS-1079/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/Anonymous.wsdl
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/Anonymous.wsdl	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/Anonymous.wsdl	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook' targetNamespace='http://test.jboss.org/ws/jbws1079' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://test.jboss.org/ws/jbws1079/types' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://test.jboss.org/ws/jbws1079' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+  <schema targetNamespace='http://test.jboss.org/ws/jbws1079/types' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:tns='http://test.jboss.org/ws/jbws1079/types' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+   <complexType name='Person'>
+    <sequence>
+     <element name='firstName' nillable='true' type='string'/>
+     <element name='surname' nillable='true' type='string'/>
+    </sequence>
+   </complexType>
+   <complexType name='TelephoneNumber'>
+    <sequence>
+     <element name='Number'>
+       <complexType>
+         <sequence>
+           <element name='areaCode' nillable='true' type='string'/>
+           <element name='number' nillable='true' type='string'/>
+         </sequence>
+       </complexType>
+     </element>     
+    </sequence>
+   </complexType>
+   <element name='lookup' type='tns:Person'/>
+   <element name='lookupResponse' type='tns:TelephoneNumber'/>
+  </schema>
+ </types>
+ <message name='PhoneBook_lookup'>
+  <part element='ns1:lookup' name='parameters'/>
+ </message>
+ <message name='PhoneBook_lookupResponse'>
+  <part element='ns1:lookupResponse' name='result'/>
+ </message>
+ <portType name='PhoneBook'>
+  <operation name='lookup'>
+   <input message='tns:PhoneBook_lookup'/>
+   <output message='tns:PhoneBook_lookupResponse'/>
+  </operation>
+ </portType>
+ <binding name='PhoneBookBinding' type='tns:PhoneBook'>
+  <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+  <operation name='lookup'>
+   <soap:operation soapAction=''/>
+   <input>
+    <soap:body use='literal'/>
+   </input>
+   <output>
+    <soap:body use='literal'/>
+   </output>
+  </operation>
+ </binding>
+ <service name='PhoneBook'>
+  <port binding='tns:PhoneBookBinding' name='PhoneBookPort'>
+   <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+  </port>
+ </service>
+</definitions>
\ No newline at end of file


Property changes on: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/Anonymous.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumber.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumber.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumber.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,27 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Sun Nov 05 12:21:27 CET 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws1079;
+
+
+public class  TelephoneNumber
+{
+
+protected org.jboss.test.ws.jbws1079.TelephoneNumberNumber number;
+public TelephoneNumber(){}
+
+public TelephoneNumber(org.jboss.test.ws.jbws1079.TelephoneNumberNumber number){
+this.number=number;
+}
+public org.jboss.test.ws.jbws1079.TelephoneNumberNumber getNumber() { return number ;}
+
+public void setNumber(org.jboss.test.ws.jbws1079.TelephoneNumberNumber number){ this.number=number; }
+
+}


Property changes on: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumber.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Sun Nov 05 12:21:27 CET 2006
+ *
+ * This generated source code represents a derivative work of the input to
+ * the generator that produced it. Consult the input for the copyright and
+ * terms of use that apply to this source code.
+ */
+
+package org.jboss.test.ws.jbws1079;
+
+
+public class  TelephoneNumberNumber
+{
+
+protected java.lang.String areaCode;
+
+protected java.lang.String number;
+public TelephoneNumberNumber(){}
+
+public TelephoneNumberNumber(java.lang.String areaCode, java.lang.String number){
+this.areaCode=areaCode;
+this.number=number;
+}
+public java.lang.String getAreaCode() { return areaCode ;}
+
+public void setAreaCode(java.lang.String areaCode){ this.areaCode=areaCode; }
+
+public java.lang.String getNumber() { return number ;}
+
+public void setNumber(java.lang.String number){ this.number=number; }
+
+}


Property changes on: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/anonymous-mapping.xml
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/anonymous-mapping.xml	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/anonymous-mapping.xml	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,72 @@
+<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
+ <package-mapping>
+  <package-type>org.jboss.test.ws.jbws1079</package-type>
+  <namespaceURI>http://test.jboss.org/ws/jbws1079</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+  <java-type>org.jboss.test.ws.jbws1079.Person</java-type>
+  <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws1079/types'>typeNS:Person</root-type-qname>
+  <qname-scope>complexType</qname-scope>
+  <variable-mapping>
+   <java-variable-name>firstName</java-variable-name>
+   <xml-element-name>firstName</xml-element-name>
+  </variable-mapping>
+  <variable-mapping>
+   <java-variable-name>surname</java-variable-name>
+   <xml-element-name>surname</xml-element-name>
+  </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+  <java-type>org.jboss.test.ws.jbws1079.TelephoneNumber</java-type>
+  <root-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws1079/types'>typeNS:TelephoneNumber</root-type-qname>
+  <qname-scope>complexType</qname-scope>
+  <variable-mapping>
+   <java-variable-name>number</java-variable-name>
+   <xml-element-name>Number</xml-element-name>
+  </variable-mapping>
+ </java-xml-type-mapping>
+ <java-xml-type-mapping>
+  <java-type>org.jboss.test.ws.jbws1079.TelephoneNumberNumber</java-type>
+  <anonymous-type-qname xmlns:typeNS='http://test.jboss.org/ws/jbws1079/types'>typeNS:&gt;Number</anonymous-type-qname>
+  <qname-scope>complexType</qname-scope>
+  <variable-mapping>
+   <java-variable-name>areaCode</java-variable-name>
+   <xml-element-name>areaCode</xml-element-name>
+  </variable-mapping>
+  <variable-mapping>
+   <java-variable-name>number</java-variable-name>
+   <xml-element-name>number</xml-element-name>
+  </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping>
+  <service-interface>org.jboss.test.ws.jbws1079.PhoneBook_Service</service-interface>
+  <wsdl-service-name xmlns:serviceNS='http://test.jboss.org/ws/jbws1079'>serviceNS:PhoneBook</wsdl-service-name>
+  <port-mapping>
+   <port-name>PhoneBookPort</port-name>
+   <java-port-name>PhoneBookPort</java-port-name>
+  </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+  <service-endpoint-interface>org.jboss.test.ws.jbws1079.PhoneBook_PortType</service-endpoint-interface>
+  <wsdl-port-type xmlns:portTypeNS='http://test.jboss.org/ws/jbws1079'>portTypeNS:PhoneBook</wsdl-port-type>
+  <wsdl-binding xmlns:bindingNS='http://test.jboss.org/ws/jbws1079'>bindingNS:PhoneBookBinding</wsdl-binding>
+  <service-endpoint-method-mapping>
+   <java-method-name>lookup</java-method-name>
+   <wsdl-operation>lookup</wsdl-operation>
+   <method-param-parts-mapping>
+    <param-position>0</param-position>
+    <param-type>org.jboss.test.ws.jbws1079.Person</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws1079'>wsdlMsgNS:PhoneBook_lookup</wsdl-message>
+     <wsdl-message-part-name>parameters</wsdl-message-part-name>
+     <parameter-mode>IN</parameter-mode>
+    </wsdl-message-mapping>
+   </method-param-parts-mapping>
+   <wsdl-return-value-mapping>
+    <method-return-value>org.jboss.test.ws.jbws1079.TelephoneNumber</method-return-value>
+    <wsdl-message xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws1079'>wsdlMsgNS:PhoneBook_lookupResponse</wsdl-message>
+    <wsdl-message-part-name>result</wsdl-message-part-name>
+   </wsdl-return-value-mapping>
+  </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file


Property changes on: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/anonymous-mapping.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/wstools-config.xml
===================================================================
--- branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/wstools-config.xml	2006-11-05 13:20:48 UTC (rev 1386)
+++ branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/wstools-config.xml	2006-11-05 13:34:01 UTC (rev 1387)
@@ -0,0 +1,5 @@
+<configuration>
+  <wsdl-java location="resources/tools/jbws1079/Anonymous.wsdl" parameter-style="bare">
+    <mapping file="anonymous-mapping.xml"/>
+  </wsdl-java>
+</configuration>


Property changes on: branches/dlofthouse/JBWS-1079/src/test/resources/tools/jbws1079/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbossws-commits mailing list