Author: darran.lofthouse(a)jboss.com
Date: 2007-01-15 06:50:03 -0500 (Mon, 15 Jan 2007)
New Revision: 1960
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/JBWS1455TestCase.java
trunk/jbossws-tests/src/main/resources/tools/jbws1455/
trunk/jbossws-tests/src/main/resources/tools/jbws1455/MyException.java
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint.wsdl
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint_PortType.java
trunk/jbossws-tests/src/main/resources/tools/jbws1455/jaxrpc-mapping.xml
trunk/jbossws-tests/src/main/resources/tools/jbws1455/wstools-config.xml
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/validation/JaxrpcMappingValidator.java
Log:
JBWS-1455 - Generated jaxrpc mapping contains same exception mapped multiple times if
there are multiple operations.
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java
===================================================================
---
trunk/jbossws-core/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2007-01-15
10:48:40 UTC (rev 1959)
+++
trunk/jbossws-core/src/main/java/org/jboss/ws/tools/helpers/MappingFileGeneratorHelper.java 2007-01-15
11:50:03 UTC (rev 1960)
@@ -96,6 +96,7 @@
private String serviceName = null;
private String packageName = null;
private Set<String> registeredTypes = new HashSet<String>();
+ private Set<String> registeredExceptions = new HashSet<String>();
private LiteralTypeMapping typeMapping = null;
private String wsdlStyle;
@@ -217,14 +218,14 @@
semm.setWrappedElement(isWrapped());
if (isDocStyle())
- constructDOCParameters(semm, wiop, j);
+ constructDOCParameters(semm, wiop);
else constructRPCParameters(semm, wiop);
seim.addServiceEndpointMethodMapping(semm);
}
}
- private void constructDOCParameters(ServiceEndpointMethodMapping semm,
WSDLInterfaceOperation wiop, int paramPosition)
+ private void constructDOCParameters(ServiceEndpointMethodMapping semm,
WSDLInterfaceOperation wiop)
{
WSDLInterfaceOperationInput win = WSDLUtils.getWsdl11Input(wiop);
JBossXSModel schemaModel =
WSDLUtils.getSchemaModel(wsdlDefinitions.getWsdlTypes());
@@ -249,7 +250,7 @@
if (xt instanceof XSSimpleTypeDefinition)
xmlType = SchemaUtils.handleSimpleType((XSSimpleTypeDefinition)xt);
- mpin = getMethodParamPartsMapping(semm, xmlName, xmlType, paramPosition,
wsdlMessageName, "IN", partName, false, true);
+ mpin = getMethodParamPartsMapping(semm, xmlName, xmlType, 0, wsdlMessageName,
"IN", partName, false, true);
semm.addMethodParamPartsMapping(mpin);
}
}
@@ -426,10 +427,16 @@
XSTypeDefinition xt = xsmodel.getTypeDefinition(xmlType.getLocalPart(),
xmlType.getNamespaceURI());
addJavaXMLTypeMap(xt, xmlName.getLocalPart(), "", "",
jwm, true);
- ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
- exceptionMapping.setExceptionType(getJavaTypeAsString(null, xmlType,
false, true));
- exceptionMapping.setWsdlMessage(new
QName(wsdlDefinitions.getTargetNamespace(), fault.getName().toString()));
- jwm.addExceptionMappings(exceptionMapping);
+ String exceptionType = getJavaTypeAsString(null, xmlType, false, true);
+
+ if (registeredExceptions.contains(exceptionType) == false)
+ {
+ registeredExceptions.add(exceptionType);
+ ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
+ exceptionMapping.setExceptionType(exceptionType);
+ exceptionMapping.setWsdlMessage(new
QName(wsdlDefinitions.getTargetNamespace(), fault.getName().toString()));
+ jwm.addExceptionMappings(exceptionMapping);
+ }
}
}//end for
}
Added:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/JBWS1455TestCase.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/JBWS1455TestCase.java 2007-01-15
10:48:40 UTC (rev 1959)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/JBWS1455TestCase.java 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, 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.jbws1455;
+
+import java.io.File;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.tools.fixture.JBossSourceComparator;
+import org.jboss.test.ws.tools.validation.JaxrpcMappingValidator;
+import org.jboss.ws.tools.WSTools;
+
+/**
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 15 Jan 2007
+ */
+public class JBWS1455TestCase extends JBossWSTest
+{
+
+ private static final String resourceDir = "resources/tools/jbws1455";
+ private static final String toolsDir = "tools/jbws1455";
+
+ public void testGenerate() throws Exception
+ {
+ String[] args = new String[] { "-dest", toolsDir, "-config",
resourceDir + "/wstools-config.xml" };
+ new WSTools().generate(args);
+
+ compareSource("MyException.java");
+ compareSource("TestEndpoint_PortType.java");
+
+ JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
+ mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir +
"/jaxrpc-mapping.xml");
+ }
+
+ private static void compareSource(final String fileName) throws Exception
+ {
+ File expected = new File(resourceDir + "/" + fileName);
+ File generated = new File(toolsDir + "/org/jboss/test/ws/jbws1455/" +
fileName);
+
+ JBossSourceComparator sc = new JBossSourceComparator(expected, generated);
+ sc.validate();
+ sc.validateImports();
+ }
+
+}
Property changes on:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/jbws1455/JBWS1455TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/validation/JaxrpcMappingValidator.java
===================================================================
---
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/validation/JaxrpcMappingValidator.java 2007-01-15
10:48:40 UTC (rev 1959)
+++
trunk/jbossws-tests/src/main/java/org/jboss/test/ws/tools/validation/JaxrpcMappingValidator.java 2007-01-15
11:50:03 UTC (rev 1960)
@@ -27,6 +27,7 @@
import javax.xml.namespace.QName;
import org.jboss.logging.Logger;
+import org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMapping;
import org.jboss.ws.metadata.jaxrpcmapping.JavaWsdlMappingFactory;
import org.jboss.ws.metadata.jaxrpcmapping.JavaXmlTypeMapping;
@@ -77,22 +78,31 @@
{
boolean bool = true;
bool = validatePackageMappings(jw1.getPackageMappings(),
jw2.getPackageMappings());
- if (bool)
- bool = validateJavaXmlTypeMappings(jw1.getJavaXmlTypeMappings(),
jw2.getJavaXmlTypeMappings());
- else throw new IllegalStateException("Validation of PackageMappings
failed");
- if (bool)
- bool = validateServiceInterfaceMappings(jw1.getServiceInterfaceMappings(),
jw2.getServiceInterfaceMappings());
- else throw new IllegalStateException("Validation of JavaXmlTypeMappings
failed");
+ checkBool(bool, "PackageMappings");
- if (bool)
- bool =
validateServiceEndpointInterfaceMappings(jw1.getServiceEndpointInterfaceMappings(),
jw2.getServiceEndpointInterfaceMappings());
- else throw new IllegalStateException("Validation of ServiceInterfaceMappings
failed");
+ bool = validateJavaXmlTypeMappings(jw1.getJavaXmlTypeMappings(),
jw2.getJavaXmlTypeMappings());
+ checkBool(bool, "JavaXmlTypeMappings");
- if (bool == false)
- throw new IllegalStateException("Validation of
ServiceEndpointInterfaceMappings failed");
+ bool = validateExceptionMapping(jw1.getExceptionMappings(),
jw2.getExceptionMappings());
+ checkBool(bool, "ExceptionMappings");
+
+ bool = validateServiceInterfaceMappings(jw1.getServiceInterfaceMappings(),
jw2.getServiceInterfaceMappings());
+ checkBool(bool, "ServiceInterfaceMappings");
+
+ bool =
validateServiceEndpointInterfaceMappings(jw1.getServiceEndpointInterfaceMappings(),
jw2.getServiceEndpointInterfaceMappings());
+ checkBool(bool, "ServiceEndpointInterfaceMappings");
+
return bool;
}
+ private void checkBool(final boolean bool, final String check)
+ {
+ if (bool == false)
+ {
+ throw new IllegalStateException("Validation of " + check + "
failed.");
+ }
+ }
+
//PRIVATE METHODS
private boolean validatePackageMappings(PackageMapping[] pm1, PackageMapping[] pm2)
{
@@ -132,6 +142,22 @@
return true;
}
+ private boolean validateJavaXmlTypeMapping(JavaXmlTypeMapping jm1, JavaXmlTypeMapping
jm2)
+ {
+ boolean bool = true;
+ bool = checkStringEquality(jm1.getJavaType(), jm2.getJavaType());
+ if (bool)
+ bool = checkStringEquality(jm1.getQnameScope(), jm2.getQnameScope());
+ if (bool)
+ bool = checkQNameEquality(jm1.getRootTypeQName(), jm2.getRootTypeQName());
+ if (bool)
+ bool = checkQNameEquality(jm1.getAnonymousTypeQName(),
jm2.getAnonymousTypeQName());
+ if (bool)
+ bool = validateVariableMappings(jm1.getVariableMappings(),
jm2.getVariableMappings());
+
+ return bool;
+ }
+
private boolean validateJavaXmlTypeMappings(JavaXmlTypeMapping[] jm1,
JavaXmlTypeMapping[] jm2)
{
int len1 = jm1 != null ? jm1.length : 0;
@@ -175,19 +201,59 @@
return true;
}
- private boolean validateJavaXmlTypeMapping(JavaXmlTypeMapping jm1, JavaXmlTypeMapping
jm2)
+ private boolean validateExceptionMapping(ExceptionMapping[] em1, ExceptionMapping[]
em2)
{
+ int len1 = em1 != null ? em1.length : 0;
+ int len2 = em2 != null ? em2.length : 0;
+ if (len1 != len2)
+ {
+ throw new IllegalStateException("Length of ExceptionMapping[] do not match
expected=" + len1 + " actual=" + len2);
+ }
+
+ HashMap actualMappings = new HashMap(len1);
+
+ for (int i = 0; i < len1; i++)
+ {
+ ExceptionMapping current = em2[i];
+ String name = current.getExceptionType();
+ if (actualMappings.containsKey(name))
+ {
+ throw new IllegalStateException("Type '" + name + "'
registered more than once.");
+ }
+
+ actualMappings.put(name, current);
+ }
+
+ for (int i = 0; i < len1; i++)
+ {
+ ExceptionMapping expected = em1[i];
+ ExceptionMapping actual =
(ExceptionMapping)actualMappings.get(expected.getExceptionType());
+
+ if (actual == null)
+ {
+ throw new IllegalStateException("Mapping not found for '" +
expected.getExceptionType() + "'");
+ }
+
+ if (validateExceptionMapping(expected, actual) == false)
+ {
+ throw new IllegalStateException(expected + " does not match with other
side " + actual);
+ }
+ }
+
+ return true;
+ }
+
+ private boolean validateExceptionMapping(ExceptionMapping em1, ExceptionMapping em2)
+ {
boolean bool = true;
- bool = checkStringEquality(jm1.getJavaType(), jm2.getJavaType());
+ bool = checkStringEquality(em1.getExceptionType(), em2.getExceptionType());
if (bool)
- bool = checkStringEquality(jm1.getQnameScope(), jm2.getQnameScope());
- if (bool)
- bool = checkQNameEquality(jm1.getRootTypeQName(), jm2.getRootTypeQName());
- if (bool)
- bool = checkQNameEquality(jm1.getAnonymousTypeQName(),
jm2.getAnonymousTypeQName());
- if (bool)
- bool = validateVariableMappings(jm1.getVariableMappings(),
jm2.getVariableMappings());
+ bool = checkQNameEquality(em1.getWsdlMessage(), em2.getWsdlMessage());
+ // Parameter order optional so don't enforce.
+ //if (bool)
+ // bool = checkStringArrayEquality(em1.getConstructorParameterOrder(),
em2.getConstructorParameterOrder());
+
return bool;
}
@@ -479,6 +545,23 @@
return str1.equals(str2);
}
+ private boolean checkStringArrayEquality(String[] ar1, String[] ar2)
+ {
+ int len1 = ar1 != null ? ar1.length : 0;
+ int len2 = ar2 != null ? ar2.length : 0;
+
+ if (len1 != len2)
+ return false;
+
+ for (int i = 0; i < len1; i++)
+ {
+ if (checkStringEquality(ar1[i], ar2[i]) == false)
+ return false;
+ }
+
+ return true;
+ }
+
private boolean checkQNameEquality(QName q1, QName q2)
{
if (q1 == null && q2 == null)
Added: trunk/jbossws-tests/src/main/resources/tools/jbws1455/MyException.java
===================================================================
--- trunk/jbossws-tests/src/main/resources/tools/jbws1455/MyException.java 2007-01-15
10:48:40 UTC (rev 1959)
+++ trunk/jbossws-tests/src/main/resources/tools/jbws1455/MyException.java 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,21 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.jbws1455;
+
+
+public class MyException extends java.lang.Exception {
+ private java.lang.String comment;
+
+
+ public MyException(java.lang.String comment) {
+ super(comment);
+ this.comment = comment;
+ }
+
+ public java.lang.String getComment() {
+ return comment;
+ }
+}
Property changes on:
trunk/jbossws-tests/src/main/resources/tools/jbws1455/MyException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint.wsdl
===================================================================
--- trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint.wsdl 2007-01-15
10:48:40 UTC (rev 1959)
+++ trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint.wsdl 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='TestEndpoint'
targetNamespace='http://test.jboss.org/ws/jbws1455'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://test.jboss.org/ws/jbws1455/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://test.jboss.org/ws/jbws1455'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <schema
targetNamespace='http://test.jboss.org/ws/jbws1455/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://test.jboss.org/ws/jbws1455/types'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
+ <complexType name='MyException'>
+ <sequence>
+ <element name='comment' nillable='true'
type='string'/>
+ </sequence>
+ </complexType>
+ <element name='methodOne' type='string'/>
+ <element name='methodOneResponse' type='string'/>
+ <element name='MyException' type='tns:MyException'/>
+ <element name='methodTwo' type='string'/>
+ <element name='methodTwoResponse' type='string'/>
+ </schema>
+ </types>
+ <message name='TestEndpoint_methodOne'>
+ <part element='ns1:methodOne' name='parameters'/>
+ </message>
+ <message name='TestEndpoint_methodOneResponse'>
+ <part element='ns1:methodOneResponse' name='result'/>
+ </message>
+ <message name='TestEndpoint_methodTwo'>
+ <part element='ns1:methodTwo' name='parameters'/>
+ </message>
+ <message name='TestEndpoint_methodTwoResponse'>
+ <part element='ns1:methodTwoResponse' name='result'/>
+ </message>
+ <message name='MyException'>
+ <part element='ns1:MyException' name='MyException'/>
+ </message>
+ <portType name='TestEndpoint'>
+ <operation name='methodOne'>
+ <input message='tns:TestEndpoint_methodOne'/>
+ <output message='tns:TestEndpoint_methodOneResponse'/>
+ </operation>
+ <operation name='methodTwo'>
+ <input message='tns:TestEndpoint_methodTwo'/>
+ <output message='tns:TestEndpoint_methodTwoResponse'/>
+ <fault message='tns:MyException' name='MyException'/>
+ </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+ <soap:binding style='document'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='methodOne'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ </operation>
+ <operation name='methodTwo'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='MyException'>
+ <soap:fault name='MyException' use='literal'/>
+ </fault>
+ </operation>
+ </binding>
+ <service name='TestEndpoint'>
+ <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Property changes on:
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint_PortType.java
===================================================================
---
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint_PortType.java 2007-01-15
10:48:40 UTC (rev 1959)
+++
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint_PortType.java 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,13 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.jbws1455;
+
+public interface TestEndpoint_PortType extends java.rmi.Remote {
+ public java.lang.String methodOne(java.lang.String parameters) throws
+ java.rmi.RemoteException;
+ public java.lang.String methodTwo(java.lang.String parameters) throws
+ org.jboss.test.ws.jbws1455.MyException, java.rmi.RemoteException;
+}
Property changes on:
trunk/jbossws-tests/src/main/resources/tools/jbws1455/TestEndpoint_PortType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/jbossws-tests/src/main/resources/tools/jbws1455/jaxrpc-mapping.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/tools/jbws1455/jaxrpc-mapping.xml 2007-01-15
10:48:40 UTC (rev 1959)
+++ trunk/jbossws-tests/src/main/resources/tools/jbws1455/jaxrpc-mapping.xml 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<java-wsdl-mapping
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1"
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.jbws1455</package-type>
+ <
namespaceURI>http://test.jboss.org/ws/jbws1455</namespaceURI>
+ </package-mapping>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jbws1455</package-type>
+ <
namespaceURI>http://test.jboss.org/ws/jbws1455/types</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.test.ws.jbws1455.MyException</java-type>
+ <root-type-qname
xmlns:typeNS="http://test.jboss.org/ws/jbws1455/types">typeN...
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>comment</java-variable-name>
+ <xml-element-name>comment</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <exception-mapping>
+ <exception-type>org.jboss.test.ws.jbws1455.MyException</exception-type>
+ <wsdl-message
xmlns:exMsgNS="http://test.jboss.org/ws/jbws1455">exMsgNS:My...
+ <constructor-parameter-order>
+ <element-name>comment</element-name>
+ </constructor-parameter-order>
+ </exception-mapping>
+ <service-interface-mapping>
+
<service-interface>org.jboss.test.ws.jbws1455.TestEndpoint_Service</service-interface>
+ <wsdl-service-name
xmlns:serviceNS="http://test.jboss.org/ws/jbws1455">serviceN...
+ <port-mapping>
+ <port-name>TestEndpointPort</port-name>
+ <java-port-name>TestEndpointPort</java-port-name>
+ </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+
<service-endpoint-interface>org.jboss.test.ws.jbws1455.TestEndpoint_PortType</service-endpoint-interface>
+ <wsdl-port-type
xmlns:portTypeNS="http://test.jboss.org/ws/jbws1455">portTyp...
+ <wsdl-binding
xmlns:bindingNS="http://test.jboss.org/ws/jbws1455">bindingN...
+ <service-endpoint-method-mapping>
+ <java-method-name>methodOne</java-method-name>
+ <wsdl-operation>methodOne</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>java.lang.String</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="http://test.jboss.org/ws/jbws1455">wsdlMsgN...
+ <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>java.lang.String</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="http://test.jboss.org/ws/jbws1455">wsdlMsgN...
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ <service-endpoint-method-mapping>
+ <java-method-name>methodTwo</java-method-name>
+ <wsdl-operation>methodTwo</wsdl-operation>
+ <method-param-parts-mapping>
+ <param-position>0</param-position>
+ <param-type>java.lang.String</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS="http://test.jboss.org/ws/jbws1455">wsdlMsgN...
+ <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>java.lang.String</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS="http://test.jboss.org/ws/jbws1455">wsdlMsgN...
+ <wsdl-message-part-name>result</wsdl-message-part-name>
+ </wsdl-return-value-mapping>
+ </service-endpoint-method-mapping>
+ </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
Property changes on:
trunk/jbossws-tests/src/main/resources/tools/jbws1455/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: trunk/jbossws-tests/src/main/resources/tools/jbws1455/wstools-config.xml
===================================================================
--- trunk/jbossws-tests/src/main/resources/tools/jbws1455/wstools-config.xml 2007-01-15
10:48:40 UTC (rev 1959)
+++ trunk/jbossws-tests/src/main/resources/tools/jbws1455/wstools-config.xml 2007-01-15
11:50:03 UTC (rev 1960)
@@ -0,0 +1,5 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws1455/TestEndpoint.wsdl"
parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>
Property changes on:
trunk/jbossws-tests/src/main/resources/tools/jbws1455/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF