Package javax.wsdl

Examples of javax.wsdl.Message


            List<ParamType> outputs) throws Exception {

        Output output = operation.getOutput();

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);
View Full Code Here


            List<ParamType> inputs, List<ParamType> outputs) throws Exception {

        Output output = operation.getOutput();

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);
View Full Code Here

        XmlSchemaType schemaType = null;
        Iterator i = null;
        Input input = operation.getInput();

        if (input != null) {
            Message msg = input.getMessage();
            i = msg.getParts().values().iterator();

            if (msg.getParts().size() == 0) {
                return false;
            }

            Part part = (Part) i.next();
View Full Code Here

        XmlSchemaType schemaType = null;
        Iterator i = null;
        Output output = operation.getOutput();

        if (output != null) {
            Message msg = output.getMessage();
            i = msg.getParts().values().iterator();

            if (msg.getParts().size() == 0) {
                return false;
            }

            Part part = (Part) i.next();
View Full Code Here

            generateWrappedDocElement(typeNode,
                                      GETTER_PREFIX + nameNode.toString() + RESULT_POSTFIX,
                                      RETURN_PARAM_NAME);

        // generate input message
        Message inMsg = generateMessage(inParameters,
                                        GETTER_PREFIX + nameNode.toString());
        // generate output message
        Message outMsg = generateMessage(outParameters,
                                         GETTER_PREFIX + nameNode.toString() + RESPONSE_POSTFIX);
       
        // generate operation
        String name = GETTER_PREFIX + nameNode.toString();
        Operation op = generateOperation(name, inMsg, outMsg);
View Full Code Here

            generateWrappedDocElement(null,
                                      SETTER_PREFIX + nameNode.toString() + RESULT_POSTFIX,
                                      RETURN_PARAM_NAME);
       
        // generate input message
        Message inMsg = generateMessage(inParameters,
                                        SETTER_PREFIX + nameNode.toString());
        // generate output message
        Message outMsg = generateMessage(outParameters,
                                         SETTER_PREFIX + nameNode.toString() + RESPONSE_POSTFIX);
       
        // generate operation
        String name = SETTER_PREFIX + nameNode.toString();
        Operation op = generateOperation(name, inMsg, outMsg);
View Full Code Here

    private Message generateMessage(XmlSchemaElement element, String name) {
        Part part = definition.createPart();
        part.setName(PART_NAME);
        part.setElementName(element.getQName());
       
        Message result = definition.createMessage();
        result.setQName(new QName(definition.getTargetNamespace(), name));
        result.addPart(part);
        result.setUndefined(false);
       
        definition.addMessage(result);
       
        return result;
    }
View Full Code Here

        return bindingOperation;
    }


    public Message generateInputMessage(Operation operation, BindingOperation bindingOperation) {
        Message msg = definition.createMessage();
        msg.setQName(new QName(definition.getTargetNamespace(), operation.getName()));
        msg.setUndefined(false);
       
        String inputName = operation.getName() + REQUEST_SUFFIX;
        Input input = definition.createInput();
        input.setName(inputName);
        input.setMessage(msg);
View Full Code Here

       
        return msg;
    }

    public Message generateOutputMessage(Operation operation, BindingOperation bindingOperation) {
        Message msg = definition.createMessage();
        msg.setQName(new QName(definition.getTargetNamespace(),
                               operation.getName() + RESPONSE_SUFFIX));
        msg.setUndefined(false);
       
        String outputName = operation.getName() + RESPONSE_SUFFIX;
        Output output = definition.createOutput();
        output.setName(outputName);
        output.setMessage(msg);
View Full Code Here

                                    Operation operation,
                                    BindingOperation bindingOperation) {
        String exceptionName = node.toString();

        // message
        Message faultMsg = definition.createMessage();
        faultMsg.setQName(new QName(definition.getTargetNamespace(), exceptionName));
        faultMsg.setUndefined(false);

        // message - part
        Part part = definition.createPart();
        part.setName("exception");
        // REVISIT: should be reading QName from exception XmlSchemaElement
        // part.setElementName(element.getQName());
        part.setElementName(new QName(definition.getTargetNamespace(), exceptionName));
        faultMsg.addPart(part);

        // porttype - operation - fault
        Fault fault = definition.createFault();
        fault.setMessage(faultMsg);
        fault.setName(faultMsg.getQName().getLocalPart());
        operation.addFault(fault);

        // binding - operation - corba:operation - corba:raises
        RaisesType raisesType = new RaisesType();
        raisesType.setException(new QName(typeMap.getTargetNamespace(),
                                          exceptionName));
        corbaOperation.getRaises().add(raisesType);

        // binding - operation - fault
        BindingFault bindingFault = definition.createBindingFault();
        bindingFault.setName(faultMsg.getQName().getLocalPart());
        bindingOperation.addBindingFault(bindingFault);

        definition.addMessage(faultMsg);
    }
View Full Code Here

TOP

Related Classes of javax.wsdl.Message

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.