Examples of createMessage()


Examples of org.apache.servicemix.jbi.messaging.InOnlyImpl.createMessage()

        PostMethod method = new PostMethod(url);
        method.addRequestHeader("Content-Type", "text/xml");
        method.addRequestHeader("SOAPAction", "urn:xmethods-delayed-quotes#getQuote");
       
        InOnly exchange = new InOnlyImpl("id");
        NormalizedMessage in = exchange.createMessage();
        exchange.setInMessage(in);
        in.setContent(new StringSource("<?xml version='1.0'?><ns1:getQuote xmlns:ns1='urn:xmethods-delayed-quotes' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xmlns:se='http://schemas.xmlsoap.org/soap/envelope/' se:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'><symbol xsi:type='xsd:string'>SUNW</symbol></ns1:getQuote>"));
        marshaler.fromNMS(method, exchange, in);
        logger.info(((StringRequestEntity) method.getRequestEntity()).getContent());
View Full Code Here

Examples of org.apache.tuscany.core.message.MessageFactory.createMessage()

        builder.connect(sourceFactory, targetFactory, JavaContextFactory.class, true, scopeCtx);
        source.build();
        target.build();
        Assert.assertNotNull(source.getTargetInvoker());
       
        Message msg = msgFactory.createMessage();
        msg.setBody("foo");
        msg.setTargetInvoker(source.getTargetInvoker());
        Message response = source.getHeadInterceptor().invoke(msg);
        Assert.assertEquals("foo", response.getBody());
        Assert.assertEquals(1, sourceRequestHandler.getCount());
View Full Code Here

Examples of org.apache.tuscany.core.message.impl.MessageFactoryImpl.createMessage()

        builder.connect(sourceFactory, targetFactory, JavaContextFactory.class, true, scopeCtx);
        source.build();
        target.build();
        Assert.assertNotNull(source.getTargetInvoker());
       
        Message msg = msgFactory.createMessage();
        msg.setBody("foo");
        msg.setTargetInvoker(source.getTargetInvoker());
        Message response = source.getHeadInterceptor().invoke(msg);
        Assert.assertEquals("foo", response.getBody());
        Assert.assertEquals(1, sourceRequestHandler.getCount());
View Full Code Here

Examples of org.apache.wsif.util.jms.WSIFJMSDestination.createMessage()

    request.setOperationName(fieldOperation.getName());
    request.setPortName(fieldJmsPort.getPortModel().getName());
    request.setInputName(fieldBindingOperation.getBindingInput().getName());

    javax.jms.Message jmsMessage =
      jmsDest.createMessage(getJMSMessageType());

    formatter.formatRequest(request, jmsMessage);

    // **NS No support for listener - add that in
    // The basis is off the handler - if handler is defined, we start up the listener
View Full Code Here

Examples of org.codehaus.xfire.service.OperationInfo.createMessage()

            throw new XFireRuntimeException("Could not find echo method on Echo class", e);
        }
        ServiceInfo serviceInfo = new ServiceInfo(new QName("http://test.xfire.codehaus.org", "EchoPortType"),
                                                  echoClass);
        OperationInfo operation = serviceInfo.addOperation("echo", echoMethod);
        MessageInfo inputMessage = operation.createMessage(new QName("echoRequest"));
        operation.setInputMessage(inputMessage);
        MessageInfo outputMessage = operation.createMessage(new QName("echoResponse"));
        operation.setOutputMessage(outputMessage);
        inputMessage.addMessagePart(new QName("echoRequestin0"), String.class);
        outputMessage.addMessagePart(new QName("echoResponseout"), String.class);
View Full Code Here

Examples of org.eclipse.rap.rwt.internal.protocol.ProtocolMessageWriter.createMessage()

    HttpServletResponse response = RWT.getResponse();
    response.setStatus( SC_PRECONDITION_FAILED );
    ProtocolMessageWriter writer = new ProtocolMessageWriter();
    writer.appendHead( "error", JsonValue.valueOf( errorMsg ) );
    try {
      writer.createMessage().writeTo( response.getWriter() );
    } catch( IOException exception ) {
      throw new IllegalStateException( exception );
    }
  }
View Full Code Here

Examples of org.gwtnode.dev.debug.message.MessageType.createMessage()

   
    private Message logMessage(BufferStream stream, boolean fromClient) {
        try {
            stream.beginTransaction();
            MessageType type = MessageType.getMessageType(stream);
            Message message = type.createMessage(stream, fromClient);
            if (logFile != null) {
                logFile.write((fromClient ? "fromJS ** " : "toJS ** ") + message.toString() + "\n");
            } else {
                Console.get().info((fromClient ? "fromJS ** " : "toJS ** ") + message.toString());
            }
View Full Code Here

Examples of org.hornetq.api.core.client.ClientSession.createMessage()

            ClientSession session = null;
            try {
               session = sf.createSession();
               ClientProducer producer = session.createProducer(queueName);
               ClientMessage message = session.createMessage(false);

               final String propName = "myprop";
               message.putStringProperty(propName, "Hello sent at " + new Date());
               System.out.println("Sending the message.");
View Full Code Here

Examples of org.jboss.ws.core.soap.MessageFactoryImpl.createMessage()

      if (isSOAP12() == true)
      {
         factory.setEnvNamespace(Constants.NS_SOAP12_ENV);
      }

      return (SOAPMessageImpl)factory.createMessage();
   }

   private static boolean isSOAP12()
   {
      CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
View Full Code Here

Examples of org.jdesktop.wonderland.client.hud.HUD.createMessage()

    void handleAppExitted(final AppConventionalCellAppExittedMessage message) {
        String text = BUNDLE.getString("App_Exit");
        text = MessageFormat.format(text, message.getAppName(), message.getExitValue());
       
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        HUDMessage hudMessage = mainHUD.createMessage(text);
        hudMessage.setPreferredLocation(Layout.NORTHEAST);
        mainHUD.addComponent(hudMessage);
        hudMessage.setVisible(true);
        hudMessage.setVisible(false, 10000);
    }
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.