Hi All,
iam trying to add a soap header
i have added the following code in the
DynamicInvoker.java
Output opOutput =
op.getOutput();
if (opOutput != null) { List parts = opOutput.getMessage().getOrderedParts(null); unWrapIfWrappedDocLit(parts, name+"Response", def); int count = parts.size(); outNames = new String[count]; outTypes = new Class[count]; retrieveSignature(parts, outNames, outTypes); } } if (!found) { throw new RuntimeException( "no operation " + operationName + " was found in port type " + portType.getQName()); } System.out.println("Adding Header); WSIFMessage headers = operation.getContext(); headers.setObjectPart(WSIFConstants.CONTEXT_REQUEST_SOAP_HEADERS, "id-1001"); operation.setContext(headers); System.out.println("Executing operation " +
operationName);
operation.executeRequestResponseOperation(input, output, fault); -------------------------------------------------------------------------------------------------------------------------
But the header is not added. Iam viewing the soap
via SoapMonitor.
Can you pls explain how to add a
header.
|