Author: darran.lofthouse(a)jboss.com
Date: 2007-01-04 11:12:57 -0500 (Thu, 04 Jan 2007)
New Revision: 1791
Added:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/Anonymous.wsdl
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumber.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/anonymous-mapping.xml
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/wstools-config.xml
Removed:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/Anonymous.wsdl
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumber.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/anonymous-mapping.xml
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/wstools-config.xml
Modified:
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
Log:
JBWS-1440 - Incorrect WSDL to Java mapping for anonymous struct.
Modified:
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java
===================================================================
---
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java 2007-01-04
15:31:18 UTC (rev 1790)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/XSDTypeToJava.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -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@jboss.org>Anil Saldhana
Modified:
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
===================================================================
---
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2007-01-04
15:31:18 UTC (rev 1790)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -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/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java
===================================================================
---
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2007-01-04
15:31:18 UTC (rev 1790)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/helpers/ToolsHelper.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -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/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java
===================================================================
---
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java 2007-01-04
15:31:18 UTC (rev 1790)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/main/java/org/jboss/ws/tools/mapping/MappingFileGenerator.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -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();
Copied: branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079
(from rev 1452, branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,65 +0,0 @@
-/*
- * 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(a)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();
- }
-}
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java
(from rev 1452,
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/jbws1079/JBWS1079TestCase.java)
Copied: branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079 (from rev
1452, branches/jbossws-1.0/src/test/resources/tools/jbws1079)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/Anonymous.wsdl
===================================================================
--- branches/jbossws-1.0/src/test/resources/tools/jbws1079/Anonymous.wsdl 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/Anonymous.wsdl 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,56 +0,0 @@
-<?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
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/Anonymous.wsdl (from
rev 1452, branches/jbossws-1.0/src/test/resources/tools/jbws1079/Anonymous.wsdl)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumber.java
===================================================================
--- branches/jbossws-1.0/src/test/resources/tools/jbws1079/TelephoneNumber.java 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumber.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,27 +0,0 @@
-/*
- * 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; }
-
-}
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumber.java
(from rev 1452,
branches/jbossws-1.0/src/test/resources/tools/jbws1079/TelephoneNumber.java)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
===================================================================
---
branches/jbossws-1.0/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,34 +0,0 @@
-/*
- * 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; }
-
-}
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java
(from rev 1452,
branches/jbossws-1.0/src/test/resources/tools/jbws1079/TelephoneNumberNumber.java)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/anonymous-mapping.xml
===================================================================
---
branches/jbossws-1.0/src/test/resources/tools/jbws1079/anonymous-mapping.xml 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/anonymous-mapping.xml 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,72 +0,0 @@
-<?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:...
- <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:...
- <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:...
- <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:...
- <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'>portTypeN...
- <wsdl-binding
xmlns:bindingNS='http://test.jboss.org/ws/jbws1079'>bindingNS:...
- <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:...
- <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:...
- <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
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/anonymous-mapping.xml
(from rev 1452,
branches/jbossws-1.0/src/test/resources/tools/jbws1079/anonymous-mapping.xml)
Deleted:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/wstools-config.xml
===================================================================
--- branches/jbossws-1.0/src/test/resources/tools/jbws1079/wstools-config.xml 2006-11-16
22:50:57 UTC (rev 1452)
+++
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/wstools-config.xml 2007-01-04
16:12:57 UTC (rev 1791)
@@ -1,5 +0,0 @@
-<configuration>
- <wsdl-java location="resources/tools/jbws1079/Anonymous.wsdl"
parameter-style="bare">
- <mapping file="anonymous-mapping.xml"/>
- </wsdl-java>
-</configuration>
Copied:
branches/jbossws-1.0.4.GA_JBWS-1440/src/test/resources/tools/jbws1079/wstools-config.xml
(from rev 1452,
branches/jbossws-1.0/src/test/resources/tools/jbws1079/wstools-config.xml)