Search in sources :

Example 1 with InoutHeaderResponse

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

the class HeaderTesterImpl method inoutHeader.

public InoutHeaderResponse inoutHeader(InoutHeader me, Holder<SOAPHeaderData> headerInfo) {
    InoutHeaderResponse resp = new InoutHeaderResponse();
    resp.setResponseType("requestType=" + me.getRequestType());
    if (headerInfo.value != null) {
        headerInfo.value.setMessage("message=" + headerInfo.value.getMessage());
        headerInfo.value.setOriginator("orginator=" + headerInfo.value.getOriginator());
    }
    return resp;
}
Also used : InoutHeaderResponse(org.apache.headers.types.InoutHeaderResponse)

Example 2 with InoutHeaderResponse

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

the class ClientServerXMLTest method verifyInOutHeader.

public void verifyInOutHeader(HeaderTester proxy) throws Exception {
    InoutHeader me = new InoutHeader();
    me.setRequestType("InoutHeaderRequest");
    SOAPHeaderData headerInfo = new SOAPHeaderData();
    headerInfo.setMessage("inoutMessage");
    headerInfo.setOriginator("inoutOriginator");
    Holder<SOAPHeaderData> holder = new Holder<SOAPHeaderData>();
    holder.value = headerInfo;
    InoutHeaderResponse resp = proxy.inoutHeader(me, holder);
    assertNotNull(resp);
    assertEquals("check return value", "requestType=InoutHeaderRequest", resp.getResponseType());
    assertEquals("check inout value", "message=inoutMessage", holder.value.getMessage());
    assertEquals("check inout value", "orginator=inoutOriginator", holder.value.getOriginator());
}
Also used : InoutHeader(org.apache.headers.types.InoutHeader) SOAPHeaderData(org.apache.headers.types.SOAPHeaderData) Holder(javax.xml.ws.Holder) InoutHeaderResponse(org.apache.headers.types.InoutHeaderResponse)

Aggregations

InoutHeaderResponse (org.apache.headers.types.InoutHeaderResponse)2 Holder (javax.xml.ws.Holder)1 InoutHeader (org.apache.headers.types.InoutHeader)1 SOAPHeaderData (org.apache.headers.types.SOAPHeaderData)1