Examples of targetNamespace()


Examples of javax.jws.WebResult.targetNamespace()

    public QName getWebResultQName() {
        WebResult res = getWebResult();
        if (null != res) {
            if (getSOAPStyle() == Style.DOCUMENT) {
                if ("".equals(res.name())) {
                    return new QName(res.targetNamespace(),
                            "return");
                }
                return new QName(res.targetNamespace(),
                                 res.name());
            } else {
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

            if (getSOAPStyle() == Style.DOCUMENT) {
                if ("".equals(res.name())) {
                    return new QName(res.targetNamespace(),
                            "return");
                }
                return new QName(res.targetNamespace(),
                                 res.name());
            } else {
                return new QName("", res.partName());
            }
        }
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

        WebResult webResult = method.getAnnotation(WebResult.class);
        boolean webResultHeader = false;
        if (webResult != null) {
            resultName = webResult.name().length() > 0 ? webResult.name() : resultName;
            webResultHeader = webResult.header();
            resultTNS = webResult.targetNamespace().length() > 0 ? webResult.targetNamespace() : resultTNS;
            resultPartName = webResult.partName().length() > 0 ? webResult.partName() : resultName;
        }

        // get return type class
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

        WebResult webResult = method.getAnnotation(WebResult.class);
        boolean webResultHeader = false;
        if (webResult != null) {
            resultName = webResult.name().length() > 0 ? webResult.name() : resultName;
            webResultHeader = webResult.header();
            resultTNS = webResult.targetNamespace().length() > 0 ? webResult.targetNamespace() : resultTNS;
            resultPartName = webResult.partName().length() > 0 ? webResult.partName() : resultName;
        }

        // get return type class
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

            assertNotNull(w1);
            assertNotNull(w2);
            assertEquals(w1.name(), w2.name());
            assertEquals(w1.header(), w2.header());
            assertEquals(w1.partName(), w2.partName());
            assertEquals(w1.targetNamespace(), w2.targetNamespace());
        }
       
        for (int x = 0; x < c1.getParamsLength(); x++) {
            WebParam wp1 =  c1.getWebParam(x);
            WebParam wp2 =  c2.getWebParam(x);
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

        processor.setEnvironment(env);
        processor.process();
        Class clz = classLoader.loadClass("org.apache.tuscany.samples.helloworldaxis.HelloWorldServiceImpl");
        Method method = clz.getMethod("getGreetings", new Class[] {java.lang.String.class});
        WebResult webResultAnno = AnnotationUtil.getPrivMethodAnnotation(method, WebResult.class);
        assertEquals("http://helloworldaxis.samples.tuscany.apache.org", webResultAnno.targetNamespace());
        assertEquals("response", webResultAnno.partName());
        assertEquals("getGreetingsResponse", webResultAnno.name());
       
        WebParam webParamAnno = AnnotationUtil.getWebParam(method, "getGreetings");
        assertEquals("http://helloworldaxis.samples.tuscany.apache.org", webParamAnno.targetNamespace());
View Full Code Here

Examples of javax.jws.WebResult.targetNamespace()

        assertNull("SOAPBinding Annotation should be null", soapBindingAnno);
       
       
        Method method = clz.getMethod("getGreetings", new Class[] {java.lang.String.class});
        WebResult webResultAnno = AnnotationUtil.getPrivMethodAnnotation(method, WebResult.class);
        assertEquals("http://helloworldaxis.samples.tuscany.apache.org", webResultAnno.targetNamespace());
        assertEquals("", webResultAnno.partName());
        assertEquals("return", webResultAnno.name());
       
        WebParam webParamAnno = AnnotationUtil.getWebParam(method, "request");
        assertNotNull("WebParam should be annotated", webParamAnno);
View Full Code Here

Examples of javax.jws.WebService.targetNamespace()

        {
            WebServiceAnnotation annotation = new WebServiceAnnotation();
            annotation.setEndpointInterface(webService.endpointInterface());
            annotation.setName(webService.name());
            annotation.setServiceName(webService.serviceName());
            annotation.setTargetNamespace(webService.targetNamespace());
            annotation.setPortName(webService.portName());
            annotation.setWsdlLocation(webService.wsdlLocation());
           
            return annotation;
        }
View Full Code Here

Examples of javax.jws.WebService.targetNamespace()

        assertEquals(1, list.getLength());
        Node operationNode = list.item(0);
        assertEquals(objContext.getMethod().getName(), operationNode.getLocalName());
        WebService wsAnnotation = objContext.getMethod().getDeclaringClass().getAnnotation(WebService.class);
        String expectedNameSpace = wsAnnotation.targetNamespace();
        assertTrue(expectedNameSpace.equals(operationNode.getNamespaceURI()));
        assertTrue(operationNode.hasChildNodes());
        assertEquals(arg0, operationNode.getFirstChild().getFirstChild().getNodeValue());
    }
View Full Code Here

Examples of javax.jws.WebService.targetNamespace()

        assertEquals(1, list.getLength());
        Node operationNode = list.item(0);
        assertEquals(objContext.getMethod().getName() + "Response", operationNode.getLocalName());
       
        WebService wsAnnotation = objContext.getMethod().getDeclaringClass().getAnnotation(WebService.class);
        String expectedNameSpace = wsAnnotation.targetNamespace();
        assertTrue(expectedNameSpace.equals(operationNode.getNamespaceURI()));
       
        assertTrue(operationNode.hasChildNodes());
        assertEquals(arg0, operationNode.getFirstChild().getFirstChild().getNodeValue());
    }
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.