Author: darran.lofthouse(a)jboss.com
Date: 2007-06-01 11:37:41 -0400 (Fri, 01 Jun 2007)
New Revision: 3372
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccount.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccountHolder.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/Person.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook_PortType.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/TelephoneNumber.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/jaxrpc-mapping.xml
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/wstools-config.xml
Modified:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws1597/JBWS1597TestCase.java
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_in/PhoneBook.wsdl
Log:
RPC/Literal out only example.
Modified:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws1597/JBWS1597TestCase.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws1597/JBWS1597TestCase.java 2007-06-01
15:37:28 UTC (rev 3371)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/java/org/jboss/test/ws/tools/jbws1597/JBWS1597TestCase.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -62,6 +62,11 @@
generateScenario("rpclit_in");
}
+ public void testGenerateRpcLitOut() throws Exception
+ {
+ generateScenario("rpclit_out");
+ }
+
protected void generateScenario(final String scenario) throws Exception
{
String resourceDir = "resources/tools/jbws1597/" + scenario;
Modified:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_in/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_in/PhoneBook.wsdl 2007-06-01
15:37:28 UTC (rev 3371)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_in/PhoneBook.wsdl 2007-06-01
15:37:41 UTC (rev 3372)
@@ -59,7 +59,7 @@
<operation name='lookup'>
<soap:operation soapAction=''/>
<input>
- <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal'/>
+ <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal' parts='Person_1' />
<soap:header message="tns:PhoneBook_lookup"
part="Account_1" use="literal" />
</input>
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccount.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccount.java
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccount.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Jun 01 17:29:46 CEST 2007
+ *
+ * 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.jbws1597;
+
+
+public class BillingAccount
+{
+
+protected java.lang.String sortCode;
+
+protected java.lang.String accountNumber;
+public BillingAccount(){}
+
+public BillingAccount(java.lang.String sortCode, java.lang.String accountNumber){
+this.sortCode=sortCode;
+this.accountNumber=accountNumber;
+}
+public java.lang.String getSortCode() { return sortCode ;}
+
+public void setSortCode(java.lang.String sortCode){ this.sortCode=sortCode; }
+
+public java.lang.String getAccountNumber() { return accountNumber ;}
+
+public void setAccountNumber(java.lang.String accountNumber){
this.accountNumber=accountNumber; }
+
+}
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccount.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccountHolder.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccountHolder.java
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccountHolder.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,28 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Jun 01 17:29:46 CEST 2007
+ *
+ * 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.jbws1597;
+
+public class BillingAccountHolder implements javax.xml.rpc.holders.Holder
+{
+
+ public org.jboss.test.ws.jbws1597.BillingAccount value;
+
+ public BillingAccountHolder()
+ {
+ this.value = new org.jboss.test.ws.jbws1597.BillingAccount();
+ }
+
+ public BillingAccountHolder(final org.jboss.test.ws.jbws1597.BillingAccount value)
+ {
+ this.value = value;
+ }
+
+}
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/BillingAccountHolder.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/Person.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/Person.java
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/Person.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Jun 01 17:29:46 CEST 2007
+ *
+ * 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.jbws1597;
+
+
+public class Person
+{
+
+protected java.lang.String firstName;
+
+protected java.lang.String surname;
+public Person(){}
+
+public Person(java.lang.String firstName, java.lang.String surname){
+this.firstName=firstName;
+this.surname=surname;
+}
+public java.lang.String getFirstName() { return firstName ;}
+
+public void setFirstName(java.lang.String firstName){ this.firstName=firstName; }
+
+public java.lang.String getSurname() { return surname ;}
+
+public void setSurname(java.lang.String surname){ this.surname=surname; }
+
+}
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/Person.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='PhoneBook'
+
targetNamespace='http://test.jboss.org/ws/jbws1597'
+
xmlns='http://schemas.xmlsoap.org/wsdl/'
+
xmlns:ns1='http://test.jboss.org/ws/jbws1597/types'
+
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
+
xmlns:tns='http://test.jboss.org/ws/jbws1597'
+
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <schema
targetNamespace='http://test.jboss.org/ws/jbws1597/types'
+
xmlns='http://www.w3.org/2001/XMLSchema'
+
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/'
+
xmlns:tns='http://test.jboss.org/ws/jbws1597/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='BillingAccount'>
+ <sequence>
+ <element name='sortCode' nillable='true'
type='string'/>
+ <element name='accountNumber' nillable='true'
type='string'/>
+ </sequence>
+ </complexType>
+
+ <element name='billingAccount' type='tns:BillingAccount'/>
+ </schema>
+ </types>
+
+ <message name='PhoneBook_lookup'
xmlns='http://schemas.xmlsoap.org/wsdl/'>
+ <part name='Person_1' type='ns1:Person'/>
+ </message>
+ <message name='PhoneBook_lookupResponse'>
+ <part name='result' type='ns1:TelephoneNumber'/>
+ <part name='Account_1' element='ns1:billingAccount'/>
+ </message>
+
+ <portType name='PhoneBook'>
+ <operation name='lookup' parameterOrder='Person_1'>
+ <input message='tns:PhoneBook_lookup'/>
+ <output message='tns:PhoneBook_lookupResponse'/>
+ </operation>
+ </portType>
+
+ <binding name='PhoneBookBinding' type='tns:PhoneBook'>
+ <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='lookup'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal' parts='Person_1' />
+
+ </input>
+ <output>
+ <soap:body
namespace='http://www.jboss.org/support/phonebook'
use='literal' parts='result' />
+ <soap:header message="tns:PhoneBook_lookupResponse"
+ part="Account_1" 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
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook_PortType.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook_PortType.java
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook_PortType.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,15 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Jun 01 17:29:46 CEST 2007
+ *
+ * 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.jbws1597;
+public interface PhoneBook_PortType extends java.rmi.Remote
+{
+
+ public org.jboss.test.ws.jbws1597.TelephoneNumber
lookup(org.jboss.test.ws.jbws1597.Person person_1,
org.jboss.test.ws.jbws1597.BillingAccountHolder Account_1) throws
java.rmi.RemoteException;
+}
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/PhoneBook_PortType.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/TelephoneNumber.java
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/TelephoneNumber.java
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/TelephoneNumber.java 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,34 @@
+/*
+ * JBossWS WS-Tools Generated Source
+ *
+ * Generation Date: Fri Jun 01 17:29:46 CEST 2007
+ *
+ * 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.jbws1597;
+
+
+public class TelephoneNumber
+{
+
+protected java.lang.String areaCode;
+
+protected java.lang.String number;
+public TelephoneNumber(){}
+
+public TelephoneNumber(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; }
+
+}
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/TelephoneNumber.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/jaxrpc-mapping.xml
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/jaxrpc-mapping.xml
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/jaxrpc-mapping.xml 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,89 @@
+<?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.jbws1597</package-type>
+ <
namespaceURI>http://test.jboss.org/ws/jbws1597/types</namespaceURI>
+ </package-mapping>
+ <package-mapping>
+ <package-type>org.jboss.test.ws.jbws1597</package-type>
+ <
namespaceURI>http://test.jboss.org/ws/jbws1597</namespaceURI>
+ </package-mapping>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.test.ws.jbws1597.Person</java-type>
+ <root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws1597/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.jbws1597.TelephoneNumber</java-type>
+ <root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws1597/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>
+ <java-xml-type-mapping>
+ <java-type>org.jboss.test.ws.jbws1597.BillingAccount</java-type>
+ <root-type-qname
xmlns:typeNS='http://test.jboss.org/ws/jbws1597/types'>typeNS:...
+ <qname-scope>complexType</qname-scope>
+ <variable-mapping>
+ <java-variable-name>sortCode</java-variable-name>
+ <xml-element-name>sortCode</xml-element-name>
+ </variable-mapping>
+ <variable-mapping>
+ <java-variable-name>accountNumber</java-variable-name>
+ <xml-element-name>accountNumber</xml-element-name>
+ </variable-mapping>
+ </java-xml-type-mapping>
+ <service-interface-mapping>
+
<service-interface>org.jboss.test.ws.jbws1597.PhoneBook_Service</service-interface>
+ <wsdl-service-name
xmlns:serviceNS='http://test.jboss.org/ws/jbws1597'>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.jbws1597.PhoneBook_PortType</service-endpoint-interface>
+ <wsdl-port-type
xmlns:portTypeNS='http://test.jboss.org/ws/jbws1597'>portTypeN...
+ <wsdl-binding
xmlns:bindingNS='http://test.jboss.org/ws/jbws1597'>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.jbws1597.Person</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws1597'>wsdlMsgNS:...
+ <wsdl-message-part-name>Person_1</wsdl-message-part-name>
+ <parameter-mode>IN</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <method-param-parts-mapping>
+ <param-position>1</param-position>
+ <param-type>org.jboss.test.ws.jbws1597.BillingAccount</param-type>
+ <wsdl-message-mapping>
+ <wsdl-message
xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws1597'>wsdlMsgNS:...
+ <wsdl-message-part-name>Account_1</wsdl-message-part-name>
+ <parameter-mode>OUT</parameter-mode>
+ </wsdl-message-mapping>
+ </method-param-parts-mapping>
+ <wsdl-return-value-mapping>
+
<method-return-value>org.jboss.test.ws.jbws1597.TelephoneNumber</method-return-value>
+ <wsdl-message
xmlns:wsdlMsgNS='http://test.jboss.org/ws/jbws1597'>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
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/wstools-config.xml
===================================================================
---
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/wstools-config.xml
(rev 0)
+++
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/wstools-config.xml 2007-06-01
15:37:41 UTC (rev 3372)
@@ -0,0 +1,6 @@
+<configuration>
+ <wsdl-java location="resources/tools/jbws1597/rpclit_out/PhoneBook.wsdl"
+ parameter-style="bare">
+ <mapping file="jaxrpc-mapping.xml"/>
+ </wsdl-java>
+</configuration>
Property changes on:
branches/dlofthouse/JBWS-1597/jbossws-tests/src/resources/tools/jbws1597/rpclit_out/wstools-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF