axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Kriger <andy.kri...@gmail.com>
Subject Re: defining service to access MySQL DB
Date Thu, 27 Jan 2005 16:28:42 GMT
In your web.xml you give access to URLs by role...
<security-constraint>
		<web-resource-collection>
			<web-resource-name>Authentication</web-resource-name>
			<url-pattern>/*</url-pattern>
		</web-resource-collection>
		<auth-constraint>
			<role-name>authuser</role-name>
		</auth-constraint>
	</security-constraint>

Then you define the connection between usernames and roles in the
database according the docs link I included earlier.

In your Axis client, you call setUsername and setPassword on the class
implementing the client stub.

On Thu, 27 Jan 2005 16:23:03 -0000, Suzy Fynes
<suzanne.fynes@sentenial.ie> wrote:
> Does anyone know how the below would link to Axis?
> 
> -----Original Message-----
> From: Andy Kriger [mailto:andy.kriger@gmail.com]
> Sent: 27 January 2005 15:03
> To: axis-user@ws.apache.org
> Subject: Re: defining service to access MySQL DB
> 
> If you are using Tomcat, you can setup a JDBC or JNDI Authentication
> Realm
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html
> 
> Follow those instructions and the container will handle authentication
> before passing along to the AxisServlet (which means you configure
> auth in the web.xml/context.xml instead of the server-config.wsdd).
> 
> On Thu, 27 Jan 2005 13:58:29 -0000, Suzy Fynes
> <suzanne.fynes@sentenial.ie> wrote:
> >
> >
> >
> >
> >
> > Does anyone know what process to take to define an Axis service (in
> the
> > server-config.wsdd) to talk to a mysql database for authentication
> instead
> > of using the users.lst with roles/??
> >
> >
> >
> > Thanks
> >
> > Suzy
> 
>

Mime
View raw message