Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-24 Thread Geir Amdal
aassif wrote: Now moving to the Server side implementation, I was expecting retrieving the result will be simple so I tried on the lines similar to Axis 1.X, below is the code listing: [znip code] I don't know which is the preferred procedure for extracting authentication data from

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-24 Thread aassif
Dear Geir, Thank you for your reply. Your solution for OC4J was not working with Tomcat. I managed to make it work after getting ideas from your last reply which was using HttpServletRequest. Below is the working solution, which may help other readers. // acquire the active HTTP

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread aassif
Dear Geir Amdal, Thank you for reply. I have one query regarding Basic Authentication. I Axis 1.X, when we use Call.setUserName() or call.setPassword(), the details are encoded and sent to the server as HTTP Headers and which can be seen through TCP monitor. The username and password can be

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread Geir Amdal
aassif wrote: I have one query regarding Basic Authentication. I Axis 1.X, when we use Call.setUserName() or call.setPassword(), the details are encoded and sent to the server as HTTP Headers and which can be seen through TCP monitor. The username and password can be retrieved in the Web

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread aassif
Hi, Thank you for your reply. I will try again today, but yesterday when I tried with different set of options the HTTP Header remained the same for each Web Service call. I assume that I must be missing something. Thank you for the help. Cheers Asif -- View this message in context:

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread aassif
Dear Geir, If no Authorization header is present among the HTTP headers, I'd suspect the ServiceClient used by the stub was not configured correctly... One stupid question, do I need to manually configure ServiceClient to use Basic Authorization. Cheers Asif -- View this

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread Geir Amdal
aassif wrote: [...] do I need to manually configure ServiceClient to use Basic Authorization. I might be missing the mark here, but are you asking whether you have to instanciate a new ServiceClient or whether you can configure one retrieved from the stub? If so, take a look at Belunek

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread aassif
Dear Geir, Thank you for your help. I was doing exactly the same what was mentioned in the Thread and what you suggested today but yesterday I failed to notice the HTTP headers regarding Authorization: Basic. But today when I executed the client without any change it was working as required.

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-23 Thread aassif
Dear Geir, Thank you for your help. I was doing exactly the same what was mentioned in the Thread and what you suggested today but yesterday I failed to notice the HTTP headers regarding Authorization: Basic. But today when I executed the client without any change it was working as required.

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-22 Thread aassif
Hi, I went through the whole discussion and when tried to implement BASIC Authentication I can't find the Authenticator class, the one which I can locate is only HttpTransportProperties.Authenticator. But HttpTransportProperties.Authenticator doesn't have any property BASIC and seems to be

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-22 Thread gAm
aassif wrote: I went through the whole discussion and when tried to implement BASIC Authentication I can't find the Authenticator class, the one which I can locate is only HttpTransportProperties.Authenticator. It was HttpTransportProperties.Authenticator that was used. My apologies for

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-12 Thread Geir Amdal
On 11. apr. 2007, at 14:52, Belunek Karel wrote: I have Axis2 1.1.1 under Tomcat 5.5.9 and I have correctly working Axis service generated from WSDL file. Now I'm trying to implement BASIC authenticacion. On server side I'have se security constraint on the Tomcat level, it works fine. I

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-12 Thread Geir Amdal
On 12. apr. 2007, at 13:25, Jarek Kucypera wrote: Don't you also need to set the 'preemtive' flag, like this: authenticator.setPreemptiveAuthentication(true); ? Ahh. Valid point. Though I am not sure a 'need' can be generalized for this setting. From what I can tell, setting this flag

Re: AXIS2 1.1.1 problem with BASIC AUTH

2007-04-12 Thread Belunek Karel
Geir Amdal napsal(a): On 11. apr. 2007, at 14:52, Belunek Karel wrote: I have Axis2 1.1.1 under Tomcat 5.5.9 and I have correctly working Axis service generated from WSDL file. Now I'm trying to implement BASIC authenticacion. On server side I'have se security constraint on the Tomcat level,