Examples of HelloRequest


Examples of com.consol.citrus.jms.integration.service.model.HelloRequest

        } catch (IOException e) {
            throw new CitrusRuntimeException("Failed to read SOAP request", e);
        }

        try {
            HelloRequest helloRequest = (HelloRequest) unmarshaller.unmarshal(webServiceRequest.getPayloadSource());

            HelloResponse response = new HelloResponse();
            response.setMessageId(helloRequest.getMessageId());
            response.setCorrelationId(helloRequest.getCorrelationId());
            response.setUser("HelloSoapService");
            response.setText("Hello " + helloRequest.getUser());

            WebServiceMessage webServiceResponse = messageFactory.createWebServiceMessage();
            marshaller.marshal(response, webServiceResponse.getPayloadResult());

            ByteArrayOutputStream bos = new ByteArrayOutputStream();
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.HelloRequest

     * @param auth     client pass phrase (only if server is working in secure mode);
     * @throws IOException if connection breaks, client authentication error or other error occurs
     */
    public void hello(String hostname, String auth) throws IOException {
        send(ZICO_HELLO, ZicoCommonUtil.pack(
                new HelloRequest(System.currentTimeMillis(), hostname, auth)));
        ZicoPacket pkt = recv();
        switch (pkt.getStatus()) {
            case ZICO_OK:
                return;
            case ZICO_AUTH_ERROR:
View Full Code Here

Examples of org.apache.harmony.xnet.provider.jsse.HelloRequest

*
*/
public class HelloRequestTest extends TestCase {

    public void testHelloRequest() throws Exception {
        HelloRequest message = new HelloRequest();
        assertEquals("incorrect type", Handshake.HELLO_REQUEST, message
                .getType());
        assertEquals("incorrect HelloRequest", 0, message.length());

        HandshakeIODataStream out = new HandshakeIODataStream();
        message.send(out);
        byte[] encoded = out.getData(1000);
        assertEquals("incorrect out data length", message.length(),
                encoded.length);

        HandshakeIODataStream in = new HandshakeIODataStream();
        in.append(encoded);
        HelloRequest message_2 = new HelloRequest(in, message.length());
        assertEquals("incorrect message decoding", 0, message_2.length());

        in.append(encoded);
        try {
            new HelloRequest(in, message.length() - 1);
            fail("Small length: No expected AlertException");
        } catch (AlertException e) {
        }

        in.append(encoded);
        in.append(new byte[] { 1, 2, 3 });
        try {
            new HelloRequest(in, message.length() + 3);
            fail("Extra bytes: No expected AlertException ");
        } catch (AlertException e) {
        }
    }
View Full Code Here

Examples of org.something.services.hello.HelloRequest

       
    httpServer.stop();
  }
 
  private void checkHelloServiceSayHello(HelloService helloService) throws HelloFaultMessage {
    HelloRequest request = new HelloRequest();
    request.setToWho("World!");
    HelloResponse response = helloService.sayHello(request);
    assertEquals("Hello World!", response.getGreeting());
  }
View Full Code Here

Examples of org.something.services.hello.HelloRequest

    HelloResponse response = helloService.sayHello(request);
    assertEquals("Hello World!", response.getGreeting());
  }

  private void checkHelloServiceFault(HelloService helloService) {
    HelloRequest request = new HelloRequest();
    request.setToWho("FAULT");
    try {
      helloService.sayHello(request);
      fail("Should have thrown an Exception");
    }
    catch (HelloFaultMessage exception) {
View Full Code Here

Examples of uri.helloworld.HelloRequest

        assertNotNull(wsdl);
        HelloService helloService = new HelloService(wsdl, serviceName);
        HelloPortType port = helloService.getHelloPort();
        Client client = ClientProxy.getClient(port);
        client.getInInterceptors().add(new LoggingInInterceptor());
        HelloRequest req = new HelloRequest();
        req.setText("hello");
        HelloHeader header = new HelloHeader();
        header.setId("ffang");
        HelloResponse rep = port.hello(req, header);
        Thread.sleep(1000);
        assertEquals(rep.getText(), "helloffang");
View Full Code Here

Examples of uri.helloworld.HelloRequest

        jbi.activateComponent(seComp, "servicemix-cxfse");
        URL wsdl = getClass().getResource("/HelloWorld-DOC.wsdl");
        assertNotNull(wsdl);
        HelloService helloService = new HelloService(wsdl, serviceName);
        HelloPortType port = helloService.getHelloPort();
        HelloRequest req = new HelloRequest();
        req.setText("hello");
        HelloHeader header = new HelloHeader();
        header.setId("ffang");
        HelloResponse rep = port.hello(req, header);
        Thread.sleep(1000);
        assertEquals(rep.getText(), "helloffang");
View Full Code Here

Examples of uri.helloworld.HelloRequest

        assertNotNull(wsdl);
        HelloService helloService = new HelloService(wsdl, serviceName);
        HelloPortType port = helloService.getHelloPort();
        Client client = ClientProxy.getClient(port);
        client.getInInterceptors().add(new LoggingInInterceptor());
        HelloRequest req = new HelloRequest();
        req.setText("hello");
        HelloHeader header = new HelloHeader();
        header.setId("ffang");
        HelloResponse rep = port.hello(req, header);
        Thread.sleep(1000);
        assertEquals(rep.getText(), "helloffang");
View Full Code Here

Examples of uri.helloworld.HelloRequest

        jbi.activateComponent(seComp, "servicemix-cxfse");
        URL wsdl = getClass().getResource("/HelloWorld-DOC.wsdl");
        assertNotNull(wsdl);
        HelloService helloService = new HelloService(wsdl, serviceName);
        HelloPortType port = helloService.getHelloPort();
        HelloRequest req = new HelloRequest();
        req.setText("hello");
        HelloHeader header = new HelloHeader();
        header.setId("ffang");
        HelloResponse rep = port.hello(req, header);
        Thread.sleep(1000);
        assertEquals(rep.getText(), "helloffang");
View Full Code Here

Examples of uri.helloworld.HelloRequest

                ret = ret + getCalculator().add(1, -1);
            } else if ("oneway test".equals(me)) {
                getGreeter().greetMeOneWay("oneway");
                ret = "oneway";
            } else if ("header test".equals(me)) {
                HelloRequest req = new HelloRequest();
                req.setText("12");
                HelloHeader header = new HelloHeader();
                header.setId("345");
                ret = ret + hello.hello(req, header).getText();
           
            } else if ("https test".equals(me) || "provider security test".equals(me)) {
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.