Package javax.xml.ws

Examples of javax.xml.ws.ProtocolException


        final String clientHandlerMessage = "handler1 client side";

        TestHandler<LogicalMessageContext> handler1 = new TestHandler<LogicalMessageContext>(false) {
            public boolean handleMessage(LogicalMessageContext ctx) {
                super.handleMessage(ctx);
                throw new ProtocolException(clientHandlerMessage);
            }
        };       
        TestHandler<LogicalMessageContext>  handler2 = new TestHandler<LogicalMessageContext>(false);
       
        addHandlersToChain((BindingProvider)handlerTest, handler1, handler2);
View Full Code Here


    private void throwProtocolException(Throwable t) {
        if (null != t) {
            LOG.log(Level.INFO, "DISPATCH_INVOKE_EXC", cl.getSimpleName());
            throw isJAXWSException(t)
                  ? (WebServiceException)t
                  : new ProtocolException(t);
        }
    }
View Full Code Here

        if (objMsgContext.getException() != null) {
            LOG.log(Level.INFO, "ENDPOINT_INVOCATION_FAILED", method.getName());
            if (isValidException(objMsgContext)) {
                throw (Exception)objMsgContext.getException();
            } else {               
                throw new ProtocolException(objMsgContext.getException());
            }
        }
       
        return objMsgContext.getReturn();
    }   
View Full Code Here

            // schema validation exceptions.
            String message = "Marshalling error ";
            if (me.getCause() != null) {
                message += me.getCause();
            }
            throw new ProtocolException(message, me);
        } catch (Exception ex) {
            throw new ProtocolException("Marshalling Error", ex);
        }
    }
View Full Code Here

            // schema validation exceptions.
            String message = "Unmarshalling error ";
            if (ue.getCause() != null) {
                message += ue.getCause();
            }
            throw new ProtocolException(message, ue);
        } catch (Exception ex) {
            throw new ProtocolException("Unmarshalling error", ex);
        }
        return obj;
    }
View Full Code Here

            // schema validation exceptions.
            String message = "Unmarshalling error ";
            if (ue.getCause() != null) {
                message += ue.getCause();
            }
            throw new ProtocolException(message, ue);
           
        } catch (Exception ex) {
            throw new ProtocolException("Unmarshalling error", ex);
        }
        return obj;
    }
View Full Code Here

        assert msg != null;
        try {
            hasFault = msg.getSOAPBody().hasFault();
        } catch (SOAPException se) {
            LOG.log(Level.SEVERE, "SOAP_UNMARSHALLING_FAILURE_MSG", se);
            throw new ProtocolException(se);
        }
        return hasFault;
    }
View Full Code Here

                    }
                }
            }
            return true;
        } catch (JAXBException ex) {
            throw new ProtocolException(ex);
        }

    }
View Full Code Here

                InvocationHandler proxyHandler = Proxy.getInvocationHandler(clientProxy);
                try {
                    ret = proxyHandler.invoke(clientProxy, method, args);
                } catch (UndeclaredThrowableException ute) {
                    LOG.log(Level.SEVERE, "PROXY_INVOKE_UNDECLEXCEPTION", method.toString());
                    ex = new ProtocolException(new Message("PROXY_INVOKE_UNDECLEXCEPTION",
                                                           LOG,
                                                           method.toString()).toString(),
                                               ute.getCause());
                } catch (Error error) {
                    LOG.log(Level.SEVERE, "PROXY_INVOKE_ERROR", method.toString());
                    ex = new ProtocolException(new Message("PROXY_INVOKE_UNDECLEXCEPTION",
                                                           LOG,
                                                           method.toString()).toString(),
                                               error);
                } catch (Throwable t) {
                    LOG.log(Level.WARNING, "PROXY_INVOKE_EXCEPTION", method.toString());               
View Full Code Here

    private void setupCompressionOutputStream(StreamMessageContext ctx) {
       
        try {
            ctx.setOutputStream(new GZIPOutputStream(ctx.getOutputStream()));
        } catch (IOException ex) {
            throw new ProtocolException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of javax.xml.ws.ProtocolException

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.