Examples of MessageInfo


Examples of org.codehaus.xfire.service.MessageInfo

          */
        OperationInfo opInfo = (OperationInfo) itr.next();
        assertEquals("echo2", opInfo.getName());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        List parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echo2"), part.getName());
       
        // Check the output message
        message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echo2Response"), part.getName());
       
View Full Code Here

Examples of org.codehaus.xfire.service.MessageInfo

        };
       
        Service service = osf.create(HeaderService.class);
        ServiceInfo info = service.getServiceInfo();
       
        MessageInfo inMsg =info.getOperation("doSomething").getInputMessage();
        assertEquals(1, inMsg.getMessageParts().size());
       
        AbstractSoapBinding soapOp = (AbstractSoapBinding) service.getBindings().iterator().next();
        MessagePartInfo part = soapOp.getHeaders(inMsg).getMessagePart(new QName(service.getName().getNamespaceURI(), "header"));
        assertNotNull(part);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.MessageInfo

        BeanType type = new BeanType();
        tm.register(SimpleBean.class, new QName("urn:Bean", "SimpleBean"), type);
       
        ServiceInfo info = service.getServiceInfo();
        OperationInfo o = info.getOperation("getSubmitBean");
        MessageInfo inMsg = o.getInputMessage();
        MessagePartInfo p = inMsg.getMessagePart(new QName("urn:Bean", "bean"));
        p.setSchemaType(type);
       
        o = info.getOperation("getSimpleBean");
        MessageInfo outMsg = o.getOutputMessage();
        p = outMsg.getMessagePart(new QName("urn:Bean", "getSimpleBeanout"));
        p.setSchemaType(type);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.MessageInfo

        type.setSchemaType(new QName("urn:ReallyNotSoSimpleBean", "SimpleBean"));
        type.setTypeMapping(tm);
       
        ServiceInfo info = service.getServiceInfo();
        OperationInfo o = info.getOperation("getSubmitBean");
        MessageInfo inMsg = o.getInputMessage();
        MessagePartInfo p = inMsg.getMessagePart(new QName(service.getTargetNamespace(), "bean"));
        p.setSchemaType(type);
    }
View Full Code Here

Examples of org.talend.esb.sam.common.event.MessageInfo

    originator.setHostname(hostname);
    originator.setIp(ip);
    originator.setProcessId(processId);
    event.setOriginator(originator);
   
    event.setMessageInfo(new MessageInfo());
    MessageInfo messageInfo = event.getMessageInfo();
    messageInfo.setFlowId(flowId);
    messageInfo.setMessageId(messageId);
    messageInfo.setOperationName(operarionName);
    messageInfo.setPortType(portType);
    messageInfo.setTransportType(transportType);
   
    if (event.getContent() == null || event.getContent().equals("")) {
      logger.info("Set content empty element");
      event.setContent("<empty/>");
    }

    if (event.getTimestamp() == null) {
      logger.info("Set timestamp to current Date");
      event.setTimestamp(Calendar.getInstance().getTime());
    }
    if (event.getEventType() == null) {
      logger.info("Set eventType to REQ_IN");
      event.setEventType(EventTypeEnum.REQ_IN);
    }

    if (originator.getCustomId() == null
        || originator.getCustomId().equals("")) {
      logger.info("Set custom id to empty");
      originator.setCustomId("empty");
    }
    if (originator.getHostname() == null
        || originator.getHostname().equals("")) {
      logger.info("Set hostname to empty");
      originator.setHostname("empty");
    }
    if (originator.getIp() == null || originator.getIp().equals("")) {
      logger.info("Set ip to empty");
      originator.setIp("empty");
    }
    if (originator.getProcessId() == null
        || originator.getProcessId().equals("")) {
      logger.info("Set process id to empty");
      originator.setProcessId("empty");
    }

    if (messageInfo.getFlowId() == null
        || messageInfo.getFlowId().equals("")) {
      logger.info("Set flow id to empty");
      messageInfo.setFlowId("empty");
    }
    if (messageInfo.getMessageId() == null
        || messageInfo.getMessageId().equals("")) {
      logger.info("Set message id to empty");
      messageInfo.setMessageId("empty");
    }
    if (messageInfo.getOperationName() == null
        || messageInfo.getOperationName().equals("")) {
      logger.info("Set operation name to empty");
      messageInfo.setOperationName("empty");
    }
    if (messageInfo.getPortType() == null
        || messageInfo.getPortType().equals("")) {
      logger.info("Set porttype to empty");
      messageInfo.setPortType("empty");
    }
    if (messageInfo.getTransportType() == null
        || messageInfo.getTransportType().equals("")) {
      logger.info("Set pransport type to empty");
      messageInfo.setTransportType("empty");
    }

    if (event.getPersistedId() != null) {
      logger.warning("Persisted Id is not null, but event is not persisted jet!");
    }
View Full Code Here

Examples of org.wso2.carbon.tracer.service.MessageInfo

            buffer = new CircularBuffer(TracerConstants.MSG_BUFFER_SZ);
            configCtx.setProperty(TracerConstants.MSG_SEQ_BUFFER, buffer);
        }
        GregorianCalendar cal = new GregorianCalendar();
        cal.setTime(new Date());
        MessageInfo messageInfo = new MessageInfo();
        messageInfo.setMessageSequence(msgSeq);
        messageInfo.setOperationName(operationName);
        messageInfo.setServiceId(serviceName);
        messageInfo.setTimestamp(cal);
        buffer.append(messageInfo);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.