1 package org.codehaus.xfire.annotations.commons; 2 3 import org.codehaus.xfire.annotations.WebServiceAnnotation; 4 5 /*** 6 * Commons Attributes version of the WebService Annotation. 7 * 8 * @author Arjen Poutsma 9 * @@org.apache.commons.attributes.Target(org.apache.commons.attributes.Target.CLASS) 10 * @see org.codehaus.xfire.annotations.WebServiceAnnotation 11 */ 12 public class WebService 13 extends WebServiceAnnotation 14 { 15 16 /*** 17 * Initializes a new instance of the <code>WebService</code> attribute. 18 */ 19 public WebService() 20 { 21 } 22 23 /*** 24 * Initializes a new instance of the <code>WebService</code> attribute with the specified name. 25 * 26 * @param name the name of the Web Service. 27 */ 28 public WebService(String name) 29 { 30 setName(name); 31 } 32 33 /*** 34 * Initializes a new instance of the <code>WebParam</code> attribute with the specified name 35 * and namespace. 36 * 37 * @param name the name. 38 * @param targetNamespace the target namespace. 39 */ 40 public WebService(String name, String targetNamespace) 41 { 42 setName(name); 43 setTargetNamespace(targetNamespace); 44 } 45 46 public WebService(String name, String targetNamespace, String endpointInterface, String serviceName) 47 { 48 setName(name); 49 setTargetNamespace(targetNamespace); 50 setEndpointInterface(endpointInterface); 51 setServiceName(serviceName); 52 } 53 }