public void testUnboundInOutHeader() throws Exception
{
Service service = ServiceFactory.newInstance().createService(new QName("testService"));
CallImpl call = (CallImpl)service.createCall();
call.setOperationName(new QName(NAMESPACE_URI, "testInOutHeader"));
call.addParameter("String_1", Constants.TYPE_LITERAL_STRING, ParameterMode.IN);
call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);
// Add a bound header to the call
CallImpl mycall = (CallImpl)call;
QName xmlName = new QName(HEADER_NAMESPACE_URI, "headerMsg");
mycall.addParameter(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.INOUT, true);
// Add an unbound header to the call
xmlName = new QName("http://otherns", "HeaderValue");
call.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.INOUT);
call.setUnboundHeaderValue(xmlName, "Unbound INOUT header message");