Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

http headers lost in SOAPHandler  RSS feed

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:

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!