Search in sources :

Example 1 with InoutHeaderT

use of org.apache.headers.coloc.types.InoutHeaderT in project cxf by apache.

the class AbstractHeaderServiceDocLitTest method verifyInOutHeaderParts.

protected void verifyInOutHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling inoutHeader");
    InoutHeaderT inoutHeader = new InoutHeaderT();
    inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
    headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
    Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
    holder.value = headerInfo;
    InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
    assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeaderResponse.getResponseType());
    assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeader.getRequestType());
    assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
    assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) Holder(javax.xml.ws.Holder) InoutHeaderResponseT(org.apache.headers.coloc.types.InoutHeaderResponseT) InoutHeaderT(org.apache.headers.coloc.types.InoutHeaderT)

Example 2 with InoutHeaderT

use of org.apache.headers.coloc.types.InoutHeaderT in project cxf by apache.

the class AbstractHeaderServiceRpcLitTest method verifyInOutHeaderParts.

protected void verifyInOutHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling inoutHeader");
    InoutHeaderT inoutHeader = new InoutHeaderT();
    inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
    headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
    Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
    holder.value = headerInfo;
    InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
    assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeaderResponse.getResponseType());
    assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeader.getRequestType());
    assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
    assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) Holder(javax.xml.ws.Holder) InoutHeaderResponseT(org.apache.headers.coloc.types.InoutHeaderResponseT) InoutHeaderT(org.apache.headers.coloc.types.InoutHeaderT)

Aggregations

Holder (javax.xml.ws.Holder)2 HeaderInfo (org.apache.headers.coloc.types.HeaderInfo)2 InoutHeaderResponseT (org.apache.headers.coloc.types.InoutHeaderResponseT)2 InoutHeaderT (org.apache.headers.coloc.types.InoutHeaderT)2