use of org.apache.headers.types.OutHeaderResponse 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());
}
use of org.apache.headers.types.OutHeaderResponse in project cxf by apache.
the class HeaderTesterImpl method outHeader.
public void outHeader(OutHeader me, Holder<OutHeaderResponse> theResponse, Holder<SOAPHeaderData> headerInfo) {
theResponse.value = new OutHeaderResponse();
theResponse.value.setResponseType("requestType=" + me.getRequestType());
headerInfo.value = new SOAPHeaderData();
headerInfo.value.setMessage("message=outMessage");
headerInfo.value.setOriginator("orginator=outOriginator");
}
Aggregations