Package javax.xml.ws

Examples of javax.xml.ws.WebServiceException


                Dispatch<StreamSource> streamDispatch = createDispatch(dtService, dt.getPort());
                if (null == streamDispatch) {
                    LOG.log(Level.SEVERE,
                            "CREATEDISPATCH_FAILURE",
                            new Object[] {dt.getService(), portName });
                    throw new WebServiceException(new Message("CREATEDISPATCH_FAILURE",
                                                              LOG,
                                                              dt.getService(),
                                                              portName).toString());
                }
                dList.add(streamDispatch);
View Full Code Here


        wsdlModel = model;
        route = rt;
        try {
            wsdlLocation = new URL(wsdlModel.getDocumentBaseURI());
        } catch (MalformedURLException mue) {
            throw new WebServiceException("Invalid wsdl url", mue);
        }
        doInit = true;
    }
View Full Code Here

                Object proxy = dtService.getPort(portName, seiClass);
                if (null == proxy) {
                    LOG.log(Level.SEVERE,
                            "GETPORT_FAILURE",
                            new Object[] {dt.getService(), portName.toString()});
                    throw new WebServiceException(new Message("GETPORT_FAILURE",
                                                              LOG,
                                                              dt.getService(),
                                                              portName).toString());
                }
                proxyList.add(proxy);
View Full Code Here

        URLClassLoader loader = null;
        try {
            loader = URLClassLoader.newInstance(new URL[]{classDir.toURL()},
                                                Thread.currentThread().getContextClassLoader());
        } catch (MalformedURLException mue) {
            throw new WebServiceException("URLClassLoader creation failed", mue);
        }
       
        return loader;
    }
View Full Code Here

                URL url = getClass().getResource(wsdlUrl);
                //String url = getFile(wsdlUrl);
                wsdlModelList.add(bus.getWSDLManager().getDefinition(url));
            }
        } catch (WSDLException we) {
            throw new WebServiceException("Could not load router wsdl", we);
        }
    }
View Full Code Here

                                                                        + "wsdl2java.xml"),
                                   false,
                                   args);
            }
        } catch (Exception ex) {
            throw new WebServiceException("wsdl2java exception", ex);
        }       
    }
View Full Code Here

            File f = new File(url.getFile());
            if (f.exists()) {
                wsdlUrl = f.getCanonicalPath();
            }
        } catch (IOException ioe) {
            throw new WebServiceException("Could not load wsdl", ioe);
        }
        return wsdlUrl;
    }
View Full Code Here

        return wsdlUrl;
    }
   
    private void mkDir(File dir) {
        if (dir == null) {
            throw new WebServiceException("Could not create dir");
        }
       
        if (dir.isFile()) {
            throw new WebServiceException("Unable to create directory as a file "
                                            + "already exists with that name: "
                                            + dir.getAbsolutePath());
        }

        if (!dir.exists()) {
View Full Code Here

    }
   
    public List<String> getRouteWSDLList() {
        UrlListPolicy urlList = config.getObject(UrlListPolicy.class, ROUTING_WSDL_ID);
        if (null == urlList) {
            throw new WebServiceException("Router WSDL not specified");
        }
        return urlList.getUrl();
    }
View Full Code Here

            Bus bus = Bus.init(args);
            RouterManager rm = new RouterManager(bus);
            rm.init();
            bus.run();
        } catch (BusException be) {
            throw new WebServiceException("Could not initialize bus", be);
        }
    }
View Full Code Here

TOP

Related Classes of javax.xml.ws.WebServiceException

Copyright © 2018 www.massapicom. 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.