Package org.apache.wsif

Examples of org.apache.wsif.WSIFPort.createOperation()


         new javax.xml.namespace.QName("http://wsiftypes.addressbook/", "phone"),
         Class.forName("addressbook.wsiftypes.Phone"));

      WSIFPort port = service.getPort(portName);

      WSIFOperation operation = port.createOperation(operationName,
                                  "AddEntryWholeNameRequest", null);

      WSIFMessage input = operation.createInputMessage();
      input.setObjectPart("name", name1);
      input.setObjectPart("address", addr1);
View Full Code Here


      // Executing synchronous executeRequestResponseOperation(input, output, fault )
      String inputMsgName = "GetAddressFromNameRequest";
      String outputMsgName = "GetAddressFromNameResponse";
      WSIFOperation operation =
        port.createOperation(operationName, inputMsgName, outputMsgName);

      WSIFMessage context = operation.getContext();
      context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo",
                             TestUtilities.getWsifProperty("wsif.nativejms.responseq") );
      operation.setContext( context );
View Full Code Here

      System.out.println("Found address = " + addressResponse);
      assertTrue( "doSyncOp addresses not equal!", addr1.equals(addressResponse) );

      // Executing executeRequestResponseOperation(input, output, fault )
      operation =
        port.createOperation(operationName, inputMsgName, outputMsgName);

      operation.setContext( context );
   
      input = operation.createInputMessage();
      input.setObjectPart("name", name1);
View Full Code Here

      System.out.println("Found address = " + addressResponse);
      assertTrue( "doAsyncOp addresses not equal!", addr1.equals(addressResponse) );

      // Executing executeRequestResponseAsync(input)
      operation =
        port.createOperation(operationName, inputMsgName, outputMsgName);

      operation.setContext( context );
   
      input = operation.createInputMessage();
      input.setObjectPart("name", name1);
View Full Code Here

    private void bounce_image2(WSIFService service, Mime stub, String portName)
        throws Exception {
        DataHandler dh1 = new DataHandler(new FileDataSource(imageLocation));

        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("bounceImage2");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setObjectPart("file",dh1);
View Full Code Here

     */
    private void soap_body_parts1(WSIFService service, Mime stub)
        throws Exception {
        DataHandler dh = new DataHandler(new FileDataSource(flatfileLocation));
        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("soapBodyParts1");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setBooleanPart("shouldBounce",true);
        in.setObjectPart("file",dh);
View Full Code Here

    private void soap_body_parts2(WSIFService service, Mime stub)
        throws Exception {
        DataHandler dh = new DataHandler(new FileDataSource(flatfileLocation));
        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("soapBodyParts2");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setObjectPart("file",dh);
View Full Code Here

    }

    private void soap_body_parts3(WSIFService service, Mime stub)
        throws Exception {
        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("soapBodyParts3");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setBooleanPart("shouldBounce",true);
View Full Code Here

    }

    private void soap_body_parts4(WSIFService service, Mime stub)
        throws Exception {
        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("soapBodyParts4");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();

        boolean success = op.executeRequestResponseOperation(in,out,fault);
View Full Code Here

        String position1 = "Position One";
        String position2 = "Position Two";
        String position3 = "Position Three";

        WSIFPort port = service.getPort(portName);
        WSIFOperation op = port.createOperation("mixMimeParts");
        WSIFMessage in = op.createInputMessage();
        WSIFMessage out = op.createOutputMessage();
        WSIFMessage fault = op.createFaultMessage();
        in.setObjectPart("position1", position1);
        in.setObjectPart("file1", dh1);
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.