Author: alessio.soldano(a)jboss.com
Date: 2008-01-15 13:14:04 -0500 (Tue, 15 Jan 2008)
New Revision: 5471
Added:
stack/native/trunk/src/main/java/org/jboss/ws/annotation/Documentation.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/JBWS1850TestCase.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestService.java
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.java
Modified:
stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
stack/native/trunk/ant-import/build-bin-dist.xml
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterface.java
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterfaceOperation.java
stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
Log:
[JBWS-1850] Adding Documentation annotation
Modified: stack/native/trunk/ant-import/build-bin-dist.xml
===================================================================
--- stack/native/trunk/ant-import/build-bin-dist.xml 2008-01-15 03:40:29 UTC (rev 5470)
+++ stack/native/trunk/ant-import/build-bin-dist.xml 2008-01-15 18:14:04 UTC (rev 5471)
@@ -50,6 +50,11 @@
<include name="macros-deploy-framework.xml"/>
<include name="macros-deploy-native.xml"/>
</fileset>
+ <fileset dir="${core.distro.dir}">
+ <include name="user-project-build.xml"/>
+ <include name="eclipse.project"/>
+ <include name="eclipse.classpath"/>
+ </fileset>
</copy>
<unzip dest="${bindist.bin.dir}"
src="${thirdparty.dir}/jbossws-framework-scripts.zip"/>
Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-01-15 03:40:29 UTC (rev
5470)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml 2008-01-15 18:14:04 UTC (rev
5471)
@@ -562,6 +562,13 @@
<exclude
name="org/jboss/test/ws/jaxws/jbws1845/*TestCase.class"/>
</fileset>
</jar>
+
+ <!-- jaxws-jbws1850 -->
+ <jar destfile="${tests.output.dir}/libs/jaxws-jbws1850.jar">
+ <fileset dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.class"/>
+ </fileset>
+ </jar>
<!-- jaxws-jbws1854 -->
<war destfile="${tests.output.dir}/libs/jaxws-jbws1854.war"
webxml="${tests.output.dir}/resources/jaxws/jbws1854/WEB-INF/web.xml">
Added: stack/native/trunk/src/main/java/org/jboss/ws/annotation/Documentation.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/annotation/Documentation.java
(rev 0)
+++ stack/native/trunk/src/main/java/org/jboss/ws/annotation/Documentation.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -0,0 +1,40 @@
+/*
+ * 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.ws.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Annotation to be used to add wsdl:documentation elements to the generated wsdl.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 15-Jan-2008
+ */
+(a)Target({ElementType.TYPE, ElementType.METHOD})
+(a)Retention(RetentionPolicy.RUNTIME)
+public @interface Documentation
+{
+ public String content();
+}
Property changes on:
stack/native/trunk/src/main/java/org/jboss/ws/annotation/Documentation.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSMetaDataBuilder.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -58,6 +58,7 @@
import org.jboss.logging.Logger;
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.annotation.Documentation;
import org.jboss.ws.core.jaxws.DynamicWrapperGenerator;
import org.jboss.ws.core.jaxws.JAXBContextFactory;
import org.jboss.ws.core.jaxws.WrapperGenerator;
@@ -591,6 +592,11 @@
throw new IllegalArgumentException("@SOAPBinding must be specified using
DOCUMENT style when placed on a method");
opMetaData.setParameterStyle(anBinding.parameterStyle());
}
+
+ if (method.isAnnotationPresent(Documentation.class))
+ {
+
opMetaData.setDocumentation(method.getAnnotation(Documentation.class).content());
+ }
epMetaData.addOperation(opMetaData);
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -37,6 +37,7 @@
import org.jboss.ws.Constants;
import org.jboss.ws.WSException;
+import org.jboss.ws.annotation.Documentation;
import org.jboss.ws.extensions.policy.annotation.PolicyAttachment;
import org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder;
import org.jboss.ws.metadata.builder.MetaDataBuilder;
@@ -136,6 +137,10 @@
// process config
processEndpointConfig(dep, sepMetaData, sepClass, linkName);
+ // Process endpoint documentation
+ if (seiClass.isAnnotationPresent(Documentation.class))
+
sepMetaData.setDocumentation(seiClass.getAnnotation(Documentation.class).content());
+
// Process web methods
processWebMethods(sepMetaData, seiClass);
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -150,6 +150,8 @@
private JAXBContextCache jaxbCache = new JAXBContextCache();
private List<BindingCustomization> bindingCustomization = new
ArrayList<BindingCustomization>();
+
+ private String documentation;
public EndpointMetaData(ServiceMetaData service, QName portName, QName portTypeName,
Type type)
{
@@ -850,4 +852,14 @@
}
return match;
}
+
+ public String getDocumentation()
+ {
+ return documentation;
+ }
+
+ public void setDocumentation(String documentation)
+ {
+ this.documentation = documentation;
+ }
}
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/umdm/OperationMetaData.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -66,6 +66,7 @@
private List<ParameterMetaData> parameters = new
ArrayList<ParameterMetaData>();
private List<FaultMetaData> faults = new ArrayList<FaultMetaData>();
private ParameterMetaData returnParam;
+ private String documentation;
public OperationMetaData(EndpointMetaData epMetaData, QName qname, String javaName)
{
@@ -512,4 +513,14 @@
}
return buffer.toString();
}
+
+ public String getDocumentation()
+ {
+ return documentation;
+ }
+
+ public void setDocumentation(String documentation)
+ {
+ this.documentation = documentation;
+ }
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterface.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterface.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterface.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -66,6 +66,8 @@
private Map<QName, WSDLInterfaceOperation> operations = new
LinkedHashMap<QName, WSDLInterfaceOperation>();
/** Zero or more fault element information items */
private Map<QName, WSDLInterfaceFault> faults = new LinkedHashMap<QName,
WSDLInterfaceFault>();
+
+ private WSDLDocumentation documentationElement;
/** Construct a WSDL interface for a given WSDL definition */
public WSDLInterface(WSDLDefinitions wsdlDefinitions, QName name)
@@ -158,4 +160,14 @@
{
faults.put(fault.getName(), fault);
}
+
+ public WSDLDocumentation getDocumentationElement()
+ {
+ return documentationElement;
+ }
+
+ public void setDocumentationElement(WSDLDocumentation documentationElement)
+ {
+ this.documentationElement = documentationElement;
+ }
}
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterfaceOperation.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterfaceOperation.java 2008-01-15
03:40:29 UTC (rev 5470)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/wsdl/WSDLInterfaceOperation.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -78,6 +78,8 @@
private ArrayList<WSDLInterfaceOperationOutfault> outfaults = new
ArrayList<WSDLInterfaceOperationOutfault>();
/** Zero or more signature items */
private LinkedHashMap<String, WSDLRPCSignatureItem> rpcSignatureItems = new
LinkedHashMap<String, WSDLRPCSignatureItem>();
+
+ private WSDLDocumentation documentationElement;
public WSDLInterfaceOperation(WSDLInterface wsdlInterface, QName name)
{
@@ -277,4 +279,14 @@
}
return c;
}
+
+ public WSDLDocumentation getDocumentationElement()
+ {
+ return documentationElement;
+ }
+
+ public void setDocumentationElement(WSDLDocumentation documentationElement)
+ {
+ this.documentationElement = documentationElement;
+ }
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2008-01-15
03:40:29 UTC (rev 5470)
+++ stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Reader.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -86,6 +86,7 @@
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationInput;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationOutput;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDocumentation;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLExtensibilityElement;
import org.jboss.ws.metadata.wsdl.WSDLInterface;
@@ -652,6 +653,13 @@
{
destInterface.addProperty(new
WSDLProperty(Constants.WSDL_PROPERTY_EVENTSOURCE, eventSourceProp.getLocalPart()));
}
+
+ // documentation
+ Element documentationElement = srcPortType.getDocumentationElement();
+ if (documentationElement != null &&
documentationElement.getTextContent() != null)
+ {
+ destInterface.setDocumentationElement(new
WSDLDocumentation(documentationElement.getTextContent()));
+ }
destWsdl.addInterface(destInterface);
@@ -677,6 +685,13 @@
processPortTypeOperationOutput(srcWsdl, srcOperation, destOperation,
srcPortType, destBinding);
processPortTypeOperationFaults(srcOperation, destOperation, destInterface,
destBinding);
+
+ // documentation
+ Element documentationElement = srcOperation.getDocumentationElement();
+ if (documentationElement != null &&
documentationElement.getTextContent() != null)
+ {
+ destOperation.setDocumentationElement(new
WSDLDocumentation(documentationElement.getTextContent()));
+ }
destInterface.addOperation(destOperation);
}
Modified: stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2008-01-15
03:40:29 UTC (rev 5470)
+++ stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDL11Writer.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -40,6 +40,7 @@
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationInput;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationOutput;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDocumentation;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLExtensibilityElement;
import org.jboss.ws.metadata.wsdl.WSDLImport;
@@ -386,6 +387,7 @@
buffer.append("'");
}
buffer.append(">");
+ appendDocumentation(buffer, intf.getDocumentationElement());
appendPortOperations(buffer, intf);
buffer.append("</portType>");
}
@@ -425,6 +427,7 @@
}
buffer.append(">");
+ appendDocumentation(buffer, operation.getDocumentationElement());
appendUnknownExtensibilityElements(buffer, operation);
String opname = operation.getName().getLocalPart();
@@ -451,6 +454,16 @@
buffer.append("</operation>");
}
}
+
+ protected void appendDocumentation(StringBuilder buffer, WSDLDocumentation
documentation)
+ {
+ if (documentation != null && documentation.getContent() != null)
+ {
+ buffer.append("<documentation>");
+ buffer.append(documentation.getContent());
+ buffer.append("</documentation>");
+ }
+ }
protected void appendBindings(StringBuilder buffer, String namespace)
{
Modified: stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2008-01-15
03:40:29 UTC (rev 5470)
+++ stack/native/trunk/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -50,6 +50,7 @@
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationInput;
import org.jboss.ws.metadata.wsdl.WSDLBindingOperationOutput;
import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLDocumentation;
import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
import org.jboss.ws.metadata.wsdl.WSDLExtensibilityElement;
import org.jboss.ws.metadata.wsdl.WSDLImport;
@@ -109,6 +110,11 @@
wsdl.addBinding(wsdlBinding);
wsdlEndpoint.setBinding(bindingQName);
+ if (endpoint.getDocumentation() != null)
+ {
+ wsdlInterface.setDocumentationElement(new
WSDLDocumentation(endpoint.getDocumentation()));
+ }
+
for (OperationMetaData operation : endpoint.getOperations())
{
processOperation(wsdlInterface, wsdlBinding, operation);
@@ -224,6 +230,12 @@
wsdlBinding.addFault(bindingFault);
}
+ // process optional documentation
+ if (operation.getDocumentation() != null)
+ {
+ interfaceOperation.setDocumentationElement(new
WSDLDocumentation(operation.getDocumentation()));
+ }
+
wsdlInterface.addOperation(interfaceOperation);
wsdlBinding.addOperation(bindingOperation);
}
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/JBWS1850TestCase.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/JBWS1850TestCase.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/JBWS1850TestCase.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -0,0 +1,95 @@
+/*
+ * 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.jbws1850;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.net.URL;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.ws.metadata.wsdl.WSDLDefinitions;
+import org.jboss.ws.metadata.wsdl.WSDLEndpoint;
+import org.jboss.ws.metadata.wsdl.WSDLInterface;
+import org.jboss.ws.metadata.wsdl.WSDLInterfaceOperation;
+import org.jboss.ws.metadata.wsdl.WSDLService;
+import org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory;
+import org.jboss.wsf.common.DOMUtils;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+import org.w3c.dom.Element;
+
+/**
+ * Test wsdl documentation
+ *
+ *
http://jira.jboss.org/jira/browse/JBWS-1850
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 15-Jan-2008
+ */
+public class JBWS1850TestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-jbws1850";
+
+ private static TestService port;
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS1850TestCase.class,
"jaxws-jbws1850.jar");
+ }
+
+ protected void setUp() throws Exception
+ {
+ if (port == null)
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://org.jboss.ws/jbws1850",
"TestEndpointService");
+ port = Service.create(wsdlURL, serviceName).getPort(TestService.class);
+ }
+ }
+
+ public void testWsdl() throws Exception
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
+ WSDLDefinitions wsdlDefinitions = factory.parse(wsdlURL);
+ WSDLService wsdlService = wsdlDefinitions.getServices()[0];
+ WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoints()[0];
+ WSDLInterface wsdlInterface = wsdlEndpoint.getInterface();
+ assertNotNull(wsdlInterface.getDocumentationElement());
+ assertEquals("This is a test service doing nothing special",
wsdlInterface.getDocumentationElement().getContent());
+ WSDLInterfaceOperation wsdlOperation = wsdlInterface.getOperations()[0];
+ assertNotNull(wsdlOperation.getDocumentationElement());
+ assertEquals("This is the useless test operation of the test service",
wsdlOperation.getDocumentationElement().getContent());
+ }
+
+ public void testInvocation()
+ {
+ String retObj = port.test("Hello", "World");
+ assertEquals("World", retObj);
+
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/JBWS1850TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestService.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestService.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestService.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -0,0 +1,32 @@
+/*
+ * 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.jbws1850;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+@WebService(name = "TestEndpoint", targetNamespace =
"http://org.jboss.ws/jbws1850")
+public interface TestService
+{
+ @WebMethod
+ public String test(String first, String second);
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestService.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.java
===================================================================
---
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.java
(rev 0)
+++
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.java 2008-01-15
18:14:04 UTC (rev 5471)
@@ -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.jbws1850;
+
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+
+import org.jboss.ws.annotation.Documentation;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+@WebService(name = "TestEndpoint", serviceName =
"TestEndpointService", targetNamespace =
"http://org.jboss.ws/jbws1850")
+@Stateless(name = "TestEndpoint")
+@Documentation(content = "This is a test service doing nothing special")
+@WebContext(contextRoot="/jaxws-jbws1850", urlPattern="/*")
+public class TestServiceImpl
+{
+ @WebMethod
+ @Documentation(content = "This is the useless test operation of the test
service")
+ public String test(String first, String second)
+ {
+ return second;
+ }
+}
Property changes on:
stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1850/TestServiceImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF