}
public void testUnboundInOutHeader() throws Exception
{
// Add a header to the stub
StubExt stub = (StubExt)endpoint;
QName xmlName = new QName("http://otherns", "HeaderValue");
stub.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.INOUT);
stub.setUnboundHeaderValue(xmlName, "Unbound INOUT header message");
StringHolder holder = new StringHolder("INOUT header message");
endpoint.testInOutHeader("Hello world!", holder);
assertEquals("INOUT header message - response", holder.value);
String unboundRet = (String)stub.getUnboundHeaderValue(xmlName);
assertEquals("Unbound OUT header message", unboundRet);
}