Search in sources :

Example 1 with SOAPServiceDocLitBare

use of org.apache.hello_world_soap_http.SOAPServiceDocLitBare in project cxf by apache.

the class ClientServerTest method testDocLitBareConnection.

@Test
public void testDocLitBareConnection() throws Exception {
    SOAPServiceDocLitBare service = new SOAPServiceDocLitBare();
    assertNotNull(service);
    DocLitBare greeter = service.getPort(portName1, DocLitBare.class);
    updateAddressPort(greeter, BARE_PORT);
    try {
        BareDocumentResponse bareres = greeter.testDocLitBare("MySimpleDocument");
        assertNotNull("no response for operation testDocLitBare", bareres);
        assertEquals("CXF", bareres.getCompany());
        assertTrue(bareres.getId() == 1);
    } catch (UndeclaredThrowableException ex) {
        throw (Exception) ex.getCause();
    }
}
Also used : BareDocumentResponse(org.apache.hello_world_soap_http.types.BareDocumentResponse) SOAPServiceDocLitBare(org.apache.hello_world_soap_http.SOAPServiceDocLitBare) UndeclaredThrowableException(java.lang.reflect.UndeclaredThrowableException) DocLitBare(org.apache.hello_world_soap_http.DocLitBare) SOAPServiceDocLitBare(org.apache.hello_world_soap_http.SOAPServiceDocLitBare) SOAPServiceMultiPortTypeTest(org.apache.hello_world_soap_http.SOAPServiceMultiPortTypeTest) SOAPServiceBogusAddressTest(org.apache.hello_world_soap_http.SOAPServiceBogusAddressTest) Test(org.junit.Test)

Aggregations

UndeclaredThrowableException (java.lang.reflect.UndeclaredThrowableException)1 DocLitBare (org.apache.hello_world_soap_http.DocLitBare)1 SOAPServiceBogusAddressTest (org.apache.hello_world_soap_http.SOAPServiceBogusAddressTest)1 SOAPServiceDocLitBare (org.apache.hello_world_soap_http.SOAPServiceDocLitBare)1 SOAPServiceMultiPortTypeTest (org.apache.hello_world_soap_http.SOAPServiceMultiPortTypeTest)1 BareDocumentResponse (org.apache.hello_world_soap_http.types.BareDocumentResponse)1 Test (org.junit.Test)1