[jbossws-commits] JBossWS SVN: r12948 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws and 8 other directories.
jbossws-commits at lists.jboss.org
jbossws-commits at lists.jboss.org
Fri Sep 10 06:04:53 EDT 2010
Author: richard.opalka at jboss.com
Date: 2010-09-10 06:04:53 -0400 (Fri, 10 Sep 2010)
New Revision: 12948
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/EchoBean.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/ServletClient.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoBean.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoService.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/ObjectFactory.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHello.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHelloResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/package-info.java
framework/trunk/testsuite/test/resources/jaxws/jbws3123/
framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/jboss.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/wsdl/
framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/wsdl/EchoService.wsdl
framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/jboss-web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/wsdl/
framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/wsdl/EchoService.wsdl
framework/trunk/testsuite/test/resources/jaxws/jbws3123/application.xml
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-3123] providing test case
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-09-09 17:09:02 UTC (rev 12947)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-09-10 10:04:53 UTC (rev 12948)
@@ -1021,6 +1021,43 @@
</webinf>
</war>
+ <!-- jaxws-jbws3123 -->
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-jbws3123-ejb.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws3123/*.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws3123/generated/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws3123/ServletClient.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.class" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws3123/META-INF">
+ <include name="wsdl/**" />
+ <include name="jboss.xml" />
+ </metainf>
+ </jar>
+
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws3123-web.war" needxmlfile="false">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws3123/*.class" />
+ <include name="org/jboss/test/ws/jaxws/jbws3123/generated/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws3123/EchoBean.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws3123/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="jboss-web.xml" />
+ </webinf>
+ </war>
+
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws3123.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-jbws3123-ejb.jar" />
+ <include name="jaxws-jbws3123-web.war" />
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/jaxws/jbws3123">
+ <include name="application.xml" />
+ </metainf>
+ </jar>
+
<!-- jaxws-endpoint-servlet -->
<war warfile="${tests.output.dir}/test-libs/jaxws-endpoint-servlet.war" webxml="${tests.output.dir}/test-resources/jaxws/endpoint/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/EchoBean.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/EchoBean.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/EchoBean.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+
+ at Stateless
+ at WebService(
+ portName="EchoPort",
+ serviceName="EchoService",
+ targetNamespace="http://Echo.org",
+ wsdlLocation="META-INF/wsdl/EchoService.wsdl",
+ endpointInterface="org.jboss.test.ws.jaxws.jbws3123.generated.EchoBean")
+public class EchoBean {
+ public String sayHello() {
+ return "hello";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/JBWS3123TestCase.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123;
+
+import java.io.BufferedReader;
+import java.io.DataOutputStream;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.net.URLConnection;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+public class JBWS3123TestCase extends JBossWSTest
+{
+
+ private String servletUrl = "http://" + getServerHost() + ":8080/jaxws-jbws3123-web/ServletTest";
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS3123TestCase.class, "jaxws-jbws3123.ear");
+ }
+
+ public void testServletWithWebServiceRef() throws Exception
+ {
+ final URL url = new URL(servletUrl);
+ URLConnection urlConn = null;
+ urlConn = this.sendPostData(url);
+ final String result = this.getResponse(urlConn);
+ if (!"hello".equals(result))
+ fail();
+ }
+
+ private URLConnection sendPostData(final URL url) throws IOException
+ {
+ final URLConnection urlConn = url.openConnection();
+ urlConn.setDoOutput(true);
+ urlConn.setDoInput(true);
+ urlConn.setUseCaches(false);
+ final DataOutputStream out = new DataOutputStream(urlConn.getOutputStream());
+ out.writeBytes("say hello");
+ out.flush();
+ out.close();
+ return urlConn;
+ }
+
+ private String getResponse(final URLConnection connection) throws IOException
+ {
+ final BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
+ final String result;
+ try
+ {
+ result = in.readLine();
+ }
+ finally
+ {
+ in.close();
+ }
+ return result;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/ServletClient.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/ServletClient.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/ServletClient.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123;
+
+import java.io.IOException;
+import java.io.PrintWriter;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.xml.ws.WebServiceRef;
+import javax.xml.ws.soap.Addressing;
+
+import org.jboss.test.ws.jaxws.jbws3123.generated.EchoBean;
+import org.jboss.test.ws.jaxws.jbws3123.generated.EchoService;
+
+ at SuppressWarnings("serial")
+ at WebServlet("/ServletTest")
+public class ServletClient extends HttpServlet
+{
+ @Addressing
+ @WebServiceRef(name = "service/wsejbwsrefandaddrcombtestenabledechoport", type = EchoBean.class, value = EchoService.class)
+ EchoBean enabledEchoPort = null;
+
+ public void init(ServletConfig config) throws ServletException
+ {
+ super.init(config);
+ if (enabledEchoPort == null)
+ {
+ throw new ServletException("port injection failed");
+ }
+ }
+
+ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ res.setContentType("text/plain");
+ PrintWriter out = res.getWriter();
+ out.print(enabledEchoPort.sayHello());
+ out.close();
+ }
+
+ public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
+ {
+ this.doGet(req, res);
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoBean.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoBean.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoBean.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123.generated;
+
+import javax.jws.WebMethod;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+/**
+ * This class was generated by Apache CXF 2.3.0-SNAPSHOT
+ * Thu Sep 09 16:04:02 CEST 2010
+ * Generated source version: 2.3.0-SNAPSHOT
+ *
+ */
+
+ at WebService(targetNamespace = "http://Echo.org", name = "EchoBean")
+ at XmlSeeAlso({ObjectFactory.class})
+public interface EchoBean {
+
+ @WebResult(name = "return", targetNamespace = "")
+ @RequestWrapper(localName = "sayHello", targetNamespace = "http://Echo.org", className = "org.jboss.test.ws.jaxws.jbws3123.generated.SayHello")
+ @WebMethod
+ @ResponseWrapper(localName = "sayHelloResponse", targetNamespace = "http://Echo.org", className = "org.jboss.test.ws.jaxws.jbws3123.generated.SayHelloResponse")
+ public java.lang.String sayHello();
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoService.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoService.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/EchoService.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,104 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+import javax.xml.ws.Service;
+
+/**
+ * This class was generated by Apache CXF 2.3.0-SNAPSHOT
+ * Thu Sep 09 16:04:02 CEST 2010
+ * Generated source version: 2.3.0-SNAPSHOT
+ *
+ */
+
+
+ at WebServiceClient(name = "EchoService",
+ wsdlLocation = "WEB-INF/wsdl/EchoService.wsdl",
+ targetNamespace = "http://Echo.org")
+public class EchoService extends Service {
+
+ public final static URL WSDL_LOCATION;
+ public final static QName SERVICE = new QName("http://Echo.org", "EchoService");
+ public final static QName EchoPort = new QName("http://Echo.org", "EchoPort");
+ static {
+ URL url = null;
+ try {
+ url = new URL("file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/EchoService.wsdl");
+ } catch (MalformedURLException e) {
+ System.err.println("Can not initialize the default wsdl from file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/EchoService.wsdl");
+ // e.printStackTrace();
+ }
+ WSDL_LOCATION = url;
+ }
+
+ public EchoService(URL wsdlLocation) {
+ super(wsdlLocation, SERVICE);
+ }
+
+ public EchoService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public EchoService() {
+ super(WSDL_LOCATION, SERVICE);
+ }
+
+ public EchoService(WebServiceFeature ... features) {
+ super(WSDL_LOCATION, SERVICE, features);
+ }
+ public EchoService(URL wsdlLocation, WebServiceFeature ... features) {
+ super(wsdlLocation, SERVICE, features);
+ }
+
+ public EchoService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns EchoBean
+ */
+ @WebEndpoint(name = "EchoPort")
+ public EchoBean getEchoPort() {
+ return super.getPort(EchoPort, EchoBean.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns EchoBean
+ */
+ @WebEndpoint(name = "EchoPort")
+ public EchoBean getEchoPort(WebServiceFeature... features) {
+ return super.getPort(EchoPort, EchoBean.class, features);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/ObjectFactory.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/ObjectFactory.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/ObjectFactory.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123.generated;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.jbws3123.generated package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+ at XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _SayHello_QNAME = new QName("http://Echo.org", "sayHello");
+ private final static QName _SayHelloResponse_QNAME = new QName("http://Echo.org", "sayHelloResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.jbws3123.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link SayHello }
+ *
+ */
+ public SayHello createSayHello() {
+ return new SayHello();
+ }
+
+ /**
+ * Create an instance of {@link SayHelloResponse }
+ *
+ */
+ public SayHelloResponse createSayHelloResponse() {
+ return new SayHelloResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHello }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://Echo.org", name = "sayHello")
+ public JAXBElement<SayHello> createSayHello(SayHello value) {
+ return new JAXBElement<SayHello>(_SayHello_QNAME, SayHello.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link SayHelloResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://Echo.org", name = "sayHelloResponse")
+ public JAXBElement<SayHelloResponse> createSayHelloResponse(SayHelloResponse value) {
+ return new JAXBElement<SayHelloResponse>(_SayHelloResponse_QNAME, SayHelloResponse.class, null, value);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHello.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHello.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHello.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHello complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="sayHello">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "sayHello")
+public class SayHello {
+
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHelloResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHelloResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/SayHelloResponse.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jbws3123.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for sayHelloResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="sayHelloResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "sayHelloResponse", propOrder = {
+ "_return"
+})
+public class SayHelloResponse {
+
+ @XmlElement(name = "return")
+ protected String _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setReturn(String value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/package-info.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/package-info.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws3123/generated/package-info.java 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.
+ */
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://Echo.org")
+package org.jboss.test.ws.jaxws.jbws3123.generated;
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/jboss.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/jboss.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/jboss.xml 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss
+ xmlns="http://www.jboss.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
+ http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+ version="3.0">
+ <webservices>
+ <webservice-description>
+ <webservice-description-name>EchoService</webservice-description-name>
+ <wsdl-publish-location>http://localhost:8080/jaxws-jbws3123-ejb/EchoBean?WSDL</wsdl-publish-location>
+ </webservice-description>
+ </webservices>
+ <enterprise-beans>
+ <ejb>
+ <ejb-name>EchoBean</ejb-name>
+ <jndi-name>EchoBean</jndi-name>
+ <home-jndi-name>EchoBean</home-jndi-name>
+ <port-component>
+ <port-component-name>EchoBean</port-component-name>
+ <port-component-uri>jaxws-jbws3123-ejb/EchoBean</port-component-uri>
+ </port-component>
+ </ejb>
+ </enterprise-beans>
+</jboss>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/wsdl/EchoService.wsdl
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/wsdl/EchoService.wsdl (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3123/META-INF/wsdl/EchoService.wsdl 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ name="EchoService"
+ targetNamespace="http://Echo.org"
+ xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://Echo.org"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
+<wsdl:types>
+<xs:schema elementFormDefault="unqualified" targetNamespace="http://Echo.org" version="1.0" xmlns:tns="http://Echo.org" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<xs:element name="sayHello" type="tns:sayHello"/>
+<xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
+<xs:complexType name="sayHello">
+<xs:sequence/>
+</xs:complexType>
+<xs:complexType name="sayHelloResponse">
+<xs:sequence>
+<xs:element minOccurs="0" name="return" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="sayHelloResponse">
+ <wsdl:part element="tns:sayHelloResponse" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="sayHello">
+ <wsdl:part element="tns:sayHello" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="EchoBean">
+ <wsdl:operation name="sayHello">
+ <wsdl:input message="tns:sayHello" name="sayHello">
+ </wsdl:input>
+ <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="EchoServiceSoapBinding" type="tns:EchoBean">
+ <wsp:Policy>
+ <wsam:Addressing wsp:Optional="true">
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sayHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sayHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="EchoService">
+ <wsdl:port binding="tns:EchoServiceSoapBinding" name="EchoPort">
+ <soap:address location="http://foo:9999/bar"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/jboss-web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/jboss-web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/jboss-web.xml 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jboss-web>
+ <security-domain>java:/jaas/JBossWS</security-domain>
+ <service-ref>
+ <service-ref-name>service/wsejbwsrefandaddrcombtestenabledechoport</service-ref-name>
+ <port-component-ref>
+ <service-endpoint-interface>org.jboss.test.ws.jaxws.jbws3123.generated.EchoBean</service-endpoint-interface>
+ <port-qname>{http://Echo.org}EchoPort</port-qname>
+ </port-component-ref>
+ <wsdl-override>http://localhost:8080/jaxws-jbws3123-ejb/EchoBean?WSDL</wsdl-override>
+ </service-ref>
+</jboss-web>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/wsdl/EchoService.wsdl
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/wsdl/EchoService.wsdl (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3123/WEB-INF/wsdl/EchoService.wsdl 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+ name="EchoService"
+ targetNamespace="http://Echo.org"
+ xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://Echo.org"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsp="http://www.w3.org/ns/ws-policy"
+ xmlns:wsa="http://www.w3.org/2005/08/addressing"
+ xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">
+<wsdl:types>
+<xs:schema elementFormDefault="unqualified" targetNamespace="http://Echo.org" version="1.0" xmlns:tns="http://Echo.org" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+<xs:element name="sayHello" type="tns:sayHello"/>
+<xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
+<xs:complexType name="sayHello">
+<xs:sequence/>
+</xs:complexType>
+<xs:complexType name="sayHelloResponse">
+<xs:sequence>
+<xs:element minOccurs="0" name="return" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="sayHelloResponse">
+ <wsdl:part element="tns:sayHelloResponse" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="sayHello">
+ <wsdl:part element="tns:sayHello" name="parameters">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="EchoBean">
+ <wsdl:operation name="sayHello">
+ <wsdl:input message="tns:sayHello" name="sayHello">
+ </wsdl:input>
+ <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="EchoServiceSoapBinding" type="tns:EchoBean">
+ <wsp:Policy>
+ <wsam:Addressing wsp:Optional="true">
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="sayHello">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sayHello">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sayHelloResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="EchoService">
+ <wsdl:port binding="tns:EchoServiceSoapBinding" name="EchoPort">
+ <soap:address location="http://foo:9999/bar"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws3123/application.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws3123/application.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws3123/application.xml 2010-09-10 10:04:53 UTC (rev 12948)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="6" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd">
+ <description>Application description</description>
+ <display-name>JBWS3123 Test</display-name>
+ <module>
+ <java>jaxws-jbws3123-ejb.jar</java>
+ </module>
+ <module>
+ <web>
+ <web-uri>jaxws-jbws3123-web.war</web-uri>
+ <context-root>jaxws-jbws3123-web</context-root>
+ </web>
+ </module>
+</application>
More information about the jbossws-commits
mailing list