Author: thomas.diesler(a)jboss.com
Date: 2008-04-09 10:22:56 -0400 (Wed, 09 Apr 2008)
New Revision: 6305
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServiceRefOverridesTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
stack/native/trunk/src/test/resources/jaxws/webserviceref/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/application-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jboss-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jbossws-client-config.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/TestEndpoint.wsdl
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/application-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/jboss-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/jboss-web.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/web.xml
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
Removed:
stack/native/trunk/src/test/java/org/jboss/test/ws/console/
Modified:
stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
stack/native/trunk/build.xml
Log:
Move jaxws/webserviceref to native
Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-09 14:20:01 UTC (rev
6304)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-04-09 14:22:56 UTC (rev
6305)
@@ -235,6 +235,131 @@
</metainf>
</jar>
+ <!-- jaxws-webserviceref -->
+ <war warfile="${tests.output.dir}/libs/jaxws-webserviceref.war"
webxml="${tests.output.dir}/resources/jaxws/webserviceref/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.class"/>
+ </classes>
+ </war>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.TestEndpointClientOne"/>
+ </manifest>
+ </jar>
+ <war
destfile="${tests.output.dir}/libs/jaxws-webserviceref-servlet-client.war"
webxml="${tests.output.dir}/resources/jaxws/webserviceref/WEB-INF-client/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/ServletClient.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </webinf>
+ <webinf
dir="${tests.output.dir}/resources/jaxws/webserviceref/WEB-INF-client">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-ejb3-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/EJB3Client.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/EJB3Remote.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/EchoResponse.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/Echo.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="jboss.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-secure.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.class"/>
+ </fileset>
+ </jar>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-secure-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF-secure">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.SecureEndpointClient"/>
+ </manifest>
+ </jar>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-override-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF-override">
+ <include name="jbossws-client-config.xml"/>
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF">
+ <include name="wsdl/**"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.TestEndpointClientTwo"/>
+ </manifest>
+ </jar>
+
+ <!-- jaxws-webserviceref-secure -->
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-secure.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.class"/>
+ </fileset>
+ </jar>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-secure-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF-secure">
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class"
value="org.jboss.test.ws.jaxws.webserviceref.SecureEndpointClient"/>
+ </manifest>
+ </jar>
+ <jar
destfile="${tests.output.dir}/libs/jaxws-webserviceref-override-client.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.class"/>
+ <include
name="org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.class"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/resources/jaxws/webserviceref/META-INF-override">
+ <include name="jbossws-client-config.xml"/>
+ <include name="application-client.xml"/>
+ <include name="jboss-client.xml"/>
+ <include name="wsdl/**"/>
+ </metainf>
+ <manifest>
+ <attribute name="main-class"
value="org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo"/>
+ </manifest>
+ </jar>
+
<!-- jaxws-wsdd -->
<war warfile="${tests.output.dir}/libs/jaxws-wsdd.war"
webxml="${tests.output.dir}/resources/jaxws/wsdd/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Modified: stack/native/trunk/build.xml
===================================================================
--- stack/native/trunk/build.xml 2008-04-09 14:20:01 UTC (rev 6304)
+++ stack/native/trunk/build.xml 2008-04-09 14:22:56 UTC (rev 6305)
@@ -339,7 +339,7 @@
<metainf dir="${core.resources.dir}/standard-config"/>
</jar>
- <!-- Build jbossws-context.war - START -->
+ <!-- Build jbossws-context.war -->
<copy todir="${core.output.resources.dir}/jbossws-context.war"
overwrite="true" filtering="true">
<fileset dir="${core.resources.dir}/jbossws-context.war"/>
<filterset>
@@ -348,7 +348,6 @@
<filtersfile file="${core.dir}/version.properties"/>
</filterset>
</copy>
-
<war warfile="${core.output.lib.dir}/jbossws-context.war"
webxml="${core.output.resources.dir}/jbossws-context.war/WEB-INF/web.xml"
manifest="${core.output.etc.dir}/default.mf">
@@ -360,7 +359,6 @@
<include name="jboss-web.xml"/>
</webinf>
</war>
- <!-- Build jbossws-context.war - END -->
<!-- Build jbossws-core-scripts.zip -->
<zip zipfile="${core.output.lib.dir}/jbossws-core-scripts.zip" >
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,35 @@
+
+package org.jboss.test.ws.jaxws.webserviceref;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "SecureEndpoint", targetNamespace =
"http://org.jboss.ws/wsref", wsdlLocation =
"http://localhost.localdomain:8080/jaxws-webserviceref-secure/SecureEndpoint?wsdl")
+@SOAPBinding(style = Style.RPC)
+public interface SecureEndpoint {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://org.jboss.ws/wsref", partName =
"return")
+ public String echo(
+ @WebParam(name = "arg0", partName = "arg0")
+ String arg0);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,92 @@
+/*
+ * 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.webserviceref;
+
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceRef;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.webserviceref.SecureEndpointService;
+
+public class SecureEndpointClient
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(SecureEndpointClient.class);
+
+ @WebServiceRef(name = "SecureService1")
+ static SecureEndpointService secureService1;
+
+ @WebServiceRef(name = "SecureService2")
+ static Service secureService2;
+
+ @WebServiceRef(name = "SecurePort1")
+ static SecureEndpoint securePort1;
+
+ static String retStr;
+
+ public static void main(String[] args)
+ {
+ String reqMsg = args[0];
+ log.info("echo: " + reqMsg);
+
+ String username = null;
+ if (args.length > 1)
+ username = args[1];
+
+ String password = null;
+ if (args.length > 2)
+ password = args[2];
+
+ if (reqMsg.equals("SecureService1"))
+ {
+ SecureEndpoint port = secureService1.getSecureEndpointPort();
+ retStr = invokeEndpoint(port, reqMsg, username, password);
+ }
+ else if (reqMsg.equals("SecureService2"))
+ {
+ SecureEndpoint port = secureService2.getPort(SecureEndpoint.class);
+ retStr = invokeEndpoint(port, reqMsg, username, password);
+ }
+ else if (reqMsg.equals("SecurePort1"))
+ {
+ SecureEndpoint port = securePort1;
+ retStr = invokeEndpoint(port, reqMsg, username, password);
+ }
+ else
+ {
+ throw new IllegalArgumentException("Invalid req messge: " + reqMsg);
+ }
+ }
+
+ private static String invokeEndpoint(SecureEndpoint port, String inStr, String
username, String password)
+ {
+ if (username != null && password != null)
+ {
+ BindingProvider bindingProvider = (BindingProvider)port;
+ bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
username);
+ bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
password);
+ }
+
+ return port.echo(inStr);
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointClient.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,53 @@
+/*
+ * 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.webserviceref;
+
+import javax.annotation.security.RolesAllowed;
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+
+import org.jboss.annotation.security.SecurityDomain;
+import org.jboss.logging.Logger;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@WebService(name = "SecureEndpoint", serviceName =
"SecureEndpointService", targetNamespace =
"http://org.jboss.ws/wsref")
+@Stateless(name = "SecureEndpoint")
+@SOAPBinding(style = Style.RPC)
+
+@WebContext(contextRoot="/jaxws-webserviceref-secure",
urlPattern="/*", authMethod = "BASIC", transportGuarantee =
"NONE", secureWSDLAccess = false)
+@SecurityDomain("JBossWS")
+@RolesAllowed("friend")
+public class SecureEndpointImpl
+{
+ // Provide logging
+ private static Logger log = Logger.getLogger(SecureEndpointImpl.class);
+
+ @WebMethod
+ public String echo(String input)
+ {
+ log.info(input);
+ return input;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,55 @@
+
+package org.jboss.test.ws.jaxws.webserviceref;
+
+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;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "SecureEndpointService", targetNamespace =
"http://org.jboss.ws/wsref", wsdlLocation =
"http://localhost.localdomain:8080/jaxws-webserviceref-secure/SecureEndpoint?wsdl")
+public class SecureEndpointService
+ extends Service
+{
+
+ private final static URL WSDL_LOCATION;
+ private final static QName SECUREENDPOINTSERVICE = new
QName("http://org.jboss.ws/wsref", "SecureEndpointService");
+ private final static QName SECUREENDPOINTPORT = new
QName("http://org.jboss.ws/wsref", "SecureEndpointPort");
+
+ static {
+ URL url = null;
+ try {
+ url = new
URL("http://localhost.localdomain:8080/jaxws-webserviceref-secure/SecureEndpoint?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public SecureEndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public SecureEndpointService() {
+ super(WSDL_LOCATION, SECUREENDPOINTSERVICE);
+ }
+
+ /**
+ *
+ * @return
+ * returns SecureEndpoint
+ */
+ @WebEndpoint(name = "SecureEndpointPort")
+ public SecureEndpoint getSecureEndpointPort() {
+ return (SecureEndpoint)super.getPort(SECUREENDPOINTPORT, SecureEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/SecureEndpointService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServiceRefOverridesTestCase.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServiceRefOverridesTestCase.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServiceRefOverridesTestCase.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,100 @@
+/*
+ * 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.webserviceref;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.client.ClientLauncher;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test @WebServiceRef overrides in jboss-client.xml
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 18-Jan-2007
+ */
+public class ServiceRefOverridesTestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-webserviceref";
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(ServiceRefOverridesTestCase.class,
"jaxws-webserviceref.war, jaxws-webserviceref-override-client.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+
+ if (TestEndpointClientTwo.iniCtx == null)
+ TestEndpointClientTwo.iniCtx = getInitialContext();
+ }
+
+ public void testService1() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName(), resStr);
+ }
+
+ public void testService2() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName(), resStr);
+ }
+
+ public void testService3() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName() + getName(), resStr);
+ }
+
+ public void testService4() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName() + getName(), resStr);
+ }
+
+ public void testPort1() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName(), resStr);
+ }
+
+ public void testPort2() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName() + getName(), resStr);
+ }
+
+ public void testPort3() throws Throwable
+ {
+ String resStr = invokeTest(getName());
+ assertEquals(getName() + getName(), resStr);
+ }
+
+ private String invokeTest(String reqStr) throws Throwable
+ {
+ new ClientLauncher().launch(TestEndpointClientTwo.class.getName(),
"jbossws-client", new String[] { reqStr });
+ return TestEndpointClientTwo.testResult.get(reqStr);
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/ServiceRefOverridesTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,117 @@
+/*
+ * 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.webserviceref;
+
+import java.net.URL;
+import java.io.InputStream;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ejb3.client.ClientLauncher;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test the JAXWS annotation: javax.xml.ws.WebServiceRef
+ *
+ * @author Thomas.Diesler(a)jboss.com
+ * @since 23-Oct-2005
+ */
+public class StubPropertyTestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-webserviceref-secure";
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(StubPropertyTestCase.class,
"jaxws-webserviceref-secure.jar, jaxws-webserviceref-secure-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 URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName qname = new QName("http://org.jboss.ws/wsref",
"SecureEndpointService");
+ Service service = Service.create(wsdlURL, qname);
+ SecureEndpoint port = (SecureEndpoint)service.getPort(SecureEndpoint.class);
+
+ BindingProvider bindingProvider = (BindingProvider)port;
+ bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
"kermit");
+ bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"thefrog");
+
+ String helloWorld = "Hello World";
+ Object retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testExplicitSecureService1() throws Throwable
+ {
+ String reqMsg = "SecureService1";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg, "kermit", "thefrog"
});
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+
+ public void testExplicitSecureService2() throws Throwable
+ {
+ String reqMsg = "SecureService2";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg, "kermit", "thefrog"
});
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+
+ public void testExplicitSecurePort1() throws Throwable
+ {
+ String reqMsg = "SecurePort1";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg, "kermit", "thefrog"
});
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+
+ public void testImplicitSecureService1() throws Throwable
+ {
+ String reqMsg = "SecureService1";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg });
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+
+ public void testImplicitSecureService2() throws Throwable
+ {
+ String reqMsg = "SecureService2";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg });
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+
+ public void testImplicitSecurePort1() throws Throwable
+ {
+ String reqMsg = "SecurePort1";
+ new ClientLauncher().launch(SecureEndpointClient.class.getName(),
"jbossws-client", new String[] { reqMsg });
+ assertEquals(reqMsg, SecureEndpointClient.retStr);
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/StubPropertyTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,53 @@
+/*
+ * 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.webserviceref;
+
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebParam;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebService(name = "TestEndpoint", targetNamespace =
"http://org.jboss.ws/wsref", wsdlLocation =
"http://localhost.localdomain:8080/jaxws-webserviceref?wsdl")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface TestEndpoint {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "http://org.jboss.ws/wsref", partName =
"return")
+ public String echo(
+ @WebParam(name = "arg0", partName = "arg0")
+ String arg0);
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,127 @@
+/*
+ * 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.webserviceref;
+
+import org.jboss.logging.Logger;
+
+import javax.naming.InitialContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.WebServiceRefs;
+import java.util.ArrayList;
+
+@WebServiceRef(name = "service1", value = TestEndpointService.class,
wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+
+// Test multiple on type
+@WebServiceRefs( {
+ @WebServiceRef(name = "service2", value = TestEndpointService.class),
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type =
TestEndpoint.class) })
+public class TestEndpointClientOne
+{
+ // Provide logging
+ private static Logger log =
Logger.getLogger(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.class);
+
+ // Test on field with name
+ @WebServiceRef(name = "TestEndpointService3")
+ static TestEndpointService service3;
+
+ // Test on field without name
+ @WebServiceRef
+ static TestEndpointService service4;
+
+ // Test on method with name
+ @WebServiceRef(name = "TestEndpointService5")
+ static void setService5(TestEndpointService service)
+ {
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service5 = service;
+ }
+ private static TestEndpointService service5;
+
+ // Test on method without name
+ @WebServiceRef
+ static void setService6(TestEndpointService service)
+ {
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service6 = service;
+ }
+ private static TestEndpointService service6;
+
+ // Test on field with name and value
+ @WebServiceRef(name = "Port2", value = TestEndpointService.class)
+ static TestEndpoint port2;
+
+ // Test on field with value
+ @WebServiceRef(value = TestEndpointService.class)
+ static TestEndpoint port3;
+
+ // Test on field
+ @WebServiceRef
+ static TestEndpoint port4;
+
+ // Test on field with name
+ @WebServiceRef (name = "Port5")
+ static TestEndpoint port5;
+
+ static InitialContext iniCtx;
+ static String retStr;
+
+ public static void main(String[] args)
+ {
+ String inStr = args[0];
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.log.info("echo:
" + inStr);
+
+ ArrayList<TestEndpoint> ports = new ArrayList<TestEndpoint>();
+ try
+ {
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/service1")).getTestEndpointPort());
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/service2")).getTestEndpointPort());
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service3.getPort(TestEndpoint.class));
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/TestEndpointService3")).getTestEndpointPort());
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service4.getPort(TestEndpoint.class));
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/"
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.class.getName() +
"/service4")).getTestEndpointPort());
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service5.getPort(TestEndpoint.class));
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/TestEndpointService5")).getTestEndpointPort());
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.service6.getPort(TestEndpoint.class));
+
ports.add(((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/"
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.class.getName() +
"/service6")).getTestEndpointPort());
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/port1"));
+ ports.add(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.port2);
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/Port2"));
+ ports.add(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.port3);
+
ports.add((TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.iniCtx.lookup("java:comp/env/"
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.class.getName() +
"/port3"));
+ ports.add(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.port4);
+ ports.add(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.port5);
+ }
+ catch (Exception ex)
+ {
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.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);
+ }
+
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne.retStr = inStr;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientOne.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,206 @@
+/*
+ * 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.webserviceref;
+
+import org.jboss.logging.Logger;
+import org.jboss.test.ws.jaxws.webserviceref.TestEndpoint;
+import org.jboss.test.ws.jaxws.webserviceref.TestEndpointService;
+
+import javax.naming.InitialContext;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.WebServiceRefs;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.HashMap;
+import java.util.Map;
+
+@WebServiceRef(name = "Service1")
+// Test multiple on type
+@WebServiceRefs( { @WebServiceRef(name = "Service2"), @WebServiceRef(name =
"Port1", type = TestEndpoint.class) })
+public class TestEndpointClientTwo
+{
+ // provide logging
+ private static final Logger log =
Logger.getLogger(org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.class);
+
+ // Test on field
+ @WebServiceRef(name = "Service3")
+ static Service service3;
+
+ // Test on field
+ @WebServiceRef(name = "Service4")
+ static TestEndpointService service4;
+
+ // Test on field
+ @WebServiceRef(name = "Port2")
+ static TestEndpoint port2;
+
+ // Test on field
+ @WebServiceRef(name = "Port3")
+ static TestEndpoint port3;
+
+ static InitialContext iniCtx;
+ static Map<String, String> testResult = new HashMap<String, String>();
+
+ public static void main(String[] args) throws Exception
+ {
+ String testName = args[0];
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo client = new
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo();
+ Method method =
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.class.getMethod(testName, new
Class[] { String.class });
+ try
+ {
+ String retStr = (String)method.invoke(client, testName);
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.testResult.put(testName,
retStr);
+ }
+ catch (InvocationTargetException ex)
+ {
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.log.error("Invocation
error", ex);
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.testResult.put(testName,
ex.getTargetException().toString());
+ }
+ catch (Exception ex)
+ {
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.log.error("Error",
ex);
+
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.testResult.put(testName,
ex.toString());
+ }
+ }
+
+ /**
+ * Customize service-class-name, service-qname
+ */
+ public String testService1(String reqStr) throws Exception
+ {
+ TestEndpointService service =
(TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Service1");
+ TestEndpoint port = service.getTestEndpointPort();
+ return port.echo(reqStr);
+ }
+
+ /**
+ * Customize config-name, config-file
+ */
+ public String testService2(String reqStr) throws Exception
+ {
+ Service service =
(Service)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Service2");
+
+ TestEndpoint port = service.getPort(TestEndpoint.class);
+ //verifyConfig((ConfigProvider)port);
+
+ return port.echo(reqStr);
+ }
+
+ /**
+ * Customize service-class-name, service-qname
+ */
+ public String testService3(String reqStr) throws Exception
+ {
+ TestEndpoint port =
((TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.service3).getTestEndpointPort();
+ String resStr1 = port.echo(reqStr);
+
+ TestEndpointService service =
(TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Service3");
+ port = service.getTestEndpointPort();
+
+ String resStr2 = port.echo(reqStr);
+
+ return resStr1 + resStr2;
+ }
+
+ /**
+ * Customize config-name, config-file
+ */
+ public String testService4(String reqStr) throws Exception
+ {
+ TestEndpoint port =
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.service4.getTestEndpointPort();
+ String resStr1 = port.echo(reqStr);
+ //verifyConfig((ConfigProvider)port);
+
+ TestEndpointService service =
(TestEndpointService)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Service4");
+ port = service.getTestEndpointPort();
+ //verifyConfig((ConfigProvider)port);
+
+ String resStr2 = port.echo(reqStr);
+
+ return resStr1 + resStr2;
+ }
+
+ /**
+ * Customize port-info: port-qname, config-name, config-file
+ */
+ public String testPort1(String reqStr) throws Exception
+ {
+ TestEndpoint port =
(TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Port1");
+ //verifyConfig((ConfigProvider)port);
+
+ return port.echo(reqStr);
+ }
+
+ /**
+ * Customize port-info: service-endpoint-interface, config-name, config-file
+ */
+ public String testPort2(String reqStr) throws Exception
+ {
+ //verifyConfig((ConfigProvider)port2);
+ String resStr1 =
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.port2.echo(reqStr);
+
+ TestEndpoint port =
(TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Port2");
+ //verifyConfig((ConfigProvider)port);
+
+ String resStr2 = port.echo(reqStr);
+
+ return resStr1 + resStr2;
+ }
+
+ /**
+ * Customize port-info: service-endpoint-interface, port-qname, stub-property
+ */
+ public String testPort3(String reqStr) throws Exception
+ {
+ String resStr1 =
org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.port3.echo(reqStr);
+
+ BindingProvider bp =
(BindingProvider)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.port3;
+ verifyProperties(bp.getRequestContext());
+
+ TestEndpoint port =
(TestEndpoint)org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientTwo.iniCtx.lookup("java:comp/env/Port3");
+ String resStr2 = port.echo(reqStr);
+
+ return resStr1 + resStr2;
+ }
+
+ private void verifyProperties(Map<String, Object> ctx)
+ {
+ String username = (String)ctx.get(BindingProvider.USERNAME_PROPERTY);
+ if ("kermit".equals(username) == false)
+ throw new RuntimeException("Invalid username: " + username);
+
+ String password = (String)ctx.get(BindingProvider.PASSWORD_PROPERTY);
+ if ("thefrog".equals(password) == false)
+ throw new RuntimeException("Invalid password: " + password);
+ }
+
+ /*private void verifyConfig(ConfigProvider cp)
+ {
+ if ("Custom Client".equals(cp.getConfigName()) == false)
+ throw new RuntimeException("Invalid config name: " +
cp.getConfigName());
+
+ if ("META-INF/jbossws-client-config.xml".equals(cp.getConfigFile()) ==
false)
+ throw new RuntimeException("Invalid config file: " +
cp.getConfigFile());
+ } */
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointClientTwo.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,43 @@
+/*
+ * 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.webserviceref;
+
+import org.jboss.logging.Logger;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(name = "TestEndpoint", serviceName =
"TestEndpointService", targetNamespace = "http://org.jboss.ws/wsref")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public class TestEndpointImpl
+{
+ // Provide logging
+ private static Logger log =
Logger.getLogger(org.jboss.test.ws.jaxws.webserviceref.TestEndpointImpl.class);
+
+ @WebMethod
+ public String echo(String input)
+ {
+ org.jboss.test.ws.jaxws.webserviceref.TestEndpointImpl.log.info(input);
+ return input;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,75 @@
+/*
+ * 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.webserviceref;
+
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.0-b26-ea3
+ * Generated source version: 2.0
+ *
+ */
+@WebServiceClient(name = "TestEndpointService", targetNamespace =
"http://org.jboss.ws/wsref", wsdlLocation =
"file://bogus-location/jaxws-webserviceref?wsdl")
+public class TestEndpointService
+ extends Service
+{
+
+ private final static URL WSDL_LOCATION;
+ private final static QName TESTENDPOINTSERVICE = new
QName("http://org.jboss.ws/wsref", "TestEndpointService");
+ private final static QName TESTENDPOINTPORT = new
QName("http://org.jboss.ws/wsref", "TestEndpointPort");
+
+ static {
+ URL url = null;
+ try {
+ url = new URL("file://bogus-location/jaxws-webserviceref?wsdl");
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public TestEndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public TestEndpointService() {
+ super(org.jboss.test.ws.jaxws.webserviceref.TestEndpointService.WSDL_LOCATION,
org.jboss.test.ws.jaxws.webserviceref.TestEndpointService.TESTENDPOINTSERVICE);
+ }
+
+ /**
+ *
+ * @return
+ * returns TestEndpoint
+ */
+ @WebEndpoint(name = "TestEndpointPort")
+ public org.jboss.test.ws.jaxws.webserviceref.TestEndpoint getTestEndpointPort() {
+ return
(TestEndpoint)super.getPort(org.jboss.test.ws.jaxws.webserviceref.TestEndpointService.TESTENDPOINTPORT,
TestEndpoint.class);
+ }
+
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/webserviceref/TestEndpointService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,8 @@
+<?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>TestEndpointService</display-name>
+
+</application-client>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,106 @@
+<?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>
+
+ <!--
+ @WebServiceRef(name = "service1", value = TestEndpointService.class,
wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+ <service-ref>
+ <service-ref-name>service1</service-ref-name>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+ -->
+
+ <!--
+ @WebServiceRef(name = "service2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService3")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne/service4</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService5")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService5</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne/service6</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type =
TestEndpoint.class)
+ -->
+ <service-ref>
+ <service-ref-name>port1</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>Port2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(value = TestEndpointService.class)
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne/port3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.TestEndpointClientOne/port4</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port5")
+ -->
+ <service-ref>
+ <service-ref-name>Port5</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss_5_0.dtd">
+
+<jboss>
+
+ <!-- [JBWS-1339] @Security domain vs. <security-domain> -->
+ <security-domain>java:/jaas/JBossWS</security-domain>
+
+ <enterprise-beans>
+ <session>
+ <ejb-name>EJB3Client</ejb-name>
+
+ <!--
+ @WebServiceRef(name = "service1", value = TestEndpointService.class,
wsdlLocation = "META-INF/wsdl/TestEndpoint.wsdl")
+ <service-ref>
+ <service-ref-name>service1</service-ref-name>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+ -->
+
+ <!--
+ @WebServiceRef(name = "service2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService3")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.EJB3Client/service4</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService5")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService5</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.EJB3Client/service6</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type =
TestEndpoint.class)
+ -->
+ <service-ref>
+ <service-ref-name>port1</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>Port2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(value = TestEndpointService.class)
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.EJB3Client/port3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+ </session>
+ </enterprise-beans>
+
+</jboss>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/jboss.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,39 @@
+<!--
+ wsimport -d ../../../java -keep -p org.jboss.test.ws.jaxws.webserviceref
META-INF/wsdl/TestEndpoint.wsdl
+-->
+<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'>
+
+ <message name='TestEndpoint_echo'>
+ <part name='arg0' type='xsd:string'/>
+ </message>
+ <message name='TestEndpoint_echoResponse'>
+ <part name='return' 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://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://@jboss.bind.address@:8080/jaxws-webserviceref'/>
+ </port>
+ </service>
+
+</definitions>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF/wsdl/TestEndpoint.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/application-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/application-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/application-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,8 @@
+<?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>TestEndpointService</display-name>
+
+</application-client>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jboss-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jboss-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jboss-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,97 @@
+<?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>
+
+ <!--
+ @WebServiceRef(name = "Service1")
+ -->
+ <service-ref>
+ <service-ref-name>Service1</service-ref-name>
+
<service-impl-class>org.jboss.test.ws.jaxws.webserviceref.TestEndpointService</service-impl-class>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Service2")
+ -->
+ <service-ref>
+ <service-ref-name>Service2</service-ref-name>
+ <config-name>Custom Client</config-name>
+ <config-file>META-INF/jbossws-client-config.xml</config-file>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Service3")
+ -->
+ <service-ref>
+ <service-ref-name>Service3</service-ref-name>
+
<service-impl-class>org.jboss.test.ws.jaxws.webserviceref.TestEndpointService</service-impl-class>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Service4")
+ -->
+ <service-ref>
+ <service-ref-name>Service4</service-ref-name>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.webserviceref.TestEndpoint</service-endpoint-interface>
+ <config-name>Custom Client</config-name>
+ <config-file>META-INF/jbossws-client-config.xml</config-file>
+ </port-component-ref>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port1", type = TestEndpoint.class)
+ -->
+ <service-ref>
+ <service-ref-name>Port1</service-ref-name>
+ <port-component-ref>
+ <port-qname>{http://org.jboss.ws/wsref}TestEndpointPort</port-qname>
+ <config-name>Custom Client</config-name>
+ <config-file>META-INF/jbossws-client-config.xml</config-file>
+ </port-component-ref>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port2")
+ -->
+ <service-ref>
+ <service-ref-name>Port2</service-ref-name>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.webserviceref.TestEndpoint</service-endpoint-interface>
+ <config-name>Custom Client</config-name>
+ <config-file>META-INF/jbossws-client-config.xml</config-file>
+ </port-component-ref>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port3")
+ -->
+ <service-ref>
+ <service-ref-name>Port3</service-ref-name>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.webserviceref.TestEndpoint</service-endpoint-interface>
+ <port-qname>{http://org.jboss.ws/wsref}TestEndpointPort</port-qname>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.username</prop-name>
+ <prop-value>kermit</prop-value>
+ </stub-property>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.password</prop-name>
+ <prop-value>thefrog</prop-value>
+ </stub-property>
+ </port-component-ref>
+ <wsdl-override>META-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jbossws-client-config.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jbossws-client-config.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jbossws-client-config.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Id$ -->
+
+<jaxrpc-config xmlns="urn:jboss:jaxrpc-config:2.0"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:j2ee="http://java.sun.com/xml/ns/j2ee"
+ xsi:schemaLocation="urn:jboss:jaxrpc-config:2.0 jaxrpc-config_2_0.xsd">
+
+ <client-config>
+ <config-name>Custom Client</config-name>
+ </client-config>
+
+</jaxrpc-config>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/jbossws-client-config.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/TestEndpoint.wsdl
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/TestEndpoint.wsdl
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/TestEndpoint.wsdl 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,39 @@
+<!--
+ wsimport -d ../../../java -keep -p org.jboss.test.ws.jaxws.webserviceref
META-INF/wsdl/TestEndpoint.wsdl
+-->
+<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'>
+
+ <message name='TestEndpoint_echo'>
+ <part name='arg0' type='xsd:string'/>
+ </message>
+ <message name='TestEndpoint_echoResponse'>
+ <part name='return' 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://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://@jboss.bind.address@:8080/jaxws-webserviceref'/>
+ </port>
+ </service>
+
+</definitions>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-override/wsdl/TestEndpoint.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/application-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/application-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/application-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,8 @@
+<?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>SecureEndpointService</display-name>
+
+</application-client>
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/application-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/jboss-client.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/jboss-client.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/jboss-client.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,61 @@
+<?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>SecureService1</service-ref-name>
+
<service-impl-class>org.jboss.test.ws.jaxws.webserviceref.SecureEndpointService</service-impl-class>
+
<service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</service-qname>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.webserviceref.SecureEndpoint</service-endpoint-interface>
+ <port-qname>{http://org.jboss.ws/wsref}SecureEndpointPort</port-qname>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.username</prop-name>
+ <prop-value>kermit</prop-value>
+ </stub-property>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.password</prop-name>
+ <prop-value>thefrog</prop-value>
+ </stub-property>
+ </port-component-ref>
+
<wsdl-override>http://@jboss.bind.address@:8080/jaxws-webserviceref-secure/SecureEndpointImpl?wsdl</wsdl-override>
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>SecureService2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</service-qname>
+ <port-component-ref>
+ <port-qname>{http://org.jboss.ws/wsref}SecureEndpointPort</port-qname>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.username</prop-name>
+ <prop-value>kermit</prop-value>
+ </stub-property>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.password</prop-name>
+ <prop-value>thefrog</prop-value>
+ </stub-property>
+ </port-component-ref>
+
<wsdl-override>http://@jboss.bind.address@:8080/jaxws-webserviceref-secure/SecureEndpointImpl?wsdl</wsdl-override>
+ </service-ref>
+
+ <service-ref>
+ <service-ref-name>SecurePort1</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}SecureEndpointService</service-qname>
+ <port-component-ref>
+
<service-endpoint-interface>org.jboss.test.ws.jaxws.webserviceref.SecureEndpoint</service-endpoint-interface>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.username</prop-name>
+ <prop-value>kermit</prop-value>
+ </stub-property>
+ <stub-property>
+ <prop-name>javax.xml.ws.security.auth.password</prop-name>
+ <prop-value>thefrog</prop-value>
+ </stub-property>
+ </port-component-ref>
+
<wsdl-override>http://@jboss.bind.address@:8080/jaxws-webserviceref-secure/SecureEndpointImpl?wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-client>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/META-INF-secure/jboss-client.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
(rev 0)
+++ stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -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.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
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/jboss-web.xml
===================================================================
---
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/jboss-web.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/jboss-web.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
+
+<jboss-web>
+
+
+ <!--
+ @WebServiceRef(name = "service1", value = TestEndpointService.class,
wsdlLocation = "WEB-INF/wsdl/TestEndpoint.wsdl")
+ <service-ref>
+ <service-ref-name>service1</service-ref-name>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+ -->
+
+ <!--
+ @WebServiceRef(name = "service2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>service2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService3")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.ServletClient/service4</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "TestEndpointService5")
+ -->
+ <service-ref>
+ <service-ref-name>TestEndpointService5</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.ServletClient/service6</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "port1", value = TestEndpointService.class, type =
TestEndpoint.class)
+ -->
+ <service-ref>
+ <service-ref-name>port1</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(name = "Port2", value = TestEndpointService.class)
+ -->
+ <service-ref>
+ <service-ref-name>Port2</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+ <!--
+ @WebServiceRef(value = TestEndpointService.class)
+ -->
+ <service-ref>
+
<service-ref-name>org.jboss.test.ws.jaxws.webserviceref.ServletClient/port3</service-ref-name>
+
<service-qname>{http://org.jboss.ws/wsref}TestEndpointService</service-qname>
+ <wsdl-override>WEB-INF/wsdl/TestEndpoint.wsdl</wsdl-override>
+ </service-ref>
+
+</jboss-web>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/web.xml
===================================================================
--- stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/web.xml
(rev 0)
+++
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/web.xml 2008-04-09
14:22:56 UTC (rev 6305)
@@ -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>ServletClient</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.webserviceref.ServletClient</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ServletClient</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Property changes on:
stack/native/trunk/src/test/resources/jaxws/webserviceref/WEB-INF-client/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF