Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.MessageInfo


       
        OperationInfo opInfo = (OperationInfo) operations.iterator().next();
        assertEquals("echo", opInfo.getName());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoRequest"), part.getName());
       
        // Check the output message
        message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoResponse"), part.getName());
       
View Full Code Here


       
        OperationInfo opInfo = (OperationInfo) operations.iterator().next();
        assertEquals("echo", opInfo.getName());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoRequest"), part.getName());
       
        // Check the output message
        message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echoResponse"), part.getName());
       
View Full Code Here

        assertEquals(1, operations.size());
       
        OperationInfo opInfo = service.getServiceInfo().getOperation("echo");
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
    }
View Full Code Here

        Collection operations = service.getServiceInfo().getOperations();
        assertEquals(1, operations.size());
       
        OperationInfo opInfo = service.getServiceInfo().getOperation("doInvokeNoResponseElements");

        MessageInfo message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(0, parts.size());
    }
View Full Code Here

       
        OperationInfo opInfo = (OperationInfo) operations.iterator().next();
        assertEquals("echo", opInfo.getName());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        assertNotNull(message);
       
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
    }
View Full Code Here

     
      OperationInfo opInfo = (OperationInfo) operations.iterator().next();
      assertEquals("echo", opInfo.getName());
     
      // Check the input message
      MessageInfo message = opInfo.getInputMessage();
      assertNotNull(message);
     
      Collection parts = message.getMessageParts();
      assertEquals(1, parts.size());
  }
View Full Code Here

     
      OperationInfo opInfo = (OperationInfo) operations.iterator().next();
      assertEquals("echo", opInfo.getName());
     
      // Check the input message
      MessageInfo message = opInfo.getInputMessage();
      assertNotNull(message);
     
      Collection parts = message.getMessageParts();
      assertEquals(1, parts.size());
     
      MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
      assertEquals("text", part.getName().getLocalPart());
  }
View Full Code Here

     
      OperationInfo opInfo = (OperationInfo) operations.iterator().next();
      assertEquals("echo", opInfo.getName());
     
      // Check the input message
      MessageInfo message = opInfo.getInputMessage();
      assertNotNull(message);
     
      Collection parts = message.getMessageParts();
      assertEquals(1, parts.size());
     
      MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
      assertEquals("echo", part.getName().getLocalPart());
  }
View Full Code Here

        assertEquals("echo", opInfo.getName());
        assertEquals("urn:Echo:schema", opInfo.getInputMessage().getName().getNamespaceURI());
        assertEquals("urn:Echo:schema", opInfo.getOutputMessage().getName().getNamespaceURI());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        Collection parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo:schema", "text"), part.getName());
       
        // and now the output...
        message = opInfo.getOutputMessage();
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        assertTrue(service.getServiceInfo().isWrapped());
       
        part = (MessagePartInfo) parts.iterator().next();
View Full Code Here

          */
        OperationInfo opInfo = (OperationInfo) itr.next();
        assertEquals("echo2", opInfo.getName());
       
        // Check the input message
        MessageInfo message = opInfo.getInputMessage();
        List parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        MessagePartInfo part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echo2"), part.getName());
       
        // Check the output message
        message = opInfo.getOutputMessage();
        assertNotNull(message);
       
        parts = message.getMessageParts();
        assertEquals(1, parts.size());
       
        part = (MessagePartInfo) parts.iterator().next();
        assertEquals(new QName("urn:Echo", "echo2Response"), part.getName());
       
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.service.MessageInfo

Copyright © 2018 www.massapicom. 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.