I make a SOAP request it is essentially an api call to JAR file e.g.:
I need information from soap envelope. This gives me the security authentication information. This security authentication information I can add to other soap request headers.
I do the following:
MessageContext mctx = wsctx.getMessageContext();
Map http_headers = (Map) mctx.get(MessageContext.HTTP_REQUEST_HEADERS);
I do this but I get run-time error. wsctx is null. Please advise how to get attribute information from soap header. Also let me know how to add this header in other soap api request.
Look forward to your response.