Hello,

I'm fighting with http authentication in Axis2 in the generated code with
XMLBeans. I've set up Tomcat's realms and updated the Axis2 web.xml by adding
this:
<security-constraint>
 <display-name>admin-constraint</display-name>
 <auth-constraint>
  <description/>
  <role-name>axis2admin</role-name>
 </auth-constraint>
</security-constraint>
<security-role>
 <description>admin-role</description>
 <role-name>axis2admin</role-name>
</security-role>

Then I followed the Axis2 documentation:
Options options = new Options();
HttpTransportProperties.Authenticator auth = ...;
auth.setUsername("username");
auth.setPassword("password");
options.setProperty(HTTPConstants.BASIC_AUTHENTICATE,auth);

... and I'm cofused :-(

The "BASIC_AUTHENTICATE" doesn't exist in the class, so I've used the
"AUTHENTICATE" as:
options.setProperty(HTTPConstants.AUTHENTICATE,auth);

I want to use generated stub as follows:
TestStub stub = new TestStub(ConfigurationContext, String);

I expect the connection has to be configured with ConfigurationContext
instance, but which properties and how to be set to it?

Can comeone sent me a example which describes the ConfigurationContext
instance setup?

Thanks a lot.

     Pat

P.S. Yes I've googled a lot but without luck :-(

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to