Package javax.xml.ws

Examples of javax.xml.ws.WebServiceException


        try {
            JAXBExtensionHelper.addExtensions(registry,
                                              Definition.class,
                                              RouteType.class);
        } catch (JAXBException e) {
            throw new WebServiceException("Adding of routeType extension failed.");
        }
    }
View Full Code Here


        Class<?> sei = null;
        try {
            sei = seiClassLoader.loadClass(seiName.toString());
        } catch (ClassNotFoundException cnfe) {
            throw new WebServiceException("Could not load sei", cnfe);
        }
       
        impl = Proxy.newProxyInstance(sei.getClassLoader(),
                                      new Class[] {sei},
                                      implHandler);
View Full Code Here

        }

        for (SourceType st : stList) {
            Service sourceService = wsdlModel.getService(st.getService());
            if (null == sourceService) {
                throw new WebServiceException(
                            new Message("UNDEFINED_SERVICE", LOG, st.getService()).toString());
            }
            Port sourcePort = sourceService.getPort(st.getPort());
           
            if (null == sourcePort) {
                throw new WebServiceException(
                            new Message("UNDEFINED_PORT", LOG, st.getPort()).toString());               
            }
            sourcePortMap.put(sourceService.getQName(), sourcePort);
        }
    }
View Full Code Here

        }

        for (DestinationType dt : dtList) {
            Service destService = wsdlModel.getService(dt.getService());
            if (null == destService) {
                throw new WebServiceException(
                            new Message("UNDEFINED_SERVICE", LOG, dt.getService()).toString());
            }
            Port destPort = destService.getPort(dt.getPort());
           
            if (null == destPort) {
                throw new WebServiceException(
                            new Message("UNDEFINED_PORT", LOG, dt.getPort()).toString());               
            }
            destPortMap.put(destService.getQName(), destPort);
        }
    }
View Full Code Here

            if (defaultBus == null) {
                defaultBus = Bus.init();
            }
            return defaultBus;
        } catch (BusException ex) {
            throw new WebServiceException("unable to initialize default bus", ex);
        }
    }
View Full Code Here

                Handler handler = handlerClass.newInstance();
                LOG.fine("adding handler to chain: " + handler);
                configureHandler(handler, h);
                handlerChain.add(handler);
            } catch (ClassNotFoundException e) {
                throw new WebServiceException(new Message("HANDLER_INSTANTIATION_EXC", LOG).toString(), e);
            } catch (InstantiationException e) {
                throw new WebServiceException(new Message("HANDLER_INSTANTIATION_EXC", LOG).toString(), e);
            } catch (IllegalAccessException e) {
                throw new WebServiceException(new Message("HANDLER_INSTANTIATION_EXC", LOG).toString(), e);
            }
        }
        return handlerChain;
    }
View Full Code Here

        try {
            binding.getBindingImpl().read(istreamCtx, bindingCtx);
            state = ServerRequestState.STREAM_READ;
        } catch (IOException ex) {
            LOG.log(Level.SEVERE, "REQUEST_UNREADABLE_MSG", ex);
            throw new WebServiceException(ex);
        }

        boolean continueProcessing = handlerInvoker.invokeProtocolHandlers(isRequestor(), bindingCtx);
        state = ServerRequestState.PROTOCOL_HANDLERS_INVOKED;
        if (!continueProcessing) {
View Full Code Here

        LOG.fine("doInvocation");
        QName operationName = (QName)objectCtx.get(MessageContext.WSDL_OPERATION);
        if (null == operationName) {
            Message msg = new Message("CONTEXT_MISSING_OPERATION_NAME_EXC", LOG);
            LOG.log(Level.SEVERE, msg.toString());
            objectCtx.setException(new WebServiceException(msg.toString()));
            return;
        }
        if (LOG.isLoggable(Level.FINE)) {
            LOG.fine("operation name: " + operationName);
        }

       
       
        ServerDataBindingCallback method = (ServerDataBindingCallback)
            BindingContextUtils.retrieveDataBindingCallback(objectCtx);
        if (null == method) {
            Message msg = new Message("IMPLEMENTOR_MISSING_METHOD_EXC", LOG, operationName);
            LOG.log(Level.SEVERE, msg.toString());
            objectCtx.setException(new WebServiceException(msg.toString()));
            return;
        }
        if (LOG.isLoggable(Level.FINE)) {
            LOG.fine("method: " + method);
        }
View Full Code Here

            if (ostreamCtx.getOutputStream() != null) {
                ostreamCtx.getOutputStream().close();
            }
        } catch (IOException ex) {
            LOG.log(Level.SEVERE, "RESPONSE_UNWRITABLE_MSG", ex);
            throw new WebServiceException(ex);
        } finally {
            complete();
        }
    }
View Full Code Here

        QName operationName = sb.getOperationName(bindingCtx);

        if (null != operationName) {
            bindingCtx.put(MessageContext.WSDL_OPERATION, operationName);
        } else {
            throw new WebServiceException("No operation matching message was found");
        }

        if (LOG.isLoggable(Level.FINE)) {
            LOG.fine("Determined operation name using server binding endpoint callback: "
                     + operationName);
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.