struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: Setting HTTP Headers in SOAPMessage
Date Thu, 23 Jul 2009 11:54:23 GMT
Hi Neil,
You can try to use Axis as as a web services client.

Best greetings,
Paweł Wielgus.


2009/7/23 Neil Meyer <neil.meyer@vscsolutions.co.za>:
> Hi,
>
> I have a problem that I really can't seem to resolve. I have downloaded some code from
code Ranch called SAAJClient. This is now part of my struts project. I receive data from a
client on my web which I then have to post through to a different client via webservices using
javax.xml.soap.*
>
> I set the http Headers to do Authentication but when I snoop the post going out none
of the headers that I have set are present.
>
>            String authorization = new sun.misc.BASE64Encoder().encode((username+":"+password).getBytes());
>            MimeHeaders hd = message.getMimeHeaders();
>            hd.addHeader("Authorization", "Basic " + authorization);
>
> I really don't know where to look anymore for a solution on this and would appreciate
any comments on this.
>
> Kind Regards,
>
> Neil Meyer
>
> t. +27 (0) 11 523 4804  |  f. +27 (0) 11 523 4801  |  m. +27 (0) 82 474 7304
> e. neil.meyer@vscsolutions.co.za  |  w. www.vscsolutions.co.za
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message