Module  java.xml.ws
软件包  javax.xml.ws

Annotation Type ResponseWrapper



  • @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    public @interface ResponseWrapper
    用于使用要在运行时使用的响应包装器bean来注释服务端点接口中的方法。 所述的默认值localNameoperationName中定义WebMethod注释与所附ResponsetargetNamespace是SEI的目标命名空间。

    当从Java开始时,使用该注解来解决文档文字模式中的重载冲突。 在这种情况下,只需要className

    从以下版本开始:
    1.6,JAX-WS 2.0
    • Element Detail

      • localName

        String localName
        元素的本地名称。
        结果
        本地名称
        Default:
        “”
      • targetNamespace

        String targetNamespace
        元素的命名空间名称。
        结果
        目标命名空间名称
        Default:
        “”
      • className

        String className
        响应包装器bean名称。
        结果
        bean名称
        Default:
        “”
      • partName

        String partName
        wsdl:包装部分的部件名称
        结果
        wsdl:部件名称
        从以下版本开始:
        1.7,JAX-WS 2.2
        Default:
        ""