[jbossws-commits] JBossWS SVN: r4290 - stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Aug 9 07:32:41 EDT 2007


Author: heiko.braun at jboss.com
Date: 2007-08-09 07:32:41 -0400 (Thu, 09 Aug 2007)
New Revision: 4290

Added:
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSRpcSEI.java
Modified:
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Bare.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Wrapped.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithRPC_Bare.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWrappedSEI.java
Log:
svn merge -r4281:4282 https://svn.jboss.org/repos/jbossws/stack/native/branches/native-2.0

Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java	2007-08-09 11:23:39 UTC (rev 4289)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/JBWS1702TestCase.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -49,6 +49,17 @@
       return new JBossWSTestSetup(JBWS1702TestCase.class, "jaxws-jbws1702.war");
    }
 
+   public void testInheritanceRpc() throws Exception
+   {
+      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1702/SampleWSWithRPC_Bare?wsdl");
+      QName serviceName = new QName("http://jbws1702.jaxws.ws.test.jboss.org/", "SampleWSWithRPC_BareService");
+      Service service = Service.create(wsdlURL, serviceName);
+
+      SampleWSRpcSEI port = service.getPort(SampleWSRpcSEI.class);
+      ClassB b = port.getClassCAsClassB();      
+      assertTrue("Should be an instance of ClassC, but was " + b, (b instanceof ClassC));
+   }
+
    public void testInheritanceBare() throws Exception
    {
       URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jbws1702/SampleWSWithDocument_Bare?wsdl");

Copied: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSRpcSEI.java (from rev 4282, stack/native/branches/native-2.0/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSRpcSEI.java)
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSRpcSEI.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSRpcSEI.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, 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.jaxws.jbws1702;
+
+import org.jboss.test.ws.jaxws.jbws1702.types.ClassB;
+import org.jboss.test.ws.jaxws.jbws1702.types.ClassC;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * @author Heiko.Braun at jboss.com
+ * @version $Revision$
+ */
+ at WebService()
+ at SOAPBinding(
+  style = SOAPBinding.Style.RPC,
+  use = SOAPBinding.Use.LITERAL,
+  parameterStyle = SOAPBinding.ParameterStyle.BARE
+)
+
+public interface SampleWSRpcSEI
+{
+   ClassB getClassCAsClassB();
+
+   ClassC getClassC();
+}

Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Bare.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Bare.java	2007-08-09 11:23:39 UTC (rev 4289)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Bare.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -49,8 +49,7 @@
 
   /**
    * In .NET Client (C#) only the content information of ClassB is being submitted.  (--> propC is unknown)
-   */
-  //@WebMethod()
+   */  
   public ResponseWrapperB getClassCAsClassB() {
     ClassC classC= new ClassC();
     classC.setPropA("propA");
@@ -64,8 +63,7 @@
 
   /**
    * Method that make ClassC available for all clients using this web service.
-   */
-  //@WebMethod()
+   */  
   public ResponseWrapperC getClassC() {
     ClassC data = (ClassC) getClassCAsClassB().getData();
     ResponseWrapperC resp = new ResponseWrapperC();

Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Wrapped.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Wrapped.java	2007-08-09 11:23:39 UTC (rev 4289)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithDocument_Wrapped.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -51,7 +51,6 @@
   /**
    * In .NET Client (C#) only the content information of ClassB is being submitted. (--> propC is unknown)
    */
-  @WebMethod()
   public ClassB getClassCAsClassB() {
     ClassC classC= new ClassC();
     classC.setPropA("propA");
@@ -64,8 +63,7 @@
    * Method that make ClassC available for all clients using this web service.
    * !! Is there another possibility to make inherited classes available? In J2EE4 styled endpoints you could
    * declare additional Classes in a seperate xml descriptor file. !!
-   */
-  @WebMethod()
+   */  
   public ClassC getClassC() {
     return new ClassC();
   }

Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithRPC_Bare.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithRPC_Bare.java	2007-08-09 11:23:39 UTC (rev 4289)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWithRPC_Bare.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -38,8 +38,12 @@
  */
 
 @WebService()
- at SOAPBinding( style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE )
-public class SampleWSWithRPC_Bare
+ at SOAPBinding(
+  style = SOAPBinding.Style.RPC,
+  use = SOAPBinding.Use.LITERAL,
+  parameterStyle = SOAPBinding.ParameterStyle.BARE
+)
+public class SampleWSWithRPC_Bare implements SampleWSRpcSEI
 {
 
   /**
@@ -52,7 +56,6 @@
    * In .NET Client (C#) the follow error occurs:
    * "The specified type was not recognized: name='classC', namespace='', at <return xmlns=''>."
    */
-  @WebMethod()
   public ClassB getClassCAsClassB() {
     ClassC classC= new ClassC();
     classC.setPropA("propA");
@@ -65,8 +68,7 @@
    * Method that make ClassC available for all clients using this web service.
    * !! Is there another possibility to make inherited classes available? In J2EE4 styled endpoints you could
    * declare additional Classes in a seperate xml descriptor file. !!
-   */
-  @WebMethod()
+   */  
   public ClassC getClassC() {
     return new ClassC();
   }

Modified: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWrappedSEI.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWrappedSEI.java	2007-08-09 11:23:39 UTC (rev 4289)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1702/SampleWSWrappedSEI.java	2007-08-09 11:32:41 UTC (rev 4290)
@@ -34,9 +34,8 @@
 @WebService
 public interface SampleWSWrappedSEI
 {
-   @WebMethod()
+
    ClassB getClassCAsClassB();
 
-   @WebMethod()
    ClassC getClassC();
 }




More information about the jbossws-commits mailing list