Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get http properties from jax-rpc ws handler

 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

in my http header of soap request, there is a property, SOAPAction. i want to get it in my handleRequest method of jax-rpc ws handler class, is it possible? i could not find a way to communicate with http header in handler class.

Thanks for helps.
 
Baski Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What container are you using?
 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use websphere application server 6
 
Baski Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you inspect the properties collection within MessageContext? Type cast the MessageContext contex to appropriate WebSphere implementation class for more details.
 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, cast to
com.ibm.ws.webservices.engine.GuardedMessageContext.getRPCContext().getSOAPActionURI()

i can get soapAction url, in fact, the class get the url from wsdl, but not header.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic