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;
}
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());
}
Aggregations