Search in sources :

Example 1 with InoutHeader

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

Aggregations

Holder (javax.xml.ws.Holder)1 InoutHeader (org.apache.headers.types.InoutHeader)1 InoutHeaderResponse (org.apache.headers.types.InoutHeaderResponse)1 SOAPHeaderData (org.apache.headers.types.SOAPHeaderData)1