Examples of WebServiceClient


Examples of javax.xml.ws.WebServiceClient

              "subclass as @WebServiceRef(...) value.");
        }
        if (StringUtils.hasLength(this.wsdlLocation)) {
          try {
            Constructor ctor = this.lookupType.getConstructor(new Class[] {URL.class, QName.class});
            WebServiceClient clientAnn = this.lookupType.getAnnotation(WebServiceClient.class);
            if (clientAnn == null) {
              throw new IllegalStateException("JAX-WS Service class [" + this.lookupType.getName() +
                  "] does not carry a WebServiceClient annotation");
            }
            service = (Service) BeanUtils.instantiateClass(ctor,
                new Object[] {new URL(this.wsdlLocation), new QName(clientAnn.targetNamespace(), clientAnn.name())});
          }
          catch (NoSuchMethodException ex) {
            throw new IllegalStateException("JAX-WS Service class [" + this.lookupType.getName() +
                "] does not have a (URL, QName) constructor. Cannot apply specified WSDL location [" +
                this.wsdlLocation + "].");
View Full Code Here

Examples of javax.xml.ws.WebServiceClient

        // WSDL document location
        if (!serviceRef.isSetWsdlFile()) {
            String wsdlLocation = annotation.wsdlLocation();

            if (wsdlLocation == null || wsdlLocation.trim().length() == 0) {
                WebServiceClient wsClient = null;
                if (Object.class.equals(webServiceRefValue)) {
                    wsClient = (WebServiceClient) webServiceRefType.getAnnotation(WebServiceClient.class);
                } else {
                    wsClient = (WebServiceClient) webServiceRefValue.getAnnotation(WebServiceClient.class);
                }
                if (wsClient == null) {
                    wsdlLocation = null;
                } else {
                    wsdlLocation = wsClient.wsdlLocation();
                }
            }

            if (wsdlLocation != null && wsdlLocation.trim().length() > 0) {
                XsdAnyURIType wsdlFile = serviceRef.addNewWsdlFile();
View Full Code Here

Examples of javax.xml.ws.WebServiceClient

   
    public void build() throws DeploymentException {
        if (this.wsdlURI == null) {
            // wsdl explitely not specified, try to get it from
            // the service class annotation
            WebServiceClient webServiceClient =
                (WebServiceClient) this.serviceClass.getAnnotation(WebServiceClient.class);
            if (webServiceClient != null) {
                this.wsdlURI = getWSDLLocation(webServiceClient);              
                this.serviceQName = getServiceQName(webServiceClient);
            }
View Full Code Here

Examples of javax.xml.ws.WebServiceClient

        processor.setContext(env);
        processor.execute();

        Class clz = classLoader
            .loadClass("org.apache.cxf.w2j.hello_world_soap_http.service.SOAPServiceTest1");
        WebServiceClient webServiceClient = AnnotationUtil
            .getPrivClassAnnotation(clz, WebServiceClient.class);
        assertEquals("http://cxf.apache.org/w2j/hello_world_soap_http/service",
                     webServiceClient.targetNamespace());
        File file = new File(output,
                             "org/apache/cxf/w2j/hello_world_soap_http/Greeter_SoapPortTest1_Client.java");
        FileInputStream fin = new FileInputStream(file);
        byte[] buffer = new byte[30000];
        int index = -1;
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.