Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

http headers lost in SOAPHandler  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to make an APIGEE proxy based Web service call using a Java SOAP 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:


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!