1 /* 2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 */ 5 6 package javax.xml.ws; 7 8 import java.lang.annotation.Documented; 9 import java.lang.annotation.Target; 10 import java.lang.annotation.Retention; 11 import java.lang.annotation.ElementType; 12 import java.lang.annotation.RetentionPolicy; 13 14 /** 15 * Used to annotate the <code>get<em>PortName</em>()</code> 16 * methods of a generated service interface. 17 * 18 * <p>The information specified in this annotation is sufficient 19 * to uniquely identify a <code>wsdl:port</code> element 20 * inside a <code>wsdl:service</code>. The latter is 21 * determined based on the value of the <code>WebServiceClient</code> 22 * annotation on the generated service interface itself. 23 * 24 * @since JAX-WS 2.0 25 * 26 * @see javax.xml.ws.WebServiceClient 27 **/ 28 @Target({ElementType.METHOD}) 29 @Retention(RetentionPolicy.RUNTIME) 30 @Documented 31 public @interface WebEndpoint { 32 /** 33 * The local name of the endpoint. 34 **/ 35 String name() default ""; 36 } 37