Package com.volantis.wsif

Examples of com.volantis.wsif.WSIFException


        try {
            wsifOperation.executeRequestResponseOperation(
                    input, output, fault);
        } catch (IOException e) {
            throw new WSIFException(e.getMessage(), e);
        }

        checkForFault(operation, message, fault);

        result = buildOutputMessage(wsdlOutput.getMessage(), output);
View Full Code Here


            } else {
                message = "WebService server reported a fault." +
                        "Sorry, don't know any more details.";
            }

            throw new WSIFException(message);
        }
    }
View Full Code Here

        QName elementName = wsdlPart.getElementName();

        if (elementName == null) {
            QName typeName = wsdlPart.getTypeName();
            if (typeName == null) {
                throw new WSIFException("Part \"" + wsdlPart.getName() +
                                        "\" has neither type nor element definition.");
            }
            String namespace = typeName.getNamespaceURI();
            if (!namespace.equals(Constants.NS_URI_XSD_1999) &&
                    !namespace.equals(Constants.NS_URI_XSD_2000) &&
View Full Code Here

        List parts = wsdlMessage.getOrderedParts(null);

        if (parts.size() != wsDriverMessage.size()) {
            // Both sets of parts should be the same size.
            throw new WSIFException("Wrong number of parts. " +
                                    "WSDL message " + wsdlMessage.getQName() +
                                    " has " + parts.size() + " parts. The wsdriver.Message" +
                                    " equivalent has " + wsDriverMessage.size());
        }

        for (int i = 0; i < parts.size(); i++) {
            javax.wsdl.Part wsdlPart = (javax.wsdl.Part)parts.get(i);
            Part wsDriverPart = wsDriverMessage.retrievePart(i);

            if (!wsDriverPart.getName().equals(wsdlPart.getName())) {
                // Both sets of parts should be in the same order and have the
                // same set of part names.
                throw new WSIFException("Unexpected part name. Expected \"" +
                                        wsdlPart.getName() + "\" but was \"" +
                                        wsDriverPart.getName() + "\".");
            }

            wsifMessage.setObjectPart(wsDriverPart.getName(),
View Full Code Here

                operation = op;
            }
        }

        if (operation == null) {
            throw new WSIFException("Could not find operation \"" +
                                    name + "\".");
        }

        return operation;
    }
View Full Code Here

TOP

Related Classes of com.volantis.wsif.WSIFException

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.