Package org.apache.axis2.clientapi

Examples of org.apache.axis2.clientapi.MessageSender.send()


    clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
    clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR);
    sender.engageModule(new QName ("Sandesha2-0.9"));
    clientOptions.setTo(new EndpointReference(toEPR));
    clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
    sender.send("ping",getPingOMBlock("ping1"));
    sender.send("ping",getPingOMBlock("ping2"));
    clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("ping3"));
  }
 
View Full Code Here


    clientOptions.setProperty(Sandesha2ClientAPI.AcksTo,acksToEPR);
    sender.engageModule(new QName ("Sandesha2-0.9"));
    clientOptions.setTo(new EndpointReference(toEPR));
    clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
    sender.send("ping",getPingOMBlock("ping1"));
    sender.send("ping",getPingOMBlock("ping2"));
    clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("ping3"));
  }
 
  private static OMElement getPingOMBlock(String text) {
View Full Code Here

    clientOptions.setTo(new EndpointReference(toEPR));
    clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
    sender.send("ping",getPingOMBlock("ping1"));
    sender.send("ping",getPingOMBlock("ping2"));
    clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("ping3"));
  }
 
  private static OMElement getPingOMBlock(String text) {
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace ns = fac.createOMNamespace("http://tempuri.apache.org",
View Full Code Here

    clientOptions.setReplyTo(new EndpointReference ("http://www-lk.wso2.com:9080/axis2/services/AnonymousService/echoString"));
    clientOptions.setFaultTo(new EndpointReference ("http://www-lk.wso2.com:9080/axis2/services/AnonymousService/echoString"));
    clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");
    clientOptions.setSoapAction("urn:wsrm:Ping");
    clientOptions.setAction("urn:wsrm:Ping");
      sender.send("ping",getPingOMBlock("Microsoft-1"));
    sender.send("ping",getPingOMBlock("Microsoft-2"));
    clientOptions.setProperty(ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("Microsoft-3"));
  }
 
View Full Code Here

    clientOptions.setFaultTo(new EndpointReference ("http://www-lk.wso2.com:9080/axis2/services/AnonymousService/echoString"));
    clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");
    clientOptions.setSoapAction("urn:wsrm:Ping");
    clientOptions.setAction("urn:wsrm:Ping");
      sender.send("ping",getPingOMBlock("Microsoft-1"));
    sender.send("ping",getPingOMBlock("Microsoft-2"));
    clientOptions.setProperty(ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("Microsoft-3"));
  }
 
  private static OMElement getPingOMBlock(String text) {
View Full Code Here

    clientOptions.setSoapAction("urn:wsrm:Ping");
    clientOptions.setAction("urn:wsrm:Ping");
      sender.send("ping",getPingOMBlock("Microsoft-1"));
    sender.send("ping",getPingOMBlock("Microsoft-2"));
    clientOptions.setProperty(ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("Microsoft-3"));
  }
 
  private static OMElement getPingOMBlock(String text) {
    OMFactory fac = OMAbstractFactory.getOMFactory();
    OMNamespace ns = fac.createOMNamespace("http://tempuri.org/",
View Full Code Here

    clientOptions.setTo(new EndpointReference("http://131.107.72.15/ReliableMessaging_Service_Indigo/ReliableOneWay.svc"));
    clientOptions.setProperty(MessageContextConstants.TRANSPORT_URL,transportTo);
    clientOptions.setProperty(ClientAPI.SEQUENCE_KEY,"sequence1");
    clientOptions.setSoapAction("urn:wsrm:Ping");
    clientOptions.setAction("urn:wsrm:Ping");
      sender.send("ping",getPingOMBlock("Microsoft-1"));
    sender.send("ping",getPingOMBlock("Microsoft-2"));
    clientOptions.setProperty(ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("Microsoft-3"));
  }
 
View Full Code Here

    sender.setClientOptions(clientOptions);
    clientOptions.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
    clientOptions.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
    clientOptions.setTo(new EndpointReference(toEPR));
    clientOptions.setProperty(Sandesha2ClientAPI.SEQUENCE_KEY,"sequence1");
    sender.send("ping",getPingOMBlock("ping1"));
    sender.send("ping",getPingOMBlock("ping2"));
    clientOptions.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
    sender.send("ping",getPingOMBlock("ping3"));

  }
View Full Code Here

            MessageSender msgSender = new MessageSender();
            msgSender.setTo(targetEPR);
            msgSender.setSenderTransport(Constants.TRANSPORT_HTTP);

            msgSender.send("ping", payload);

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }
    }
View Full Code Here

    public static void main(String[] args) throws AxisFault {
        MessageSender msgSender = new MessageSender();
        msgSender.setTo(
                new EndpointReference(toEpr));
        msgSender.setSenderTransport(Constants.TRANSPORT_MAIL);
        msgSender.send("echo", getPayload());
    }

    private static OMElement getPayload() {
        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMNamespace omNs = fac.createOMNamespace(
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.