Author: alessio.soldano(a)jboss.com
Date: 2008-07-02 08:39:45 -0400 (Wed, 02 Jul 2008)
New Revision: 7763
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EndpointService.java
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.java
Log:
[JBWS-2130] Adding service class since JAX-WS spec mandates it in this case (section 7.9,
#2)
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2008-07-02 12:36:11 UTC
(rev 7762)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2008-07-02 12:39:45 UTC
(rev 7763)
@@ -238,6 +238,7 @@
<include
name="org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.class"/>
<include
name="org/jboss/test/ws/jaxws/jbws1581/EJB3Remote.class"/>
<include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointInterface.class"/>
+ <include
name="org/jboss/test/ws/jaxws/jbws1581/EndpointService.class"/>
</fileset>
<metainf
dir="${tests.output.dir}/test-resources/jaxws/jbws1581/META-INF">
<include name="wsdl/**"/>
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.java 2008-07-02
12:36:11 UTC (rev 7762)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EJB3Bean.java 2008-07-02
12:39:45 UTC (rev 7763)
@@ -31,7 +31,7 @@
@Remote(EJB3Remote.class)
public class EJB3Bean implements EJB3Remote
{
- @WebServiceRef(wsdlLocation = "META-INF/wsdl/TestService.wsdl")
+ @WebServiceRef(value = EndpointService.class, wsdlLocation =
"META-INF/wsdl/TestService.wsdl")
public EndpointInterface port;
public String runTest(String message)
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EndpointService.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EndpointService.java
(rev 0)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EndpointService.java 2008-07-02
12:39:45 UTC (rev 7763)
@@ -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.jbws1581;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+
+@WebServiceClient(name="EndpointService",
targetNamespace="http://jbws1581.jaxws.ws.test.jboss.org/")
+public class EndpointService extends javax.xml.ws.Service
+{
+ private final static QName TESTENDPOINTPORT = new
QName("http://jbws1581.jaxws.ws.test.jboss.org/",
"EndpointBeanPort");
+
+ public EndpointService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ @WebEndpoint(name = "EndpointBeanPort")
+ public EndpointInterface getEndpointPort() {
+ return (EndpointInterface)super.getPort(TESTENDPOINTPORT,
EndpointInterface.class);
+ }
+}
Property changes on:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws1581/EndpointService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF