Author: thomas.diesler(a)jboss.com
Date: 2006-10-25 17:58:28 -0400 (Wed, 25 Oct 2006)
New Revision: 1312
Added:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml
Removed:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml
Modified:
branches/jbossws-1.0/src/test/ant/build-jars-jaxrpc.xml
Log:
Add jaxrpc <service-ref> test
Modified: branches/jbossws-1.0/src/test/ant/build-jars-jaxrpc.xml
===================================================================
--- branches/jbossws-1.0/src/test/ant/build-jars-jaxrpc.xml 2006-10-25 21:53:05 UTC (rev
1311)
+++ branches/jbossws-1.0/src/test/ant/build-jars-jaxrpc.xml 2006-10-25 21:58:28 UTC (rev
1312)
@@ -1624,6 +1624,59 @@
</metainf>
</jar>
+ <!-- jaxrpc-webserviceref -->
+ <war warfile="${build.test.dir}/libs/jaxrpc-webserviceref.war"
webxml="${build.test.dir}/resources/jaxrpc/webserviceref/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.class"/>
+ </classes>
+ <webinf
dir="${build.test.dir}/resources/jaxrpc/webserviceref/META-INF">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ <webinf
dir="${build.test.dir}/resources/jaxrpc/webserviceref/WEB-INF">
+ <include name="webservices.xml"/>
+ </webinf>
+ </war>
+ <jar
destfile="${build.test.dir}/libs/jaxrpc-webserviceref-client.jar">
+ <fileset dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${build.test.dir}/resources/jaxrpc/webserviceref/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
+ <war
destfile="${build.test.dir}/libs/jaxrpc-webserviceref-servlet-client.war"
webxml="${build.test.dir}/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml">
+ <classes dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.class"/>
+ </classes>
+ <webinf
dir="${build.test.dir}/resources/jaxrpc/webserviceref/META-INF">
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar
destfile="${build.test.dir}/libs/jaxrpc-webserviceref-ejb-client.jar">
+ <fileset dir="${build.test.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${build.test.dir}/resources/jaxrpc/webserviceref/META-INF">
+ <include name="ejb-jar.xml"/>
+ <include name="jaxrpc-mapping.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
+
<!-- jaxrpc-wseventing -->
<war warfile="${build.test.dir}/libs/jaxrpc-wseventing.war"
webxml="${build.test.dir}/resources/jaxrpc/wseventing/WEB-INF/web.xml">
<classes dir="${build.test.dir}/classes">
Copied: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref (from
rev 1310, trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,67 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.rmi.RemoteException;
-import java.util.ArrayList;
-
-import javax.naming.InitialContext;
-import javax.xml.rpc.Service;
-import javax.xml.ws.WebServiceException;
-
-import org.jboss.logging.Logger;
-
-public class ApplicationClient
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ApplicationClient.class);
-
- public static InitialContext encCtx;
- public static String retStr;
-
- public static void main(String[] args) throws RemoteException
- {
- String inStr = args[0];
- log.info("echo: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- try
- {
-
ports.add((TestEndpoint)((Service)encCtx.lookup("java:comp/env/service1")).getPort(TestEndpoint.class));
-
ports.add(((TestEndpointService)encCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
- }
- catch (Exception ex)
- {
- log.error("Cannot add port", ex);
- throw new WebServiceException(ex);
- }
-
- for (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new WebServiceException("Invalid echo return: " + inStr);
- }
-
- retStr = inStr;
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java)
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ApplicationClient.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -0,0 +1,67 @@
+/*
+ * 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.jaxrpc.webserviceref;
+
+import java.rmi.RemoteException;
+import java.util.ArrayList;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.JAXRPCException;
+import javax.xml.rpc.Service;
+
+import org.jboss.logging.Logger;
+
+public class ApplicationClient
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ApplicationClient.class);
+
+ public static InitialContext encCtx;
+ public static String retStr;
+
+ public static void main(String[] args) throws RemoteException
+ {
+ String inStr = args[0];
+ log.info("echo: " + inStr);
+
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ try
+ {
+
ports.add((TestEndpoint)((Service)encCtx.lookup("java:comp/env/service1")).getPort(TestEndpoint.class));
+
ports.add(((TestEndpointService)encCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+ }
+ catch (Exception ex)
+ {
+ log.error("Cannot add port", ex);
+ throw new JAXRPCException(ex);
+ }
+
+ for (TestEndpoint port : ports)
+ {
+ String outStr = port.echo(inStr);
+ if (inStr.equals(outStr) == false)
+ throw new JAXRPCException("Invalid echo return: " + inStr);
+ }
+
+ retStr = inStr;
+ }
+}
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,92 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.rmi.RemoteException;
-import java.util.ArrayList;
-
-import javax.ejb.EJBException;
-import javax.ejb.SessionBean;
-import javax.ejb.SessionContext;
-import javax.naming.InitialContext;
-import javax.xml.rpc.JAXRPCException;
-import javax.xml.rpc.Service;
-
-import org.jboss.logging.Logger;
-
-public class EJBClient implements SessionBean
-{
- // Provide logging
- private static Logger log = Logger.getLogger(EJBClient.class);
-
- private SessionContext context;
-
- public String echo(String inStr) throws RemoteException
- {
- log.info("echo: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- 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 JAXRPCException(ex);
- }
-
- for (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new JAXRPCException("Invalid echo return: " + inStr);
- }
-
- return inStr;
- }
-
- // EJB Lifecycle
----------------------------------------------------------------------
-
- public void setSessionContext(SessionContext context) throws EJBException,
RemoteException
- {
- this.context = context;
- }
-
- public void ejbCreate()
- {
- }
-
- public void ejbRemove()
- {
- }
-
- public void ejbActivate()
- {
- }
-
- public void ejbPassivate()
- {
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBClient.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,31 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBObject;
-
-public interface EJBRemote extends EJBObject
-{
- String echo(String input) throws RemoteException;
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemote.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,32 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-public interface EJBRemoteHome extends EJBHome
-{
- EJBRemote create() throws CreateException, RemoteException;
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/EJBRemoteHome.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,70 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-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.rpc.Service;
-import javax.xml.ws.WebServiceException;
-
-import org.jboss.logging.Logger;
-
-public class ServletClient extends HttpServlet
-{
- // Provide logging
- private static Logger log = Logger.getLogger(ServletClient.class);
-
- @Override
- protected void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
- {
- String inStr = req.getParameter("echo");
- log.info("doGet: " + inStr);
-
- ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
- 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 (TestEndpoint port : ports)
- {
- String outStr = port.echo(inStr);
- if (inStr.equals(outStr) == false)
- throw new WebServiceException("Invalid echo return: " + inStr);
- }
-
- res.getWriter().print(inStr);
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java)
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/ServletClient.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -0,0 +1,70 @@
+/*
+ * 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.jaxrpc.webserviceref;
+
+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.rpc.JAXRPCException;
+import javax.xml.rpc.Service;
+
+import org.jboss.logging.Logger;
+
+public class ServletClient extends HttpServlet
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(ServletClient.class);
+
+ @Override
+ protected void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
+ {
+ String inStr = req.getParameter("echo");
+ log.info("doGet: " + inStr);
+
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ 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 JAXRPCException(ex);
+ }
+
+ for (TestEndpoint port : ports)
+ {
+ String outStr = port.echo(inStr);
+ if (inStr.equals(outStr) == false)
+ throw new JAXRPCException("Invalid echo return: " + inStr);
+ }
+
+ res.getWriter().print(inStr);
+ }
+}
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,31 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
-
-
-public interface TestEndpoint extends Remote
-{
- String echo(String arg0) throws RemoteException;
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpoint.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,42 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import org.jboss.logging.Logger;
-
-/**
- * Test the JAXRPC <service-ref>
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 23-Oct-2006
- */
-public class TestEndpointImpl implements TestEndpoint
-{
- // Provide logging
- private static Logger log = Logger.getLogger(TestEndpointImpl.class);
-
- public String echo(String input)
- {
- log.info(input);
- return input;
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointImpl.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,19 +0,0 @@
-/*
-* JBoss, the OpenSource EJB server
-* Distributable under LGPL license. See terms of license at
gnu.org.
-*/
-
-//Auto Generated by jbossws - Please do not edit!!!
-
-package org.jboss.test.ws.jaxrpc.webserviceref;
-
-
-import javax.xml.rpc.*;
-
-
-public interface TestEndpointService extends javax.xml.rpc.Service
-{
-
- public org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint getTestEndpointPort()
throws ServiceException;
-
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/TestEndpointService.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,82 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXRPC <service-ref>
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefClientTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxrpc-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefClientTestCase.class,
"jaxrpc-webserviceref.war, jaxrpc-webserviceref-client.jar");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new
File("resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- URL mappingURL = new
File("resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref",
"TestEndpointService");
- Service service = new ServiceFactoryImpl().createService(wsdlURL, qname,
mappingURL);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello World!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testApplicationClient() throws Exception
- {
- String helloWorld = "Hello World!";
- ApplicationClient.encCtx = getInitialContext();
- ApplicationClient.main(new String[]{helloWorld});
- assertEquals(helloWorld, ApplicationClient.retStr);
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefClientTestCase.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,87 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.io.File;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.naming.InitialContext;
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXRPC <service-ref>
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefEJBTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxrpc-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefEJBTestCase.class,
"jaxrpc-webserviceref.war, jaxrpc-webserviceref-ejb-client.jar");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new
File("resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- URL mappingURL = new
File("resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref",
"TestEndpointService");
- Service service = new ServiceFactoryImpl().createService(wsdlURL, qname,
mappingURL);
- TestEndpoint port = (TestEndpoint)service.getPort(TestEndpoint.class);
-
- String helloWorld = "Hello World!";
- Object retObj = port.echo(helloWorld);
- assertEquals(helloWorld, retObj);
- }
-
- public void testEJBClient() throws Exception
- {
- InitialContext iniCtx = getInitialContext();
- EJBRemoteHome ejbHome = (EJBRemoteHome)iniCtx.lookup("/ejb/EJBClient");
- EJBRemote ejbRemote = ejbHome.create();
-
- String helloWorld = "Hello World!";
- Object retObj = ejbRemote.echo(helloWorld);
- assertEquals(helloWorld, retObj);
-
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefEJBTestCase.java)
Deleted:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
===================================================================
---
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,84 +0,0 @@
-/*
- * 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.jaxrpc.webserviceref;
-
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.InputStreamReader;
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.rpc.Service;
-
-import junit.framework.Test;
-
-import org.jboss.test.ws.JBossWSTest;
-import org.jboss.test.ws.JBossWSTestSetup;
-import org.jboss.ws.jaxrpc.ServiceFactoryImpl;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
-import org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory;
-
-/**
- * Test the JAXRPC <service-ref>
- *
- * @author Thomas.Diesler(a)jboss.com
- * @since 23-Oct-2005
- */
-public class WebServiceRefServletTestCase extends JBossWSTest
-{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxrpc-webserviceref";
-
- public static Test suite()
- {
- return JBossWSTestSetup.newTestSetup(WebServiceRefServletTestCase.class,
"jaxrpc-webserviceref.war, jaxrpc-webserviceref-servlet-client.war");
- }
-
- public void testWSDLAccess() throws MalformedURLException
- {
- URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
- WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
- WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
- assertNotNull(wsdlDefinitions);
- }
-
- public void testDynamicProxy() throws Exception
- {
- URL wsdlURL = new
File("resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl").toURL();
- URL mappingURL = new
File("resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml").toURL();
- QName qname = new QName("http://org.jboss.ws/wsref",
"TestEndpointService");
- Service service = new ServiceFactoryImpl().createService(wsdlURL, qname,
mappingURL);
- 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);
- }
-}
Copied:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java
(from rev 1310,
trunk/src/test/java/org/jboss/test/ws/jaxrpc/webserviceref/WebServiceRefServletTestCase.java)
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref (from rev 1310,
trunk/src/test/resources/jaxrpc/webserviceref)
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF (from rev
1310, trunk/src/test/resources/jaxrpc/webserviceref/META-INF)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml
===================================================================
---
trunk/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<application-client
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/application-client_1_4.xsd"
- version="1.4">
-
- <display-name>JAXRPC simple tests</display-name>
-
- <service-ref>
- <service-ref-name>service1</service-ref-name>
- <service-interface>javax.xml.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
- <service-ref>
- <service-ref-name>service2</service-ref-name>
-
<service-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpointService</service-interface>
- <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
- <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
-</application-client>
-
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml
(from rev 1310,
trunk/src/test/resources/jaxrpc/webserviceref/META-INF/application-client.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml 2006-10-25 21:39:42
UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<ejb-jar
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/ejb-jar_2_1.xsd"
- version="2.1">
-
- <enterprise-beans>
- <session>
- <ejb-name>ejb/EJBClient</ejb-name>
- <home>org.jboss.test.ws.jaxrpc.webserviceref.EJBRemoteHome</home>
- <remote>org.jboss.test.ws.jaxrpc.webserviceref.EJBRemote</remote>
-
<ejb-class>org.jboss.test.ws.jaxrpc.webserviceref.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.rpc.Service</service-interface>
- <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
-
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
- <service-ref>
- <service-ref-name>service2</service-ref-name>
-
<service-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpointService</service-interface>
- <wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
-
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
- </session>
- </enterprise-beans>
-
-</ejb-jar>
-
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml
(from rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/META-INF/ejb-jar.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,37 +0,0 @@
-<?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.webserviceref</package-type>
- <namespaceURI>http://org.jboss.ws/wsref/types</namespaceURI>
- </package-mapping>
- <service-interface-mapping>
-
<service-interface>org.jboss.test.ws.jaxrpc.webserviceref.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.webserviceref.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
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml
(from rev 1310,
trunk/src/test/resources/jaxrpc/webserviceref/META-INF/jaxrpc-mapping.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,9 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' ?>
-
-<!DOCTYPE jboss-client PUBLIC
- "-//JBoss//DTD Application Client 4.0//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-client_4_0.dtd">
-
-<jboss-client>
- <jndi-name>jbossws-client</jndi-name>
-</jboss-client>
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml
(from rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/META-INF/jboss-client.xml)
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl (from
rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
---
trunk/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<definitions name='TestEndpointService'
targetNamespace='http://org.jboss.ws/wsref'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://org.jboss.ws/wsref'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
- <types/>
- <message name='TestEndpoint_echo'>
- <part name='String_1' type='xsd:string'/>
- </message>
- <message name='TestEndpoint_echoResponse'>
- <part name='result' type='xsd:string'/>
- </message>
- <portType name='TestEndpoint'>
- <operation name='echo' parameterOrder='String_1'>
- <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://org.jboss.ws/wsref'
use='literal'/>
- </input>
- <output>
- <soap:body namespace='http://org.jboss.ws/wsref'
use='literal'/>
- </output>
- </operation>
- </binding>
- <service name='TestEndpointService'>
- <port binding='tns:TestEndpointBinding' name='TestEndpointPort'>
- <soap:address
location='http://@jbosstest.host.name@:8080/jaxrpc-webserviceref'/>
- </port>
- </service>
-</definitions>
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
(from rev 1310,
trunk/src/test/resources/jaxrpc/webserviceref/META-INF/wsdl/TestEndpoint.wsdl)
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF (from rev
1310, trunk/src/test/resources/jaxrpc/webserviceref/WEB-INF)
Deleted: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml 2006-10-25 21:39:42 UTC
(rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,15 +0,0 @@
-<?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.jaxrpc.webserviceref.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
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml (from
rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/WEB-INF/web.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,15 +0,0 @@
-<webservices version='1.1'
xmlns='http://java.sun.com/xml/ns/j2ee'
xmlns:impl='http://org.jboss.ws/wsref'
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_web_services_1_1.xsd'>
- <webservice-description>
-
<webservice-description-name>TestEndpointService</webservice-description-name>
- <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
- <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component>
- <port-component-name>TestEndpointPort</port-component-name>
- <wsdl-port>impl:TestEndpointPort</wsdl-port>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- <service-impl-bean>
- <servlet-link>TestEndpoint</servlet-link>
- </service-impl-bean>
- </port-component>
- </webservice-description>
-</webservices>
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml (from
rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/WEB-INF/webservices.xml)
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client (from
rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/servlet-client)
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF (from
rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml
===================================================================
---
trunk/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,36 +0,0 @@
-<?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>ServletClient</servlet-name>
-
<servlet-class>org.jboss.test.ws.jaxrpc.webserviceref.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.rpc.Service</service-interface>
- <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
- <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
- <service-ref>
- <service-ref-name>service2</service-ref-name>
-
<service-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpointService</service-interface>
- <wsdl-file>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
- <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
- <port-component-ref>
-
<service-endpoint-interface>org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint</service-endpoint-interface>
- </port-component-ref>
- </service-ref>
-
-</web-app>
\ No newline at end of file
Copied:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml
(from rev 1310,
trunk/src/test/resources/jaxrpc/webserviceref/servlet-client/WEB-INF/web.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools -cp ../../../../../output/tests/classes -config wstools-java-wsdl.xml
--->
-
-<configuration
xmlns="http://www.jboss.org/jbossws-tools"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
-
- <global>
- <package-namespace package="org.jboss.test.ws.jaxrpc.webserviceref"
namespace="http://org.jboss.ws/wsref"/>
- </global>
-
- <java-wsdl>
- <service name="TestEndpointService" style="rpc"
endpoint="org.jboss.test.ws.jaxrpc.webserviceref.TestEndpoint"/>
- <namespaces target-namespace="http://org.jboss.ws/wsref"
type-namespace="http://org.jboss.ws/wsref/types"/>
- <mapping file="jaxrpc-mapping.xml"/>
- <webservices servlet-link="TestEndpoint"/>
- </java-wsdl>
-
-</configuration>
\ No newline at end of file
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml
(from rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/wstools-java-wsdl.xml)
Deleted:
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml
===================================================================
--- trunk/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml 2006-10-25
21:39:42 UTC (rev 1310)
+++
branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml 2006-10-25
21:58:28 UTC (rev 1312)
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- wstools -config wstools-wsdl-java.xml
--->
-
-<configuration
xmlns="http://www.jboss.org/jbossws-tools"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xsi:schemaLocation="http://www.jboss.org/jbossws-tools
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd">
-
- <global>
- <package-namespace package="org.jboss.test.ws.jaxrpc.webserviceref"
namespace="http://org.jboss.ws/wsref"/>
- </global>
-
- <wsdl-java location="META-INF/wsdl/TestEndpoint.wsdl">
- <mapping file="jaxrpc-mapping.xml"/>
- </wsdl-java>
-
-</configuration>
\ No newline at end of file
Copied: branches/jbossws-1.0/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml
(from rev 1310, trunk/src/test/resources/jaxrpc/webserviceref/wstools-wsdl-java.xml)