本文发表在 rolia.net 枫下论坛In weblogic,there are two types webservices,one is RPC-baseed,the other is Message-based
Let's focus on the first.
Actually,the backend of weblogic webservices is a stateless session bean,and the frontend is a servlet in
weblogic web server. so If you want to configue security on weblogic.there are two ways:
1.secure service URL
Every client who want to invoke your webservices,no matter Java or VB,VC client,should first access the Service URL
Let's say, https:\\mywebservices\trader
the WSDL address should be https:\\mywebservices\trader?WDSL
So,We can set role constraint,auth-method,transport-guarantee to the URL map in web.xml and weblogic.xml,then map the role to user,group in weblogic console.
you should provide user and credential information if you attempt to invoke the servces.the user and credential you supply should match
the one in the ACL on server side. this is exactly the same as web-layer security of a regular web application.
2. secure backend stateless session bean
This is exactly the same as a standard ejb,you only configure it in ejb-jar.xml and weblogic-ejb-jar.xml
from this,you can control the access at method level or even at user level.for details, go to BEA website
3. specify SSL
(1) set SSL on weblogic console
(2) set Https in web-services.xml
4.invoke the services from a client
(1)java client: Weblogic have supplied jar files,you can use JAX-RPC to invoke including support of SSL
(2)J2ME client: weblogic have a support package for move devices under CLDC and MIDP
(3)MS compatible clinet(.net,vb...),maybe, someone can give idea... (I know little about this)更多精彩文章及讨论,请光临枫下论坛 rolia.net
Let's focus on the first.
Actually,the backend of weblogic webservices is a stateless session bean,and the frontend is a servlet in
weblogic web server. so If you want to configue security on weblogic.there are two ways:
1.secure service URL
Every client who want to invoke your webservices,no matter Java or VB,VC client,should first access the Service URL
Let's say, https:\\mywebservices\trader
the WSDL address should be https:\\mywebservices\trader?WDSL
So,We can set role constraint,auth-method,transport-guarantee to the URL map in web.xml and weblogic.xml,then map the role to user,group in weblogic console.
you should provide user and credential information if you attempt to invoke the servces.the user and credential you supply should match
the one in the ACL on server side. this is exactly the same as web-layer security of a regular web application.
2. secure backend stateless session bean
This is exactly the same as a standard ejb,you only configure it in ejb-jar.xml and weblogic-ejb-jar.xml
from this,you can control the access at method level or even at user level.for details, go to BEA website
3. specify SSL
(1) set SSL on weblogic console
(2) set Https in web-services.xml
4.invoke the services from a client
(1)java client: Weblogic have supplied jar files,you can use JAX-RPC to invoke including support of SSL
(2)J2ME client: weblogic have a support package for move devices under CLDC and MIDP
(3)MS compatible clinet(.net,vb...),maybe, someone can give idea... (I know little about this)更多精彩文章及讨论,请光临枫下论坛 rolia.net