Search in sources :

Example 6 with BareDocumentResponse

use of org.apache.hello_world_soap_http.types.BareDocumentResponse in project cxf by apache.

the class AbstractGreeterImpl method testDocLitBare.

public BareDocumentResponse testDocLitBare(String in) {
    BareDocumentResponse res = new BareDocumentResponse();
    res.setCompany("Celtix");
    res.setId(1);
    return res;
}
Also used : BareDocumentResponse(org.apache.hello_world_soap_http.types.BareDocumentResponse)

Example 7 with BareDocumentResponse

use of org.apache.hello_world_soap_http.types.BareDocumentResponse in project cxf by apache.

the class DecoupledBareTest method testDecoupled.

@Test
public void testDecoupled() throws Exception {
    SpringBusFactory bf = new SpringBusFactory();
    bus = bf.createBus("/org/apache/cxf/systest/ws/rm/decoupled_bare.xml");
    BusFactory.setDefaultBus(bus);
    SOAPServiceAddressingDocLitBare service = new SOAPServiceAddressingDocLitBare();
    assertNotNull(service);
    DocLitBare greeter = service.getSoapPort();
    updateAddressPort(greeter, PORT);
    ((BindingProvider) greeter).getRequestContext().put(Message.SCHEMA_VALIDATION_ENABLED, Boolean.TRUE);
    ConnectionHelper.setKeepAliveConnection(greeter, true);
    BareDocumentResponse bareres = greeter.testDocLitBare("MySimpleDocument");
    assertNotNull("no response for operation testDocLitBare", bareres);
    assertEquals("CXF", bareres.getCompany());
    assertTrue(bareres.getId() == 1);
}
Also used : BareDocumentResponse(org.apache.hello_world_soap_http.types.BareDocumentResponse) SpringBusFactory(org.apache.cxf.bus.spring.SpringBusFactory) SOAPServiceAddressingDocLitBare(org.apache.hello_world_soap_http.SOAPServiceAddressingDocLitBare) SOAPServiceAddressingDocLitBare(org.apache.hello_world_soap_http.SOAPServiceAddressingDocLitBare) DocLitBare(org.apache.hello_world_soap_http.DocLitBare) Test(org.junit.Test)

Example 8 with BareDocumentResponse

use of org.apache.hello_world_soap_http.types.BareDocumentResponse in project cxf by apache.

the class DerivedGreeterImpl method testDocLitBare.

public BareDocumentResponse testDocLitBare(String in) {
    incrementInvocationCount("testDocLitBare");
    BareDocumentResponse res = new BareDocumentResponse();
    res.setCompany("CXF");
    res.setId(1);
    return res;
}
Also used : BareDocumentResponse(org.apache.hello_world_soap_http.types.BareDocumentResponse)

Example 9 with BareDocumentResponse

use of org.apache.hello_world_soap_http.types.BareDocumentResponse in project cxf by apache.

the class NotAnnotatedGreeterImpl method testDocLitBare.

public BareDocumentResponse testDocLitBare(String in) {
    LOG.info("Executin operation testDocLitBare");
    BareDocumentResponse res = new BareDocumentResponse();
    res.setCompany("CXF");
    res.setId(1);
    return res;
}
Also used : BareDocumentResponse(org.apache.hello_world_soap_http.types.BareDocumentResponse)

Aggregations

BareDocumentResponse (org.apache.hello_world_soap_http.types.BareDocumentResponse)9 DocLitBare (org.apache.hello_world_soap_http.DocLitBare)3 Test (org.junit.Test)3 SOAPServiceBogusAddressTest (org.apache.hello_world_soap_http.SOAPServiceBogusAddressTest)2 SOAPServiceDocLitBare (org.apache.hello_world_soap_http.SOAPServiceDocLitBare)2 SOAPServiceMultiPortTypeTest (org.apache.hello_world_soap_http.SOAPServiceMultiPortTypeTest)2 UndeclaredThrowableException (java.lang.reflect.UndeclaredThrowableException)1 URL (java.net.URL)1 WebMethod (javax.jws.WebMethod)1 QName (javax.xml.namespace.QName)1 SpringBusFactory (org.apache.cxf.bus.spring.SpringBusFactory)1 Greeter (org.apache.hello_world_soap_http.Greeter)1 SOAPServiceAddressingDocLitBare (org.apache.hello_world_soap_http.SOAPServiceAddressingDocLitBare)1