"With WSDL 2.0 you can specify http headers in the wsdl itself (For both
HTTP and SOAP bindings)."
okay, but I was thinking more of the situation where I have a service
which I cannot change, and want to set the headers on client side (the
service will use WSDL 1.1). Except from that I do not want to use
wsdl2java, instead I am constructing the AXIOM model myself. Is it
possible to directly access the HTTP headers in such a situation?
"but is it also possible to get a map or so of the headers that the
/response/ SOAP message contained?"
For me this would be the more important question - do you know how I can
access the SOAP headers of the SOAP response?
/philipp
keith chapman wrote:
Hi Philipp,
With WSDL 2.0 you can specify http headers in the wsdl itself (For
both HTTP and SOAP bindings). And if you use wsdl2java on such a WSDL
the code generated contains methods to add the HTTPHeader. For the
client it will be just another parameter passed into the operation.
The stub will retrive this parameter and stick it in as a HTTP header.
But there is no easy method such as above to retrive an HTTP response
header.
Thanks,
Keith.
On 5/29/07, *Philipp Leitner* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi all,
I have two question on the Axis2 client-side API:
I know that there are quite simple convenience methods for adding SOAP
header fields when using the client-side API (like
ServiceClient.addStringHeader(...) ), but is it also possible to get a
map or so of the headers that the /response/ SOAP message contained?
A related question: is it possible with Axis2 to directly set or
retrieve the HTTP header fields (of course only senseful in a HTTP
binding) besides what you can specify in
org.apache.axis2.client.Options ? For instance is it possible to
insert a
header "foo: bar" in all my WS invocations? And again: is it
possible to
retrieve the HTTP headers of the HTTP response in the Axis2 client (to
get, for instance, the "Server" value...).
Thank you in advance,
philipp
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
--
Keith Chapman
WSO2 Inc.
Oxygen for Web Services Developers.
http://wso2.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]