Author: darran.lofthouse(a)jboss.com
Date: 2007-04-11 17:35:37 -0400 (Wed, 11 Apr 2007)
New Revision: 2810
Added:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/PhoneBook.wsdl
Removed:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT/
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/doclit_inout/PhoneBook.wsdl
Log:
rpc/literal IN-OUT test case.
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
21:16:27 UTC (rev 2809)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws429/JBWS429TestCase.java 2007-04-11
21:35:37 UTC (rev 2810)
@@ -44,12 +44,24 @@
* Test WSDL to Java with the a document/literal endpoint
* where the message part is the same for both the input
* and output message.
+ *
*/
- public void testGenerateOutUnlisted() throws Exception
+ public void testGenerateDocLitInOut() throws Exception
{
generateScenario("doclit_inout");
}
+ /**
+ * Test WSDL to Java with a rpc/literal endpoint
+ * where a matching message part is in the request
+ * and response messages.
+ *
+ */
+ public void testGenerateRpcLitInOut() throws Exception
+ {
+ generateScenario("rpclit_inout");
+ }
+
protected void generateScenario(final String scenario) throws Exception
{
String resourceDir = "resources/tools/jbws429/" + scenario;
Modified:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl 2007-04-11
21:16:27 UTC (rev 2809)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/doclit_inout/PhoneBook.wsdl 2007-04-11
21:35:37 UTC (rev 2810)
@@ -1,8 +1,17 @@
<?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'>
+<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'>
+ <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>
Copied:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout
(from rev 2808,
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/INOUT)
Added:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/PhoneBook.wsdl
(rev 0)
+++
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/PhoneBook.wsdl 2007-04-11
21:35:37 UTC (rev 2810)
@@ -0,0 +1,71 @@
+<?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://www.jboss.org/support/phonebook'
+
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+
+ <types
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <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'
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='firstName' nillable='true' type='string'
xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='surname' nillable='true' type='string'
xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='TelephoneNumber'
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='areaCode' nillable='true' type='string'
xmlns='http://www.w3.org/2001/XMLSchema'/>
+ <element name='number' nillable='true' type='string'
xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ <complexType name='Account'
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <sequence
xmlns='http://www.w3.org/2001/XMLSchema'>
+ <element name='accountNumber' nillable='true'
type='string'
xmlns='http://www.w3.org/2001/XMLSchema'/>
+ </sequence>
+ </complexType>
+
+ </schema>
+ </types>
+
+ <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/'/>
+ <part name='Account' type='ns1:Account'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </message>
+
+ <portType name='PhoneBook'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <operation name='lookup' parameterOrder='Person_1'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <input message='tns:PhoneBook_lookup'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ <output message='tns:PhoneBook_lookupResponse'
xmlns='http://schemas.xmlsoap.org/wsdl/'/>
+ </operation>
+ </portType>
+ <binding name='PhoneBookBinding' type='tns:PhoneBook'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='lookup'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:operation soapAction=''/>
+ <input
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal'/>
+ </input>
+ <output
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='PhoneBook'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <port binding='tns:PhoneBookBinding' name='PhoneBookPort'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Property changes on:
branches/dlofthouse/JBWS-429/jbossws-tests/src/resources/tools/jbws429/rpcliteral_inout/PhoneBook.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF