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 import java.lang.annotation.Documented; 8 import java.lang.annotation.Target; 9 import java.lang.annotation.Retention; 10 import java.lang.annotation.ElementType; 11 import java.lang.annotation.RetentionPolicy; 12 /** 13 * Used to annotate methods in the Service Endpoint Interface with the response 14 * wrapper bean to be used at runtime. The default value of the <code>localName</code> is 15 * the <code>operationName</code> as defined in <code>WebMethod</code> annotation appended with 16 * <code>Response</code> and the <code>targetNamespace</code> is the target namespace of the SEI. 17 * <p> When starting from Java this annotation is used resolve 18 * overloading conflicts in document literal mode. Only the <code>className</code> 19 * is required in this case. 20 * 21 * @since JAX-WS 2.0 22 **/ 23 24 @Target(ElementType.METHOD) 25 @Retention(RetentionPolicy.RUNTIME) 26 @Documented 27 public @interface ResponseWrapper { 28 29 /** 30 31 * Element's local name. 32 33 **/ 34 35 public String localName() default ""; 36 37 38 39 /** 40 41 * Element's namespace name. 42 43 **/ 44 45 public String targetNamespace() default ""; 46 47 48 49 /** 50 51 * Response wrapper bean name. 52 53 **/ 54 55 public String className() default ""; 56 57 } 58 59