use of org.apache.headers.types.OutHeader in project cxf by apache.
the class ClientServerXMLTest method verifyOutHeader.
public void verifyOutHeader(HeaderTester proxy) throws Exception {
OutHeader me = new OutHeader();
me.setRequestType("OutHeaderRequest");
Holder<OutHeaderResponse> outHeaderHolder = new Holder<OutHeaderResponse>();
Holder<SOAPHeaderData> soapHeaderHolder = new Holder<SOAPHeaderData>();
proxy.outHeader(me, outHeaderHolder, soapHeaderHolder);
assertNotNull(outHeaderHolder.value);
assertNotNull(soapHeaderHolder.value);
assertEquals("check out value", "requestType=OutHeaderRequest", outHeaderHolder.value.getResponseType());
assertEquals("check out value", "message=outMessage", soapHeaderHolder.value.getMessage());
assertEquals("check out value", "orginator=outOriginator", soapHeaderHolder.value.getOriginator());
}
Aggregations