• Post Reply Bookmark Topic Watch Topic
  • New Topic

Secure a Webservice in POJO

 
shifahim shif
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new security with webservices. I need a plain java code (webservices) that i can compile and deploy on weblogic server.

Anyone who wants to access my webservice (WSDL) will have to provide credentials (username and password) of any user created on the Application Server.

In my case i will be deploying it on weblogic server, so all users trying to access my WSDL would need to provide weblogic's username / password that i create in weblogic's security realm.

I just need the simplest of java code for webservice.

Compiling, deploying and generating the client to test the webservice is something I would manage myself.

Many Thanks.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What, exactly, is the problem you're having with this? All Java WS libraries I'm familiar with are implemented as servlets (or context listeners), so you could use the standard Java servlet security to secure them. Since you mention WSDLs, this seems to be a SOAP WS, so you can also use WS-Security, which just about any SOAP implementation supports. The details will depend on *which* implementation you're using.

Do you intend to protect the WSDL only, or should the actual WS calls also be protected?
 
shifahim shif
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am intending to protect both the WSDL and then the Webservice methods. I am using Weblogic's implementation, thus i want only weblogic's security realm users to go through after providing credentials.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not familiar with WL's SOAP implementation, but searching for "weblogic web service security" finds much that looks highly relevant.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!