[jbossws-commits] JBossWS SVN: r3864 - in branches/hbraun/trunk: jbossws-core/src/test/java/org/jboss/test/ws/jaxws and 11 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Jul 12 12:28:46 EDT 2007


Author: heiko.braun at jboss.com
Date: 2007-07-12 12:28:46 -0400 (Thu, 12 Jul 2007)
New Revision: 3864

Added:
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBClient.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBRemote.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefClientTestCase.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefEJBTestCase.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefServletTestCase.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServletClient.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpoint.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.java
   branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointService.java
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/application-client.xml
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/ejb-jar.xml
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jaxrpc-mapping.xml
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jboss-client.xml
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/web.xml
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/
   branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml
Removed:
   branches/hbraun/trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/serviceref/
   branches/hbraun/trunk/jbossws-core/src/test/resources/jaxws/serviceref/
Modified:
   branches/hbraun/trunk/jbossws-core/ant-import-tests/build-jars-jaxws.xml
   branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml
Log:
Move service-ref tests to global test suite

Modified: branches/hbraun/trunk/jbossws-core/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- branches/hbraun/trunk/jbossws-core/ant-import-tests/build-jars-jaxws.xml	2007-07-12 16:23:59 UTC (rev 3863)
+++ branches/hbraun/trunk/jbossws-core/ant-import-tests/build-jars-jaxws.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -344,53 +344,6 @@
       </webinf>
     </war>
 
-		<!-- jaxws-serviceref -->
-		<war warfile="${tests.output.dir}/libs/jaxws-serviceref.war" webxml="${tests.output.dir}/resources/jaxws/serviceref/WEB-INF/web.xml">
-			<classes dir="${tests.output.dir}/classes">
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.class"/>
-            <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
-            <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
-         </classes>
-		</war>
-		<jar destfile="${tests.output.dir}/libs/jaxws-serviceref-client.jar">
-			<fileset dir="${tests.output.dir}/classes">
-				<include name="org/jboss/test/ws/jaxws/serviceref/ApplicationClient.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
-			</fileset>
-			<metainf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
-				<include name="application-client.xml"/>
-				<include name="jboss-client.xml"/>
-				<include name="wsdl/**"/>
-			</metainf>
-		</jar>
-		<war destfile="${tests.output.dir}/libs/jaxws-serviceref-servlet-client.war" webxml="${tests.output.dir}/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml">
-			<classes dir="${tests.output.dir}/classes">
-				<include name="org/jboss/test/ws/jaxws/serviceref/ServletClient.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
-			</classes>
-			<webinf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
-				<include name="wsdl/**"/>
-			</webinf>
-			<webinf dir="${tests.output.dir}/resources/jaxws/serviceref/servlet-client/WEB-INF">
-				<include name="jboss-web.xml"/>
-			</webinf>
-		</war>
-		<jar destfile="${tests.output.dir}/libs/jaxws-serviceref-ejb-client.jar">
-			<fileset dir="${tests.output.dir}/classes">
-				<include name="org/jboss/test/ws/jaxws/serviceref/EJBClient.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/EJBRemote.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
-				<include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
-			</fileset>
-			<metainf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
-				<include name="ejb-jar.xml"/>
-				<include name="jboss.xml"/>
-				<include name="wsdl/**"/>
-			</metainf>
-		</jar>
-
 		<!-- jaxws-wrapped-accessor -->
 		<war warfile="${tests.output.dir}/libs/jaxws-wrapped-accessor.war" webxml="${tests.output.dir}/resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
 			<classes dir="${tests.output.dir}/classes">

Modified: branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml
===================================================================
--- branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml	2007-07-12 16:23:59 UTC (rev 3863)
+++ branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -201,7 +201,54 @@
         <include name="wsdl/*"/>
       </metainf>
     </jar>
-    
+
+     <!-- jaxws-serviceref -->
+     <war warfile="${tests.output.dir}/libs/jaxws-serviceref.war" webxml="${tests.output.dir}/resources/jaxws/serviceref/WEB-INF/web.xml">
+        <classes dir="${tests.output.dir}/classes">
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
+        </classes>
+     </war>
+     <jar destfile="${tests.output.dir}/libs/jaxws-serviceref-client.jar">
+        <fileset dir="${tests.output.dir}/classes">
+           <include name="org/jboss/test/ws/jaxws/serviceref/ApplicationClient.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
+        </fileset>
+        <metainf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
+           <include name="application-client.xml"/>
+           <include name="jboss-client.xml"/>
+           <include name="wsdl/**"/>
+        </metainf>
+     </jar>
+     <war destfile="${tests.output.dir}/libs/jaxws-serviceref-servlet-client.war" webxml="${tests.output.dir}/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml">
+        <classes dir="${tests.output.dir}/classes">
+           <include name="org/jboss/test/ws/jaxws/serviceref/ServletClient.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
+        </classes>
+        <webinf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
+           <include name="wsdl/**"/>
+        </webinf>
+        <webinf dir="${tests.output.dir}/resources/jaxws/serviceref/servlet-client/WEB-INF">
+           <include name="jboss-web.xml"/>
+        </webinf>
+     </war>
+     <jar destfile="${tests.output.dir}/libs/jaxws-serviceref-ejb-client.jar">
+        <fileset dir="${tests.output.dir}/classes">
+           <include name="org/jboss/test/ws/jaxws/serviceref/EJBClient.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/EJBRemote.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpointService.class"/>
+           <include name="org/jboss/test/ws/jaxws/serviceref/TestEndpoint.class"/>
+        </fileset>
+        <metainf dir="${tests.output.dir}/resources/jaxws/serviceref/META-INF">
+           <include name="ejb-jar.xml"/>
+           <include name="jboss.xml"/>
+           <include name="wsdl/**"/>
+        </metainf>
+     </jar>
+
     <!-- jaxws-samples-soapbinding -->
     <war warfile="${tests.output.dir}/libs/jaxws-samples-soapbinding.war" webxml="${tests.output.dir}/resources/jaxws/samples/soapbinding/WEB-INF/web.xml">
       <classes dir="${tests.output.dir}/classes">

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBClient.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBClient.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBClient.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,81 @@
+/*
+ * 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.serviceref;
+
+import org.jboss.annotation.ejb.RemoteBinding;
+import org.jboss.logging.Logger;
+
+import javax.ejb.Remote;
+import javax.ejb.Stateless;
+import javax.naming.InitialContext;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.soap.SOAPBinding;
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+
+ at Remote(EJBRemote.class)
+ at RemoteBinding(jndiBinding = "/ejb/EJBClient")
+ at Stateless
+
+public class EJBClient 
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(EJBClient.class);
+
+   public String echo(String inStr) throws RemoteException
+   {
+      log.info("echo: " + inStr);
+
+      ArrayList ports = new ArrayList(2);
+
+      try
+      {
+         InitialContext iniCtx = new InitialContext();
+         ports.add((TestEndpoint)((Service)iniCtx.lookup("java:comp/env/service1")).getPort(TestEndpoint.class));
+         ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+      }
+      catch (Exception ex)
+      {
+        throw new WebServiceException(ex);
+      }
+
+      for (int i = 0; i < ports.size(); i++)
+      {
+         TestEndpoint port = (TestEndpoint)ports.get(i);
+
+         BindingProvider bp = (BindingProvider)port;
+         boolean mtomEnabled = ((SOAPBinding)bp.getBinding()).isMTOMEnabled();
+         boolean expectedSetting = (i==0) ? false : true;
+
+         if(mtomEnabled != expectedSetting)
+            throw new WebServiceException("MTOM settings (enabled="+expectedSetting+") not overridden through service-ref" );
+
+         String outStr = port.echo(inStr);
+         if (inStr.equals(outStr) == false)
+            throw new WebServiceException("Invalid echo return: " + inStr);
+      }
+
+      return inStr;
+   }
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBClient.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBRemote.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBRemote.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBRemote.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,28 @@
+/*
+  * 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.serviceref;
+
+
+public interface EJBRemote
+{
+   String echo(String input);
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/EJBRemote.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefClientTestCase.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefClientTestCase.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefClientTestCase.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,88 @@
+/*
+ * 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.serviceref;
+
+import junit.framework.Test;
+import org.jboss.wsf.spi.test.JBossWSTest;
+import org.jboss.wsf.spi.test.JBossWSTestSetup;
+
+import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.soap.SOAPBinding;
+import java.io.File;
+import java.io.InputStream;
+import java.net.URL;
+
+/**
+ * Test the JAXWS <service-ref>
+ *
+ * @author Thomas.Diesler at jboss.com
+ * @since 123-Mar-2007
+ */
+public class ServiceRefClientTestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-serviceref";
+
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(ServiceRefClientTestCase.class, "jaxws-serviceref.war, jaxws-serviceref-client.jar");
+   }
+
+   public void testWSDLAccess() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      InputStream inputStream = wsdlURL.openStream();
+      assertNotNull(inputStream);
+      inputStream.close();
+   }
+
+   public void testDynamicProxy() throws Exception
+   {
+      URL wsdlURL = new File("resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+      QName qname = new QName("http://serviceref.jaxws.ws.test.jboss.org/", "TestEndpointService");
+      Service service = Service.create(wsdlURL, qname);
+      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+      String request = "testDynamicProxy";
+      String response = port.echo(request);
+      assertEquals(request, response);
+   }
+
+   public void testApplicationClient() throws Exception
+   {
+      InitialContext iniCtx = getInitialContext("jbossws-client");
+      TestEndpoint port = ((Service)iniCtx.lookup("java:comp/env/service2")).getPort(TestEndpoint.class);
+      assertNotNull(port);
+
+      BindingProvider bp = (BindingProvider)port;
+      boolean mtomEnabled = ((SOAPBinding)bp.getBinding()).isMTOMEnabled();
+      assertTrue("MTOM should be enabled on port", mtomEnabled);
+
+      String request = "testApplicationClient";
+      String response = port.echo(request);
+      assertEquals(response, request);
+
+   }
+
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefClientTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefEJBTestCase.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefEJBTestCase.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefEJBTestCase.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,82 @@
+/*
+ * 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.serviceref;
+
+import junit.framework.Test;
+import org.jboss.wsf.spi.test.JBossWSTest;
+import org.jboss.wsf.spi.test.JBossWSTestSetup;
+
+import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.File;
+import java.io.InputStream;
+import java.net.URL;
+
+/**
+ * Test the JAXRPC <service-ref>
+ *
+ * @author Thomas.Diesler at jboss.com
+ * @since 23-Oct-2005
+ */
+public class ServiceRefEJBTestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-serviceref";
+   
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(ServiceRefEJBTestCase.class, "jaxws-serviceref.war, jaxws-serviceref-ejb-client.jar");
+   }
+
+   public void testWSDLAccess() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      InputStream inputStream = wsdlURL.openStream();
+      assertNotNull(inputStream);
+      inputStream.close();
+   }
+
+   
+   public void testDynamicProxy() throws Exception
+   {
+      URL wsdlURL = new File("resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+      QName qname = new QName("http://serviceref.jaxws.ws.test.jboss.org/", "TestEndpointService");
+      Service service = Service.create(wsdlURL, qname);
+      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+      String helloWorld = "testDynamicProxy";
+      Object retObj = port.echo(helloWorld);
+      assertEquals(helloWorld, retObj);
+   }
+
+
+   public void testEJBClient() throws Exception
+   {      
+      InitialContext iniCtx = getInitialContext();
+      EJBRemote ejbRemote = (EJBRemote)iniCtx.lookup("/ejb/EJBClient");
+
+      String helloWorld = "Hello World!";
+      Object retObj = ejbRemote.echo(helloWorld);
+      assertEquals(helloWorld, retObj);
+      
+   }
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefEJBTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefServletTestCase.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefServletTestCase.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefServletTestCase.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,79 @@
+/*
+ * 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.serviceref;
+
+import junit.framework.Test;
+import org.jboss.wsf.spi.test.JBossWSTest;
+import org.jboss.wsf.spi.test.JBossWSTestSetup;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.InputStreamReader;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/**
+ * Test the jaxws <service-ref>
+ *
+ * @author Thomas.Diesler at jboss.com
+ * @since 23-Oct-2005
+ */
+public class ServiceRefServletTestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-serviceref";
+   
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(ServiceRefServletTestCase.class, "jaxws-serviceref.war, jaxws-serviceref-servlet-client.war");
+   }
+
+   public void testWSDLAccess() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+      InputStream inputStream = wsdlURL.openStream();
+      assertNotNull(inputStream);
+      inputStream.close();
+   }
+  
+   public void testDynamicProxy() throws Exception
+   {
+      URL wsdlURL = new File("resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+      QName qname = new QName("http://serviceref.jaxws.ws.test.jboss.org/", "TestEndpointService");
+      Service service = Service.create(wsdlURL, qname);
+      TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
+
+      String helloWorld = "Hello World!";
+      Object retObj = port.echo(helloWorld);
+      assertEquals(helloWorld, retObj);     
+   }
+
+   public void testServletClient() throws Exception
+   {
+      URL url = new URL(TARGET_ENDPOINT_ADDRESS + "-servlet-client?echo=HelloWorld");
+      BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
+      String retStr = br.readLine();
+      assertEquals("HelloWorld", retStr);
+   }
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServiceRefServletTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServletClient.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServletClient.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServletClient.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,80 @@
+/*
+ * 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.serviceref;
+
+import java.io.IOException;
+import java.util.ArrayList;
+
+import javax.naming.InitialContext;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+
+public class ServletClient extends HttpServlet
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(ServletClient.class);
+
+   protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+   {
+      String inStr = req.getParameter("echo");
+      log.info("doGet: " + inStr);
+
+      ArrayList ports = new ArrayList();
+      try
+      {
+         InitialContext iniCtx = new InitialContext();
+         ports.add((TestEndpoint)((Service)iniCtx.lookup("java:comp/env/service1")).getPort(TestEndpoint.class));
+         ports.add(((TestEndpointService)iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+      }
+      catch (Exception ex)
+      {
+         log.error("Cannot add port", ex);
+         throw new WebServiceException(ex);
+      }
+
+      for (int i = 0; i < ports.size(); i++)
+      {
+         TestEndpoint port = (TestEndpoint)ports.get(i);
+
+         BindingProvider bp = (BindingProvider)port;
+         boolean mtomEnabled = ((SOAPBinding)bp.getBinding()).isMTOMEnabled();
+         boolean expectedSetting = (i==0) ? false : true;
+
+         if(mtomEnabled != expectedSetting)
+            throw new WebServiceException("MTOM settings (enabled="+expectedSetting+") not overridden through service-ref" );
+
+         String outStr = port.echo(inStr);
+         if (inStr.equals(outStr) == false)
+            throw new WebServiceException("Invalid echo return: " + inStr);
+      }
+
+      res.getWriter().print(inStr);
+   }
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/ServletClient.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpoint.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpoint.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpoint.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,40 @@
+
+package org.jboss.test.ws.jaxws.serviceref;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+
+/**
+ * JBossWS Generated Source
+ * 
+ * Generation Date: Mon Mar 12 15:09:39 CET 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.
+ * 
+ * JAX-WS Version: 2.0
+ * 
+ */
+ at WebService(name = "TestEndpoint", targetNamespace = "http://serviceref.jaxws.ws.test.jboss.org/")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface TestEndpoint {
+
+
+    /**
+     * 
+     * @param arg0
+     * @return
+     *     returns java.lang.String
+     */
+    @WebMethod
+    @WebResult(partName = "return")
+    public String echo(
+        @WebParam(name = "arg0", partName = "arg0")
+        String arg0);
+
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpoint.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,50 @@
+/*
+  * 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.serviceref;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Test the jaxws <service-ref>
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @since 12-Mar-2007
+ */
+
+ at WebService (name = "TestEndpoint")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class TestEndpointImpl 
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(TestEndpointImpl.class);
+   
+   @WebMethod
+   public String echo(String input)
+   {
+      log.info(input);
+      return input;
+   }
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointService.java
===================================================================
--- branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointService.java	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointService.java	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,59 @@
+
+package org.jboss.test.ws.jaxws.serviceref;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+
+/**
+ * JBossWS Generated Source
+ * 
+ * Generation Date: Mon Mar 12 15:09:39 CET 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.
+ * 
+ * JAX-WS Version: 2.0
+ * 
+ */
+ at WebServiceClient(name = "TestEndpointService", targetNamespace = "http://serviceref.jaxws.ws.test.jboss.org/", wsdlLocation = "http://tddell:8080/jaxws-serviceref?wsdl")
+public class TestEndpointService
+    extends Service
+{
+
+    private final static URL TESTENDPOINTSERVICE_WSDL_LOCATION;
+
+    static {
+        URL url = null;
+        try {
+            url = new URL("http://tddell:8080/jaxws-serviceref?wsdl");
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        }
+        TESTENDPOINTSERVICE_WSDL_LOCATION = url;
+    }
+
+    public TestEndpointService(URL wsdlLocation, QName serviceName) {
+        super(wsdlLocation, serviceName);
+    }
+
+    public TestEndpointService() {
+        super(TESTENDPOINTSERVICE_WSDL_LOCATION, new QName("http://serviceref.jaxws.ws.test.jboss.org/", "TestEndpointService"));
+    }
+
+    /**
+     * 
+     * @return
+     *     returns TestEndpoint
+     */
+    @WebEndpoint(name = "TestEndpointPort")
+    public TestEndpoint getTestEndpointPort() {
+        return (TestEndpoint)super.getPort(new QName("http://serviceref.jaxws.ws.test.jboss.org/", "TestEndpointPort"), TestEndpoint.class);
+    }
+
+}


Property changes on: branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/serviceref/TestEndpointService.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/application-client.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/application-client.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/application-client.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<application-client version="5" xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">
+
+  <display-name>jaxws simple tests</display-name>
+  
+  <service-ref>
+    <service-ref-name>service1</service-ref-name>
+    <service-interface>javax.xml.ws.Service</service-interface>
+    <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+  </service-ref>
+
+  <service-ref>
+    <service-ref-name>service2</service-ref-name>
+    <service-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpointService</service-interface>
+    <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+     <port-component-ref>
+      <service-endpoint-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpoint</service-endpoint-interface>
+      <enable-mtom>true</enable-mtom>
+    </port-component-ref>
+  </service-ref>
+
+</application-client>
+


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/application-client.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/ejb-jar.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/ejb-jar.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/ejb-jar.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<ejb-jar version="3.0"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+
+  <enterprise-beans>
+    <session>
+      <ejb-name>EJBClient</ejb-name>
+      <remote>org.jboss.test.ws.jaxws.serviceref.EJBRemote</remote>
+      <ejb-class>org.jboss.test.ws.jaxws.serviceref.EJBClient</ejb-class>
+      <session-type>Stateless</session-type>
+      <transaction-type>Container</transaction-type>
+      
+      <service-ref>
+        <service-ref-name>service1</service-ref-name>
+        <service-interface>javax.xml.ws.Service</service-interface>
+        <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>        
+      </service-ref>
+    
+      <service-ref>
+        <service-ref-name>service2</service-ref-name>
+        <service-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpointService</service-interface>
+        <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+        <port-component-ref>
+          <service-endpoint-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpoint</service-endpoint-interface>
+          <enable-mtom>true</enable-mtom>
+        </port-component-ref>
+      </service-ref>
+      
+    </session>
+  </enterprise-beans>
+  
+</ejb-jar>
+


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jaxrpc-mapping.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jaxrpc-mapping.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jaxrpc-mapping.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,37 @@
+<?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.jaxrpc.serviceref</package-type>
+  <namespaceURI>http://org.jboss.ws/wsref/types</namespaceURI>
+ </package-mapping>
+ <service-interface-mapping>
+  <service-interface>org.jboss.test.ws.jaxrpc.serviceref.TestEndpointService</service-interface>
+  <wsdl-service-name xmlns:serviceNS='http://org.jboss.ws/wsref'>serviceNS:TestEndpointService</wsdl-service-name>
+  <port-mapping>
+   <port-name>TestEndpointPort</port-name>
+   <java-port-name>TestEndpointPort</java-port-name>
+  </port-mapping>
+ </service-interface-mapping>
+ <service-endpoint-interface-mapping>
+  <service-endpoint-interface>org.jboss.test.ws.jaxrpc.serviceref.TestEndpoint</service-endpoint-interface>
+  <wsdl-port-type xmlns:portTypeNS='http://org.jboss.ws/wsref'>portTypeNS:TestEndpoint</wsdl-port-type>
+  <wsdl-binding xmlns:bindingNS='http://org.jboss.ws/wsref'>bindingNS:TestEndpointBinding</wsdl-binding>
+  <service-endpoint-method-mapping>
+   <java-method-name>echo</java-method-name>
+   <wsdl-operation>echo</wsdl-operation>
+   <method-param-parts-mapping>
+    <param-position>0</param-position>
+    <param-type>java.lang.String</param-type>
+    <wsdl-message-mapping>
+     <wsdl-message xmlns:wsdlMsgNS='http://org.jboss.ws/wsref'>wsdlMsgNS:TestEndpoint_echo</wsdl-message>
+     <wsdl-message-part-name>String_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.ws/wsref'>wsdlMsgNS:TestEndpoint_echoResponse</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


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jboss-client.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jboss-client.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jboss-client.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,14 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!DOCTYPE jboss-client PUBLIC "-//JBoss//DTD Application Client 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-client_5_0.dtd">
+
+<jboss-client>
+  <jndi-name>jbossws-client</jndi-name>
+
+  <!--service-ref>
+    <service-ref-name>service2</service-ref-name>
+    <port-component-ref>
+      <service-endpoint-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpoint</service-endpoint-interface>
+      <port-qname>{http://serviceref.jaxws.ws.test.jboss.org/}TestEndpointPort</port-qname>
+    </port-component-ref>
+  </service-ref-->
+</jboss-client>


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,32 @@
+<definitions name='TestEndpointService' targetNamespace='http://serviceref.jaxws.ws.test.jboss.org/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://serviceref.jaxws.ws.test.jboss.org/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types></types>
+ <message name='TestEndpoint_echoResponse'>
+  <part name='return' type='xsd:string'/>
+ </message>
+ <message name='TestEndpoint_echo'>
+  <part name='arg0' type='xsd:string'/>
+ </message>
+ <portType name='TestEndpoint'>
+  <operation name='echo' parameterOrder='arg0'>
+   <input message='tns:TestEndpoint_echo'/>
+   <output message='tns:TestEndpoint_echoResponse'/>
+  </operation>
+ </portType>
+ <binding name='TestEndpointBinding' type='tns:TestEndpoint'>
+  <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
+  <operation name='echo'>
+   <soap:operation soapAction=''/>
+   <input>
+    <soap:body namespace='http://serviceref.jaxws.ws.test.jboss.org/' use='literal'/>
+   </input>
+   <output>
+    <soap:body namespace='http://serviceref.jaxws.ws.test.jboss.org/' use='literal'/>
+   </output>
+  </operation>
+ </binding>
+ <service name='TestEndpointService'>
+  <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
+   <soap:address location='http://@jboss.bind.address@:8080/jaxws-serviceref'/>
+  </port>
+ </service>
+</definitions>
\ No newline at end of file


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/META-INF/wsdl/TestEndpoint.wsdl
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/web.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/web.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/web.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.4" 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://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+  
+  <servlet>
+    <servlet-name>TestEndpoint</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.serviceref.TestEndpointImpl</servlet-class>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>TestEndpoint</servlet-name>
+    <url-pattern>/*</url-pattern>
+  </servlet-mapping>
+</web-app>
\ No newline at end of file


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml
===================================================================
--- branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml	                        (rev 0)
+++ branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml	2007-07-12 16:28:46 UTC (rev 3864)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app version="2.4" 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/javaee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">
+  
+  <servlet>
+    <servlet-name>ServletClient</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.serviceref.ServletClient</servlet-class>
+  </servlet>
+  
+  <servlet-mapping>
+    <servlet-name>ServletClient</servlet-name>
+    <url-pattern>/*</url-pattern>
+  </servlet-mapping>
+  
+  <service-ref>
+    <service-ref-name>service1</service-ref-name>
+    <service-interface>javax.xml.ws.Service</service-interface>
+    <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+  </service-ref>
+
+  <service-ref>    
+    <service-ref-name>service2</service-ref-name>
+    <service-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpointService</service-interface>
+    <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+     <port-component-ref>
+      <service-endpoint-interface>org.jboss.test.ws.jaxws.serviceref.TestEndpoint</service-endpoint-interface>
+      <enable-mtom>true</enable-mtom>
+    </port-component-ref>
+  </service-ref>
+  
+</web-app>
\ No newline at end of file


Property changes on: branches/hbraun/trunk/testsuite/src/resources/jaxws/serviceref/servlet-client/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF




More information about the jbossws-commits mailing list