[Jboss-cvs] JBossAS SVN: r56063 - in branches/Branch_4_0/testsuite: . src/main/org/jboss/test/webservice/jbws463 src/resources/webservice/jbws463/WEB-INF src/resources/webservice/jbws463/WEB-INF/wsdl

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 18 09:55:01 EDT 2006


Author: thomas.diesler at jboss.com
Date: 2006-08-18 09:54:54 -0400 (Fri, 18 Aug 2006)
New Revision: 56063

Modified:
   branches/Branch_4_0/testsuite/.project
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/JBWS463TestCase.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestJavaBean.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestSEI.java
   branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/jaxrpc-mapping.xml
   branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/wsdl/TestService.wsdl
Log:
[JBWS-463] JBoss doesn't support overloaded methods in SEIs
Add test method for Andrei's use case



Modified: branches/Branch_4_0/testsuite/.project
===================================================================
--- branches/Branch_4_0/testsuite/.project	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/.project	2006-08-18 13:54:54 UTC (rev 56063)
@@ -3,7 +3,6 @@
 	<name>testsuite</name>
 	<comment></comment>
 	<projects>
-		<project>aop</project>
 		<project>aspects</project>
 		<project>cache</project>
 		<project>cluster</project>

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/JBWS463TestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/JBWS463TestCase.java	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/JBWS463TestCase.java	2006-08-18 13:54:54 UTC (rev 56063)
@@ -39,7 +39,7 @@
 public class JBWS463TestCase extends WebserviceTestBase
 {
    private static TestSEI port;
-   
+
    public JBWS463TestCase(String name)
    {
       super(name);
@@ -67,10 +67,15 @@
       assertEquals("doStuff(Integer 1)", retObj);
    }
 
-
    public void testDouble() throws Exception
    {
       String retObj = port.doStuff(new Double(1));
       assertEquals("doStuff(Double 1.0)", retObj);
    }
+
+   public void testDoubleBoolean() throws Exception
+   {
+      String retObj = port.doStuff(new Double(1), true);
+      assertEquals("doStuff(Double 1.0, boolean true)", retObj);
+   }
 }

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestJavaBean.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestJavaBean.java	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestJavaBean.java	2006-08-18 13:54:54 UTC (rev 56063)
@@ -27,18 +27,25 @@
 public class TestJavaBean implements TestSEI
 {
    private static Logger log = Logger.getLogger(TestJavaBean.class);
-   
-   public String doStuff(Integer in) 
+
+   public String doStuff(Integer in)
    {
       String logMsg = "doStuff(Integer " + in + ")";
       log.info(logMsg);
       return logMsg;
    }
-   
-   public String doStuff(Double in) 
+
+   public String doStuff(Double in)
    {
       String logMsg = "doStuff(Double " + in + ")";
       log.info(logMsg);
       return logMsg;
    }
+
+   public String doStuff(Double in, boolean yesno)
+   {
+      String logMsg = "doStuff(Double " + in + ", boolean " + yesno + ")";
+      log.info(logMsg);
+      return logMsg;
+   }
 }

Modified: branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestSEI.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestSEI.java	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/webservice/jbws463/TestSEI.java	2006-08-18 13:54:54 UTC (rev 56063)
@@ -27,6 +27,6 @@
 public interface TestSEI extends Remote
 {
    public String doStuff(Integer in) throws RemoteException;
-
    public String doStuff(Double in) throws RemoteException;
+   public String doStuff(Double in, boolean yesno) throws RemoteException;
 }

Modified: branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/jaxrpc-mapping.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/jaxrpc-mapping.xml	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/jaxrpc-mapping.xml	2006-08-18 13:54:54 UTC (rev 56063)
@@ -51,5 +51,32 @@
     <wsdl-message-part-name>result</wsdl-message-part-name>
    </wsdl-return-value-mapping>
   </service-endpoint-method-mapping>
+  <service-endpoint-method-mapping>
+   <java-method-name>doStuff</java-method-name>
+   <wsdl-operation>doStuff3</wsdl-operation>
+   <method-param-parts-mapping>
+    <param-position>0</param-position>
+    <param-type>java.lang.Integer</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.webservice/jbws463'>wsdlMsgNS:TestSEI_doStuff3</wsdl-message>
+     <wsdl-message-part-name>Double_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>boolean</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.test.webservice/jbws463'>wsdlMsgNS:TestSEI_doStuff3</wsdl-message>
+     <wsdl-message-part-name>Boolean_1</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://org.jboss.test.webservice/jbws463'>wsdlMsgNS:TestSEI_doStuff3Response</wsdl-message>
+    <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

Modified: branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/wsdl/TestService.wsdl
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/wsdl/TestService.wsdl	2006-08-18 13:37:14 UTC (rev 56062)
+++ branches/Branch_4_0/testsuite/src/resources/webservice/jbws463/WEB-INF/wsdl/TestService.wsdl	2006-08-18 13:54:54 UTC (rev 56063)
@@ -13,6 +13,13 @@
  <message name='TestSEI_doStuff2Response'>
   <part name='result' type='xsd:string'/>
  </message>
+ <message name='TestSEI_doStuff3'>
+  <part name='Double_1' type='xsd:double'/>
+  <part name='Boolean_1' type='xsd:boolean'/>  
+ </message>
+ <message name='TestSEI_doStuff3Response'>
+  <part name='result' type='xsd:string'/>
+ </message> 
  <portType name='TestSEI'>
   <operation name='doStuff' parameterOrder='Double_1'>
    <input message='tns:TestSEI_doStuff'/>
@@ -22,6 +29,10 @@
    <input message='tns:TestSEI_doStuff2'/>
    <output message='tns:TestSEI_doStuff2Response'/>
   </operation>
+  <operation name='doStuff3' parameterOrder='Double_1 Boolean_1'>
+   <input message='tns:TestSEI_doStuff3'/>
+   <output message='tns:TestSEI_doStuff3Response'/>
+  </operation>  
  </portType>
  <binding name='TestSEIBinding' type='tns:TestSEI'>
   <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
@@ -43,6 +54,15 @@
     <soap:body namespace='http://org.jboss.test.webservice/jbws463' use='literal'/>
    </output>
   </operation>
+  <operation name='doStuff3'>
+   <soap:operation soapAction=''/>
+   <input>
+    <soap:body namespace='http://org.jboss.test.webservice/jbws463' use='literal'/>
+   </input>
+   <output>
+    <soap:body namespace='http://org.jboss.test.webservice/jbws463' use='literal'/>
+   </output>
+  </operation>  
  </binding>
  <service name='TestService'>
   <port binding='tns:TestSEIBinding' name='TestSEIPort'>




More information about the jboss-cvs-commits mailing list