Package com.alexgilleran.icesoap.request

Examples of com.alexgilleran.icesoap.request.SOAPRequester


    assertEquals(fault.getState(), SampleResponse.SQL_MESSAGE_STATE);
  }

  @Test
  public void test401InDebugMode() throws IOException {
    SOAPRequester mockRequester = createMock(SOAPRequester.class);
    com.alexgilleran.icesoap.request.impl.Response dummyResponse = new com.alexgilleran.icesoap.request.impl.Response(
        new ByteArrayInputStream("".getBytes()), 401);
    expect(mockRequester.doSoapRequest(getDummyEnvelope(), "", "")).andReturn(dummyResponse);
    replay(mockRequester);

    SOAP11Request<Response> request = new RequestFactoryImpl(mockRequester).buildRequest("", getDummyEnvelope(),
        "", Response.class);
    request.setDebugMode(true);
View Full Code Here


  }

  @Test
  public void testSoap11MimeType() throws ClientProtocolException, IOException {
    expectedEnvelope = new BaseSOAP11Envelope();
    SOAPRequester requester = new TestApacheSOAPRequester();
    requester.doSoapRequest(expectedEnvelope, "http://target.com");
  }
View Full Code Here

  @Test
  public void testSoap12MimeType() throws ClientProtocolException, IOException {
    expectedEnvelope = new BaseSOAP12Envelope();
    expectedMimeType = SOAP12_MIME_TYPE;
    SOAPRequester requester = new TestApacheSOAPRequester();
    requester.doSoapRequest(expectedEnvelope, "http://target.com");
  }
View Full Code Here

TOP

Related Classes of com.alexgilleran.icesoap.request.SOAPRequester

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.