Package org.apache.handler_test

Examples of org.apache.handler_test.PingException


    }
   
    public void verifyJAXWSProperties(MessageContext ctx) throws PingException {
        QName operationName = (QName)ctx.get(MessageContext.WSDL_OPERATION);
        if (operationName == null) {
            throw new PingException("WSDL_OPERATION not found");
        }
        URI wsdlDescription = (URI)ctx.get(MessageContext.WSDL_DESCRIPTION);
        if (!wsdlDescription.toString().equals("http://localhost:9005/HandlerTest/SoapPort?wsdl")) {
            throw new PingException("WSDL_DESCRIPTION not found");
        }
        QName wsdlPort = (QName)ctx.get(MessageContext.WSDL_PORT);
        if (!wsdlPort.getLocalPart().equals("SoapPort")) {
            throw new PingException("WSDL_PORT not found");
        }      
        QName wsdlInterface = (QName)ctx.get(MessageContext.WSDL_INTERFACE);
        if (!wsdlInterface.getLocalPart().equals("HandlerTest")) {
            throw new PingException("WSDL_INTERFACE not found");
        }     
        QName wsdlService = (QName)ctx.get(MessageContext.WSDL_SERVICE);
        if (!wsdlService.getLocalPart().equals("HandlerTestService")) {
            throw new PingException("WSDL_SERVICE not found");
        }   
    }
View Full Code Here


        //ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        }

        return ret;
    }
View Full Code Here

        ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("servant throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        } else if (handlerCommand.contains("servant throw RuntimeException")) {
            throw new RuntimeException("servant throw RuntimeException");
        } else if (handlerCommand.contains("servant throw SOAPFaultException")) {
            throw createSOAPFaultException("servant throws SOAPFaultException");
        } else if (handlerCommand.contains("servant throw WebServiceException")) {
View Full Code Here

        ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("servant throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        } else if (handlerCommand.contains("servant throw RuntimeException")) {
            throw new RuntimeException("servant throw RuntimeException");
        } else if (handlerCommand.contains("servant throw SOAPFaultException")) {
            throw createSOAPFaultException("servant throws SOAPFaultException");
        } else if (handlerCommand.contains("servant throw WebServiceException")) {
View Full Code Here

        //ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        }

        return ret;
    }
View Full Code Here

            try {
                Object wsdlDescription = ctx.get(MessageContext.WSDL_DESCRIPTION);
                if (wsdlDescription == null
                    || (!((wsdlDescription instanceof java.net.URI)
                        || (wsdlDescription instanceof java.net.URL)))) {
                    throw new PingException("WSDLDescription not found");
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            if (!isOutbound(ctx)) {
View Full Code Here

            if (isServerSideHandler()) {
                Object wsdlDescription = ctx.get(MessageContext.WSDL_DESCRIPTION);
                if (wsdlDescription == null
                    || (!((wsdlDescription instanceof java.net.URI)
                        || (wsdlDescription instanceof java.net.URL)))) {
                    throw new PingException("WSDLDescription not found");
                }
                if (outbound) {
                    continueProcessing = true;
                } else {
                    continueProcessing = getReturnValue(outbound, ctx);
View Full Code Here

        ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("servant throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        } else if (handlerCommand.contains("servant throw RuntimeException")) {
            throw new RuntimeException("servant throw RuntimeException");
        } else if (handlerCommand.contains("servant throw SOAPFaultException")) {
            throw createSOAPFaultException("servant throws SOAPFaultException");
        } else if (handlerCommand.contains("servant throw WebServiceException")) {
View Full Code Here

        ret.addAll(getHandlersInfo(context.getMessageContext()));

        if (handlerCommand.contains("servant throw exception")) {
            PingFaultDetails details = new PingFaultDetails();
            details.setDetail(ret.toString());
            throw new PingException("from servant", details);
        } else if (handlerCommand.contains("servant throw RuntimeException")) {
            throw new RuntimeException("servant throw RuntimeException");
        } else if (handlerCommand.contains("servant throw SOAPFaultException")) {
            throw createSOAPFaultException("servant throws SOAPFaultException");
        } else if (handlerCommand.contains("servant throw WebServiceException")) {
View Full Code Here

TOP

Related Classes of org.apache.handler_test.PingException

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.