Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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:

All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!