Search in sources :

Example 1 with InHeaderResponse

use of org.apache.headers.types.InHeaderResponse in project cxf by apache.

the class HeaderTesterImpl method inHeader.

public InHeaderResponse inHeader(InHeader me, SOAPHeaderData headerInfo) {
    InHeaderResponse resp = new InHeaderResponse();
    resp.setResponseType("requestType=" + me.getRequestType() + "\nheaderData.message=" + headerInfo.getMessage() + "\nheaderData.getOriginator=" + headerInfo.getOriginator());
    return resp;
}
Also used : InHeaderResponse(org.apache.headers.types.InHeaderResponse)

Example 2 with InHeaderResponse

use of org.apache.headers.types.InHeaderResponse in project cxf by apache.

the class ClientServerXMLTest method verifyInHeader.

public void verifyInHeader(HeaderTester proxy) throws Exception {
    InHeader me = new InHeader();
    me.setRequestType("InHeaderRequest");
    SOAPHeaderData headerInfo = new SOAPHeaderData();
    headerInfo.setMessage("message");
    headerInfo.setOriginator("originator");
    InHeaderResponse resp = proxy.inHeader(me, headerInfo);
    assertNotNull(resp);
    assertEquals("check returned response type", "requestType=InHeaderRequest" + "\nheaderData.message=message" + "\nheaderData.getOriginator=originator", resp.getResponseType());
}
Also used : SOAPHeaderData(org.apache.headers.types.SOAPHeaderData) InHeader(org.apache.headers.types.InHeader) InHeaderResponse(org.apache.headers.types.InHeaderResponse)

Aggregations

InHeaderResponse (org.apache.headers.types.InHeaderResponse)2 InHeader (org.apache.headers.types.InHeader)1 SOAPHeaderData (org.apache.headers.types.SOAPHeaderData)1