Author: darran.lofthouse(a)jboss.com
Date: 2007-04-11 15:19:43 -0400 (Wed, 11 Apr 2007)
New Revision: 2808
Added:
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml
Removed:
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml
Log:
Initial test case.
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429 (from
rev 2797,
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429)
Deleted:
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11
14:11:16 UTC (rev 2797)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11
19:19:43 UTC (rev 2808)
@@ -1,56 +0,0 @@
-/*
- * 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.jbws429;
-
-import org.jboss.test.ws.tools.WSToolsTest;
-import org.jboss.ws.tools.WSTools;
-
-/**
- * Test case for
http://jira.jboss.com/jira/browse/JBWS-429
- *
- * WSDL to Java, generation of custom holders.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 11 Apr 2007
- */
-public class JBWS429TestCase extends WSToolsTest
-{
-
- /**
- * Test WSDL to Java with the output message containing 2
- * parts, the parts are not listed in the paramaterOrder
- * attribute so both should be parameters to the method on the
- * SEI using holders and the return type should be void.
- */
- public void testGenerateOutUnlisted() throws Exception
- {
- generateScenario("OUT_unlisted");
- }
-
- protected void generateScenario(final String scenario) throws Exception
- {
- String resourceDir = "resources/tools/jbws429/" + scenario;
- String toolsDir = "tools/jbws429/" + scenario;
- String[] args = new String[] { "-dest", toolsDir, "-config",
resourceDir + "/wstools-config.xml" };
- new WSTools().generate(args);
- }
-}
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
(from rev 2797,
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java)
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java
(rev 0)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11
19:19:43 UTC (rev 2808)
@@ -0,0 +1,56 @@
+/*
+ * 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.jbws429;
+
+import org.jboss.test.ws.tools.WSToolsTest;
+import org.jboss.ws.tools.WSTools;
+
+/**
+ * Test case for
http://jira.jboss.com/jira/browse/JBWS-429
+ *
+ * WSDL to Java, generation of custom holders.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 11 Apr 2007
+ */
+public class JBWS429TestCase extends WSToolsTest
+{
+
+ /**
+ * Test WSDL to Java with the output message containing 2
+ * parts, the parts are not listed in the paramaterOrder
+ * attribute so both should be parameters to the method on the
+ * SEI using holders and the return type should be void.
+ */
+ public void testGenerateOutUnlisted() throws Exception
+ {
+ generateScenario("OUT_unlisted");
+ }
+
+ protected void generateScenario(final String scenario) throws Exception
+ {
+ String resourceDir = "resources/tools/jbws429/" + scenario;
+ String toolsDir = "tools/jbws429/" + scenario;
+ String[] args = new String[] { "-dest", toolsDir, "-config",
resourceDir + "/wstools-config.xml" };
+ new WSTools().generate(args);
+ }
+}
Copied: branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429 (from rev
2797, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429)
Copied: branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT (from
rev 2797, branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT)
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted (from
rev 2797,
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted)
Deleted:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl 2007-04-11
14:11:16 UTC (rev 2797)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl 2007-04-11
19:19:43 UTC (rev 2808)
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='PhoneBook'
targetNamespace='http://test.jboss.org/ws/jbws429'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://test.jboss.org/ws/jbws429'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types>
- <schema
targetNamespace='http://test.jboss.org/ws/jbws429/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://test.jboss.org/ws/jbws429/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='areaCode' nillable='true'
type='string'/>
- <element name='number' nillable='true'
type='string'/>
- </sequence>
- </complexType>
-
- <complexType name='Account'>
- <sequence>
- <element name='accountNo' nillable='false'
type='string'/>
- </sequence>
- </complexType>
-
- <element name='lookup' type='tns:Person' />
- <element name='lookupResponse' type='tns:TelephoneNumber'/>
- <element name='account' type='tns:Account'/>
- </schema>
- </types>
-
- <message name='PhoneBook_lookup'>
- <part element='ns1:lookup' name='parameters'/>
- </message>
- <message name='PhoneBook_lookupResponse'>
- <part element='ns1:lookupResponse' name='result'/>
- <part element='ns1:account' name='account'/>
- </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>
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl
(from rev 2797,
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl)
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl
(rev 0)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl 2007-04-11
19:19:43 UTC (rev 2808)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook'
targetNamespace='http://test.jboss.org/ws/jbws429'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://test.jboss.org/ws/jbws429/types'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://test.jboss.org/ws/jbws429'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <schema
targetNamespace='http://test.jboss.org/ws/jbws429/types'
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:tns='http://test.jboss.org/ws/jbws429/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='areaCode' nillable='true'
type='string'/>
+ <element name='number' nillable='true'
type='string'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='Account'>
+ <sequence>
+ <element name='accountNo' nillable='false'
type='string'/>
+ </sequence>
+ </complexType>
+
+ <element name='lookup' type='tns:Person' />
+ <element name='lookupResponse' type='tns:TelephoneNumber'/>
+ <element name='account' type='tns:Account'/>
+ </schema>
+ </types>
+
+ <message name='PhoneBook_lookup'>
+ <part element='ns1:lookup' name='parameters'/>
+ </message>
+ <message name='PhoneBook_lookupResponse'>
+ <part element='ns1:lookupResponse' name='result'/>
+ <part element='ns1:account' name='account'/>
+ </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>
Deleted:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml 2007-04-11
14:11:16 UTC (rev 2797)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml 2007-04-11
19:19:43 UTC (rev 2808)
@@ -1,5 +0,0 @@
-<configuration>
- <wsdl-java location="resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl"
parameter-style="bare">
- <mapping file="jaxrpc-mapping.xml"/>
- </wsdl-java>
-</configuration>
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml
(from rev 2797,
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml)
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml
(rev 0)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/OUT_unlisted/wstools-config.xml 2007-04-11
19:19:43 UTC (rev 2808)
@@ -0,0 +1,5 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws429/OUT_unlisted/PhoneBook.wsdl"
parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>