thanks Yogesh, that sounds close to what I want! Once I have the
messagecontext how would I access either HTTP Headers or SOAP headers?
I looked at the API page
(http://envoisolutions.com/xfire/api/org/codehaus/xfire/MessageContext.html),
and it's not obvious...
I'm assuming you could do something like:
public String echo(String echo, MessageContext context){
Element header = context.getCurrentMessage().getHeader()
//what do you do with the element here to access specific SOAP headers, eg -
'user', 'pass'
// also, what if you wanted the original HttpServletRequest object?
return echo;
}
thanks again!
Yogesh Chawla - PD wrote:
Hi Matt,
Can't you inject the message context into your service
implementation class:
http://xfire.codehaus.org/MessageContext
I have used that in the past to get the Soap header
and all kinds of other goodies:
The MessageContext
The MessageContext class stays with an XFire
invocation from start to finish. It is useful for:
* Accessing Messages, their xml streams and their
headers
* Storing/retrieving properties which need to be
shared across different handlers
* The service being invoked
* The XFire instance being invoked
--
* Matthew Kerle
* * IT Consultant *
* Canberra, Australia*
Mobile: +61404 096 863
Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Web: Matthew Kerle <http://threebrightlights.blogspot.com/>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email