I have to make an APIGEE proxy based Web service call using a JavaSOAP Client. APIGEE Expects a x-api-key http header in request and it works great. The code looks like below :
I have introduced a logging handler using HandlerChain on GetV4Interface ( and other services as a common message logger) as below in order to log outgoing ( and Incoming) messages :
entry in logHandler.xml points to com.logging.LoggingHandler class which has below code. Issue is that when this logginghandler executes we do see http headers ( x-api-key) reaching this handler ( can retrieve them using smc.get(MessageContext.HTTP_REQUEST_HEADERS).
But these http headers doesn't reach APIGEE and hence the proxy call fails with x-api-key missing error. Can Someone help identify why http headers are lost when logginghandler ( or SOAPHAndler) is introduced here: