0

I am new in web services. I have created web services using spring with CXF jax-ws implementation. Suppose I have "HelloWebService" in that I have webmethod "sayHello()" which will return string.

when I hit url:

localhost:8080/ProjName/service/HelloWebService?wsdl

It shows me wsdl on browser.

Now, I want to ask username and password when user hit this url on browser.

How can I do this?

Sachin J
  • 2,081
  • 12
  • 36
  • 50

3 Answers3

0

I partially understand you but I think you would like to make a rest authentication. I had to do similar some months ago, and I came across this answer. stackoverflow answer

Community
  • 1
  • 1
bitli
  • 575
  • 2
  • 14
0

You can use InterceptorProviders for passing the credentials or the parameters you want to pass

REFER

Nasruddin
  • 1,640
  • 14
  • 20
0

to make your URL password protected in Spring

you can use authentication-manager tag in spring.xml (your spring config file)

djavaphp
  • 68
  • 7