Package javax.xml.ws

Examples of javax.xml.ws.RequestWrapper.targetNamespace()


        RequestWrapper.class, method);
    if(requestWrapper != null) {
      RequestWrapperAnnot rwAnnot = RequestWrapperAnnot.createRequestWrapperAnnotImpl();
      rwAnnot.setClassName(requestWrapper.className());
      rwAnnot.setLocalName(requestWrapper.localName());
      rwAnnot.setTargetNamespace(requestWrapper.targetNamespace());
      mdc.setRequestWrapperAnnot(rwAnnot);
    }
  }

  /**
 
View Full Code Here


        Method m = getDeclaredMethod(method);
        RequestWrapper rw = m.getAnnotation(RequestWrapper.class);
        String nm = null;
        String lp = null;
        if (rw != null) {
            nm = rw.targetNamespace();
            lp = rw.localName();
        }
        WebMethod meth = m.getAnnotation(WebMethod.class);
        if (meth != null && StringUtils.isEmpty(lp)) {
            lp = meth.operationName();
View Full Code Here

                // FIXME: [rfeng] For the BARE mapping, do we need to create a Wrapper?
                // it's null at this point
            } else {

                RequestWrapper requestWrapper = method.getAnnotation(RequestWrapper.class);
                String ns = requestWrapper == null ? tns : getValue(requestWrapper.targetNamespace(), tns);
                String name =
                    requestWrapper == null ? operationName : getValue(requestWrapper.localName(), operationName);
                String wrapperBeanName = requestWrapper == null ? "" : requestWrapper.className();
                if ("".equals(wrapperBeanName)) {
                    wrapperBeanName = CodeGenerationHelper.getPackagePrefix(clazz) + capitalize(method.getName());
View Full Code Here

        Method m = getDeclaredMethod(method);
        RequestWrapper rw = m.getAnnotation(RequestWrapper.class);
        if (rw == null) {
            return null;
        }
        String nm = rw.targetNamespace();
        String lp = rw.localName();
        if (nm.length() > 0 && lp.length() > 0) {           
            return new QName(nm, lp);
        }
        return null;       
View Full Code Here

        String namespace = null;
        if (ContextUtils.isRequestor(message)) {
            RequestWrapper requestWrapper =
                method.getAnnotation(RequestWrapper.class);
            if (requestWrapper != null) {
                namespace = requestWrapper.targetNamespace();
            }
        } else {
            ResponseWrapper responseWrapper =
                method.getAnnotation(ResponseWrapper.class);
            if (responseWrapper != null) {
View Full Code Here

    {
        if (op.getMethod().isAnnotationPresent(RequestWrapper.class))
        {
            RequestWrapper wrapper = op.getMethod().getAnnotation(RequestWrapper.class);
           
            String ns = wrapper.targetNamespace();
            if (ns.length() == 0) ns = op.getService().getPortType().getNamespaceURI();

            String name = wrapper.localName();
            if (name.length() == 0) name = op.getName();
           
View Full Code Here

        Method m = getDeclaredMethod(method);
        RequestWrapper rw = m.getAnnotation(RequestWrapper.class);
        String nm = null;
        String lp = null;
        if (rw != null) {
            nm = rw.targetNamespace();
            lp = rw.localName();
        }
        WebMethod meth = m.getAnnotation(WebMethod.class);
        if (meth != null && StringUtils.isEmpty(lp)) {
            lp = meth.operationName();
View Full Code Here

            } else {
                if (ContextUtils.isRequestor(message)) {
                    RequestWrapper requestWrapper =
                        method.getAnnotation(RequestWrapper.class);
                    if (requestWrapper != null) {
                        action = getAction(requestWrapper.targetNamespace(),
                                           method,
                                           requestWrapper.localName(),
                                           false);
                    } else {
                        WebService wsAnnotation = method.getDeclaringClass().getAnnotation(WebService.class);
View Full Code Here

        Method m = getDeclaredMethod(method);
        RequestWrapper rw = m.getAnnotation(RequestWrapper.class);
        if (rw == null) {
            return null;
        }
        String nm = rw.targetNamespace();
        String lp = rw.localName();
        if (nm.length() > 0 && lp.length() > 0) {           
            return new QName(nm, lp);
        }
        return null;       
View Full Code Here

        String namespace = null;
        if (ContextUtils.isRequestor(message)) {
            RequestWrapper requestWrapper =
                method.getAnnotation(RequestWrapper.class);
            if (requestWrapper != null) {
                namespace = requestWrapper.targetNamespace();
            }
        } else {
            ResponseWrapper responseWrapper =
                method.getAnnotation(ResponseWrapper.class);
            if (responseWrapper != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.