Package org.apache.wsif

Examples of org.apache.wsif.WSIFOperation.executeRequestResponseOperation()


//      printElement(element);
                 
      inMsg.setObjectPart("buff", element);

      boolean ok =
        operation.executeRequestResponseOperation(
          inMsg,
          outMsg,
          faultMsg);
      assertTrue("operation returned false!!", ok);
     
View Full Code Here


     
            DataHandler dh1 = new DataHandler(new FileDataSource(IMAGE_LOCATION));
      inMsg.setObjectPart("file", dh1);

      boolean ok =
        operation.executeRequestResponseOperation(
          inMsg,
          outMsg,
          faultMsg);
      assertTrue("operation returned false!!", ok);
     
View Full Code Here

      WSIFMessage fault = operation.createFaultMessage();
      // populate the input message
      input.setObjectPart("name","John Smith");
      // do the invocation
      System.out.println("Querying address for John Smith...");
      if (operation.executeRequestResponseOperation(input,output,fault)) {
    // invocation succeeded
    // extract the address from the output message
    Address address = (Address) output.getObjectPart("address");
    System.out.println("Service returned the following address:");
    System.out.println(address.getStreetNum()+" "+address.getStreetName()+
View Full Code Here

      fault = operation.createFaultMessage();
      // populate the input message
      input.setObjectPart("name","Jane White");
      // do the invocation
      System.out.println("Querying address for Jane White...");
      if (operation.executeRequestResponseOperation(input,output,fault)) {
    // invocation succeeded
    // extract the address from the output message
    Address address = (Address) output.getObjectPart("address");
    System.out.println("Service returned the following address:");
    System.out.println(address.getStreetNum()+" "+address.getStreetName()+
View Full Code Here

            String nameToLookup = "Chris P. Bacon";
            inputMessage.setObjectPart("name", nameToLookup);

            // Execute the operation
            boolean operationSucceeded =
                operation.executeRequestResponseOperation(
                    inputMessage,
                    outputMessage,
                    faultMessage);

            if (operationSucceeded) {
View Full Code Here

            // Check that we can't reuse an operation.           
            boolean caughtException = false;
            try {
                operationSucceeded =
                    operation.executeRequestResponseOperation(
                        inputMessage,
                        outputMessage,
                        faultMessage);
            } catch (WSIFException we) {
                caughtException = true;
View Full Code Here

            inputMessage.setObjectPart("name", nameToAdd);
            //inputMessage.setObjectPart("address", null); // should default to null

            // Execute the operation, obtaining a flag to indicate its success
            boolean ok =
                operation.executeRequestResponseOperation(
                    inputMessage,
                    outputMessage,
                    faultMessage);

            assertTrue( "Failed to add name and address to addressbook", ok );
View Full Code Here

        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
        inputMessage.setObjectPart("dummy", partVal);

        boolean b =
            operation.executeRequestResponseOperation(
                inputMessage,
                outputMessage,
                faultMessage);

        if (b) {
View Full Code Here

            // Set the name to find in the addressbook
            String nameToLookup = "Chris P. Bacon";
            inputMessage.setObjectPart("name", nameToLookup);

            // Execute the operation
            ok = operation.executeRequestResponseOperation(
                    inputMessage,
                    outputMessage,
                    faultMessage);

            assertTrue( "Failed to lookup name from addressbook", ok );
View Full Code Here

       if ( addr != null ) {
          inputMessage.setObjectPart( "address", addr );
       }
       inputMessage.setObjectPart( "extra", "junk" );

       boolean ok = operation.executeRequestResponseOperation(
          inputMessage,
          outputMessage,
          faultMessage);

       assertTrue( "addEntry operation returned false!!", ok );
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.