Search in sources :

Example 1 with OutHeaderResponse

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());
}
Also used : SOAPHeaderData(org.apache.headers.types.SOAPHeaderData) OutHeaderResponse(org.apache.headers.types.OutHeaderResponse) Holder(javax.xml.ws.Holder) OutHeader(org.apache.headers.types.OutHeader)

Example 2 with OutHeaderResponse

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");
}
Also used : SOAPHeaderData(org.apache.headers.types.SOAPHeaderData) OutHeaderResponse(org.apache.headers.types.OutHeaderResponse)

Aggregations

OutHeaderResponse (org.apache.headers.types.OutHeaderResponse)2 SOAPHeaderData (org.apache.headers.types.SOAPHeaderData)2 Holder (javax.xml.ws.Holder)1 OutHeader (org.apache.headers.types.OutHeader)1