Package org.apache.axis.client

Examples of org.apache.axis.client.Service.createCall()


        rmMessageContext.getMsgContext().setRequestMessage(new Message(responseEnvelope));
        //rmMessageContext.getMsgContext().setResponseMessage(new Message(responseEnvelope));

        Service service = new Service();
        Call call = (Call) service.createCall();

        if (rmMessageContext.getAddressingHeaders().getAction() != null) {
            call.setSOAPActionURI(rmMessageContext.getAddressingHeaders().getAction().toString());
        }
View Full Code Here


        }
    }

    private Call prepareCall(RMMessageContext rmMessageContext) throws ServiceException, AxisFault {
        Service service = new Service();
        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress(rmMessageContext.getOutGoingAddress());

        call.setClientHandlers(requestChain, responseChain);
        if (rmMessageContext.getMsgContext().getRequestMessage() != null) {
            String soapMsg = rmMessageContext.getMsgContext().getRequestMessage()
View Full Code Here

        System.out.println("Client started...... Synchronous ");
        try {


            Service service = new Service();
            Call call = (Call) service.createCall();

            SandeshaContext ctx = new SandeshaContext(Constants.SYNCHRONOUS);
            ctx.initCall(call, targetURL, "urn:wsrm:Ping",
                    Constants.ClientProperties.IN_ONLY);
View Full Code Here

            UUIDGen uuidGen = UUIDGenFactory.getUUIDGen(); //Can use this for continuous testing.
            String str = uuidGen.nextUUID();


            Service service = new Service();
            Call call = (Call) service.createCall();

            SandeshaContext ctx = new SandeshaContext();

            ctx.setAcksToURL(Constants.WSA.NS_ADDRESSING_ANONYMOUS);
            ctx.setReplyToURL("http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
View Full Code Here

        try {
            UUIDGen uuidGen = UUIDGenFactory.getUUIDGen(); //Can use this for continuous testing.
            String str = uuidGen.nextUUID();

            Service service = new Service();
            Call call = (Call) service.createCall();

            SandeshaContext ctx = new SandeshaContext();

            ctx.setAcksToURL("http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
            ctx.setReplyToURL("http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
View Full Code Here

    public static void main(String[] args) {
        System.out.println("Client started...... Asynchronous ");
        try {

            Service service = new Service();
            Call call = (Call) service.createCall();

            SandeshaContext ctx = new SandeshaContext();
            ctx.setAcksToURL("http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
            ctx.setReplyToURL("http://127.0.0.1:" + defaultClientPort + "/axis/services/RMService");
            ctx.initCall(call, targetURL, "urn:wsrm:ping", Constants.ClientProperties.IN_ONLY);
View Full Code Here

      Service  service = new Service();

      Float res = new Float(0.0F);
      for (int i=0; i<count; i++) {
          Call     call    = (Call) service.createCall();

          call.setTargetEndpointAddress( url );
          call.setOperationName( new QName("urn:xmltoday-delayed-quotes", "getQuote") );
          call.addParameter( "symbol", XMLType.XSD_STRING, ParameterMode.IN );
          call.setReturnType( XMLType.XSD_FLOAT );
View Full Code Here

        log.debug(endpointURL.toString());
    }

    try {
      service = new Service();
      call = (Call)service.createCall();
      call.setTargetEndpointAddress(endpointURL.toURL());
     
      String requestString = XMLUtils.ElementToString(request);
      SOAPBodyElement body = new SOAPBodyElement(new ByteArrayInputStream(requestString.getBytes("UTF-8")));
      Object[] soapBodies = new Object[] { body };
View Full Code Here

    log.debug("\nRequest message:\n" + request);

    try {
       
      service = new Service();
      call = (Call)service.createCall();
      call.setTargetEndpointAddress(endpointURL.toURL());
   
      SOAPBodyElement body = new SOAPBodyElement(new ByteArrayInputStream(request.getBytes("UTF-8")));
      Object[] soapBodies = new Object[] { body };
   
View Full Code Here

        log.debug(endpointURL.toString());
    }

    try {
      service = new Service();
      call = (Call)service.createCall();
      call.setTargetEndpointAddress(endpointURL.toURL());
     
      String requestString = XMLUtils.ElementToString(request);
      SOAPBodyElement body = new SOAPBodyElement(new ByteArrayInputStream(requestString.getBytes("UTF-8")));
      Object[] soapBodies = new Object[] { body };
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.