Author: darran.lofthouse(a)jboss.com
Date: 2007-04-11 18:11:22 -0400 (Wed, 11 Apr 2007)
New Revision: 2812
Added:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/
Modified:
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/rpclit_out/PhoneBook.wsdl
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml
Log:
Added rpc/literal test with two parts in response message.
Modified:
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
22:01:13 UTC (rev 2811)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11
22:11:22 UTC (rev 2812)
@@ -62,6 +62,17 @@
generateScenario("rpclit_inout");
}
+ /**
+ * Test WSDL to Java with a rpc/literal endpoint
+ * where there are multiple parts in the response
+ * message so a holder is required.
+ *
+ */
+ public void testGenerateRpcLitOut() throws Exception
+ {
+ generateScenario("rpclit_out");
+ }
+
protected void generateScenario(final String scenario) throws Exception
{
String resourceDir = "resources/tools/jbws429/" + scenario;
Copied: branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out
(from rev 2811,
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout)
Modified:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl 2007-04-11
22:01:13 UTC (rev 2811)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/PhoneBook.wsdl 2007-04-11
22:11:22 UTC (rev 2812)
@@ -38,7 +38,6 @@
<message name='PhoneBook_lookup'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<part name='Person_1' type='ns1:Person'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
- <part name='Account' type='ns1:Account'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
</message>
<message name='PhoneBook_lookupResponse'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
<part name='result' type='ns1:TelephoneNumber'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
Modified:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/jaxrpc-mapping.xml 2007-04-11
22:01:13 UTC (rev 2811)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/jaxrpc-mapping.xml 2007-04-11
22:11:22 UTC (rev 2812)
@@ -21,15 +21,6 @@
</variable-mapping>
</java-xml-type-mapping>
<java-xml-type-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-type
xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws...
- <root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws429/types'
xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</roo...
- <qname-scope
xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-...
- <variable-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
- <java-variable-name
xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java...
- <xml-element-name
xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-...
- </variable-mapping>
- </java-xml-type-mapping>
- <java-xml-type-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
<java-type
xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws...
<root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws429/types'
xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:TelephoneNumber...
<qname-scope
xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-...
@@ -42,6 +33,15 @@
<xml-element-name
xmlns='http://java.sun.com/xml/ns/j2ee'>number</xml-element...
</variable-mapping>
</java-xml-type-mapping>
+ <java-xml-type-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-type
xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws...
+ <root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws429/types'
xmlns='http://java.sun.com/xml/ns/j2ee'>typeNS:Account</roo...
+ <qname-scope
xmlns='http://java.sun.com/xml/ns/j2ee'>complexType</qname-...
+ <variable-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
+ <java-variable-name
xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</java...
+ <xml-element-name
xmlns='http://java.sun.com/xml/ns/j2ee'>accountNumber</xml-...
+ </variable-mapping>
+ </java-xml-type-mapping>
<service-interface-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
<service-interface
xmlns='http://java.sun.com/xml/ns/j2ee'>org.jboss.test.ws.jbws...
<wsdl-service-name
xmlns:serviceNS='http://test.jboss.org/ws/jbws429'
xmlns='http://java.sun.com/xml/ns/j2ee'>serviceNS:PhoneBook<...
@@ -72,7 +72,7 @@
<wsdl-message-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
<wsdl-message
xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws429'
xmlns='http://java.sun.com/xml/ns/j2ee'>wsdlMsgNS:PhoneBook_lo...
<wsdl-message-part-name
xmlns='http://java.sun.com/xml/ns/j2ee'>Account</wsdl-messa...
- <parameter-mode
xmlns='http://java.sun.com/xml/ns/j2ee'>INOUT</parameter-mo...
+ <parameter-mode
xmlns='http://java.sun.com/xml/ns/j2ee'>OUT</parameter-mode...
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping
xmlns='http://java.sun.com/xml/ns/j2ee'>
Modified:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_inout/wstools-config.xml 2007-04-11
22:01:13 UTC (rev 2811)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpclit_out/wstools-config.xml 2007-04-11
22:11:22 UTC (rev 2812)
@@ -1,5 +1,5 @@
<configuration>
- <wsdl-java location="resources/tools/jbws429/rpclit_inout/PhoneBook.wsdl"
parameter-style="bare">
+ <wsdl-java location="resources/tools/jbws429/rpclit_out/PhoneBook.wsdl"
parameter-style="bare">
<mapping file="jaxrpc-mapping.xml"/>
</wsdl-java>
</configuration>