Search in sources :

Example 1 with OutHeader

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

Aggregations

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