Author: heiko.braun(a)jboss.com
Date: 2007-07-13 06:05:26 -0400 (Fri, 13 Jul 2007)
New Revision: 3873
Added:
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBClient.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBRemote.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpoint.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointImpl.java
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointService.java
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/application-client.xml
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/ejb-jar.xml
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jaxrpc-mapping.xml
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jboss-client.xml
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/wsdl/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/WEB-INF/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/WEB-INF/web.xml
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml
Modified:
branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml
Log:
Really move serviceref to samples
Modified: branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml
===================================================================
--- branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml 2007-07-13 09:37:29
UTC (rev 3872)
+++ branches/hbraun/trunk/testsuite/ant-import/build-jars-jaxws.xml 2007-07-13 10:05:26
UTC (rev 3873)
@@ -27,7 +27,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/asynchronous/TestEndpointBean.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-context -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-context.war"
webxml="${tests.output.dir}/resources/jaxws/samples/context/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -45,7 +45,7 @@
<include name="jboss.xml"/>
</metainf>
</jar>
-
+
<!-- jaxws-samples-eardeployment -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-eardeployment.war"
webxml="${tests.output.dir}/resources/jaxws/samples/eardeployment/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -92,7 +92,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-handlerchain -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-handlerchain.war"
webxml="${tests.output.dir}/resources/jaxws/samples/handlerchain/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -102,7 +102,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/handlerchain/jaxws-handlers-server.xml"/>
</classes>
</war>
-
+
<!-- jaxws-samples-httpbinding -->
<war
warfile="${tests.output.dir}/libs/jaxws-samples-httpbinding-jaxb.war"
webxml="${tests.output.dir}/resources/jaxws/samples/httpbinding/jaxb/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -124,7 +124,7 @@
<include name="wsdl/HttpBinding.wsdl"/>
</webinf>
</war>
-
+
<!-- jaxws-samples-logicalhandler -->
<war
warfile="${tests.output.dir}/libs/jaxws-samples-logicalhandler-source.war"
webxml="${tests.output.dir}/resources/jaxws/samples/logicalhandler/WEB-INF/web-source.xml">
@@ -153,14 +153,14 @@
<include
name="org/jboss/test/ws/jaxws/samples/logicalhandler/jaxws-server-jaxb-handlers.xml"/>
</classes>
</war>
-
+
<!-- jaxws-samples-oneway -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-oneway.war"
webxml="${tests.output.dir}/resources/jaxws/samples/oneway/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
<include
name="org/jboss/test/ws/jaxws/samples/oneway/PingEndpointImpl.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-provider -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-provider-jaxb.war"
webxml="${tests.output.dir}/resources/jaxws/samples/provider/jaxb/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -190,7 +190,7 @@
<include name="wsdl/Provider.wsdl"/>
</webinf>
</war>
-
+
<!-- jaxws-samples-retail -->
<jar jarfile="${tests.output.dir}/libs/jaxws-samples-retail.jar">
<fileset dir="${tests.output.dir}/classes">
@@ -277,7 +277,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/swaref/DocumentPayload*.class"/>
</fileset>
</jar>
-
+
<!-- jaxws-samples-webmethod -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-webmethod.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webmethod/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -285,7 +285,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/webmethod/TestEndpointImpl.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-webparam -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-webparam.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webparam/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -294,7 +294,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/webparam/SecurityHeader.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-webresult -->
<war warfile="${tests.output.dir}/libs/jaxws-samples-webresult.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webresult/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -303,7 +303,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/webresult/USAddress.class"/>
</classes>
</war>
-
+
<!-- jaxws-samples-webservice -->
<war
warfile="${tests.output.dir}/libs/jaxws-samples-webservice01-jse.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webservice/WEB-INF01/web.xml">
<classes dir="${tests.output.dir}/classes">
@@ -346,7 +346,7 @@
<include
name="org/jboss/test/ws/jaxws/samples/webservice/EndpointInterface03.class"/>
</fileset>
</jar>
-
+
<!-- jaxws-samples-xop-doclit -->
<war jarfile="${tests.output.dir}/libs/jaxws-samples-xop-doclit.war"
webxml="${tests.output.dir}/resources/jaxws/samples/xop/doclit/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Added:
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBClient.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBClient.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBClient.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.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;
+
+(a)Remote(EJBRemote.class)
+@RemoteBinding(jndiBinding = "/ejb/EJBClient")
+@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/samples/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/samples/serviceref/EJBRemote.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBRemote.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/EJBRemote.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.serviceref;
+
+
+public interface EJBRemote
+{
+ String echo(String input);
+}
Property changes on:
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/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/samples/serviceref/ServiceRefClientTestCase.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefClientTestCase.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,91 @@
+/*
+ * 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.samples.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 java.io.File;
+import java.io.InputStream;
+import java.net.URL;
+
+/**
+ * Test the JAXWS <service-ref>
+ *
+ * @author Thomas.Diesler(a)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/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new
QName("http://serviceref.samples.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");
+ Service service = (Service) iniCtx.lookup("java:comp/env/service2");
+ TestEndpoint port = service.getPort(TestEndpoint.class);
+ assertNotNull(port);
+
+ BindingProvider bp = (BindingProvider)port;
+
+ System.out.println("FIXME [JBWS-1736]: MTOM property at service-ref
level");
+
+ //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/samples/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/samples/serviceref/ServiceRefEJBTestCase.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefEJBTestCase.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.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(a)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/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new
QName("http://serviceref.samples.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/samples/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/samples/serviceref/ServiceRefServletTestCase.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServiceRefServletTestCase.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,78 @@
+/*
+ * 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.samples.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.URL;
+
+/**
+ * Test the jaxws <service-ref>
+ *
+ * @author Thomas.Diesler(a)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/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
+ QName qname = new
QName("http://serviceref.samples.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/samples/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/samples/serviceref/ServletClient.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/ServletClient.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.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/samples/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/samples/serviceref/TestEndpoint.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpoint.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpoint.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,40 @@
+
+package org.jboss.test.ws.jaxws.samples.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
+ *
+ */
+@WebService(name = "TestEndpoint", targetNamespace =
"http://serviceref.samples.jaxws.ws.test.jboss.org/")
+@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/samples/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/samples/serviceref/TestEndpointImpl.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointImpl.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointImpl.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.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(a)jboss.org
+ * @since 12-Mar-2007
+ */
+
+@WebService (name = "TestEndpoint")
+@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/samples/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/samples/serviceref/TestEndpointService.java
===================================================================
---
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointService.java
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointService.java 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,59 @@
+
+package org.jboss.test.ws.jaxws.samples.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
+ *
+ */
+@WebServiceClient(name = "TestEndpointService", targetNamespace =
"http://serviceref.samples.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.samples.jaxws.ws.test.jboss.org/",
"TestEndpointService"));
+ }
+
+ /**
+ *
+ * @return
+ * returns TestEndpoint
+ */
+ @WebEndpoint(name = "TestEndpointPort")
+ public TestEndpoint getTestEndpointPort() {
+ return (TestEndpoint)super.getPort(new
QName("http://serviceref.samples.jaxws.ws.test.jboss.org/",
"TestEndpointPort"), TestEndpoint.class);
+ }
+
+}
Property changes on:
branches/hbraun/trunk/testsuite/src/java/org/jboss/test/ws/jaxws/samples/serviceref/TestEndpointService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/application-client.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/application-client.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/application-client.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,28 @@
+<?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-qname
xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/"&...
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpointService</service-interface>
+ <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+ <service-qname
xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/"&...
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.samples.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/samples/serviceref/META-INF/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/ejb-jar.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/ejb-jar.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/ejb-jar.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,38 @@
+<?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.samples.serviceref.EJBRemote</remote>
+
<ejb-class>org.jboss.test.ws.jaxws.samples.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-qname
xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/"&...
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpointService</service-interface>
+ <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+ <service-qname
xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/"&...
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.samples.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/samples/serviceref/META-INF/ejb-jar.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jaxrpc-mapping.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jaxrpc-mapping.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jaxrpc-mapping.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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/samples/serviceref/META-INF/jaxrpc-mapping.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jboss-client.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jboss-client.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jboss-client.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.serviceref.TestEndpoint</service-endpoint-interface>
+
<
port-qname>{http://serviceref.samples.jaxws.ws.test.jboss.org/}TestEnd...
+ </port-component-ref>
+ </service-ref-->
+</jboss-client>
Property changes on:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,32 @@
+<definitions name='TestEndpointService'
targetNamespace='http://serviceref.samples.jaxws.ws.test.jboss.org/'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://serviceref.samples.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.samples.jaxws.ws.test.jboss.org/'
use='literal'/>
+ </input>
+ <output>
+ <soap:body
namespace='http://serviceref.samples.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/samples/serviceref/META-INF/wsdl/TestEndpoint.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/WEB-INF/web.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/WEB-INF/web.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/WEB-INF/web.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -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.samples.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/samples/serviceref/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml
===================================================================
---
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml
(rev 0)
+++
branches/hbraun/trunk/testsuite/src/resources/jaxws/samples/serviceref/servlet-client/WEB-INF/web.xml 2007-07-13
10:05:26 UTC (rev 3873)
@@ -0,0 +1,34 @@
+<?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.samples.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-qname>{http://serviceref.samples.jaxws.ws.test.jboss.org/}Test...
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpointService</service-interface>
+ <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
+
<
service-qname>{http://serviceref.samples.jaxws.ws.test.jboss.org/}Test...
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.samples.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/samples/serviceref/servlet-client/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF