Java 如何提供AuthenticationOn来检查基于Soap的Web服务的用户名和密码
我正在研究基于SOAP的web服务。我想检查一下证件Java 如何提供AuthenticationOn来检查基于Soap的Web服务的用户名和密码,java,web-services,authentication,soap,Java,Web Services,Authentication,Soap,我正在研究基于SOAP的web服务。我想检查一下证件 @WebService(name="Helloworld",portName="HelloworldPort", serviceName = "Helloworld", targetNamespace="http://Helloworld.com/webservices") @SOAPBinding(style = SOAPBinding.Style.RPC, use= SOAPBinding.Use.LITERAL, parameterS
@WebService(name="Helloworld",portName="HelloworldPort", serviceName = "Helloworld", targetNamespace="http://Helloworld.com/webservices")
@SOAPBinding(style = SOAPBinding.Style.RPC, use= SOAPBinding.Use.LITERAL, parameterStyle= SOAPBinding.ParameterStyle.WRAPPED)
public class Helloworld {
public String sayHello(@WebParam(name="name")String name) {
return "hello "+name;
}
}
我已经阅读了一些我们可以使用USERNAME\u属性和PASSWORD\u属性来提供服务的地方
这似乎是基本的http身份验证
我不知道如何在服务和客户中适应它。
有人能告诉我如何实现它吗
谢谢。我认为身份验证是与数据库相关的事情。为它编写代码。客户端不会这么做。@Mawia。我想做基本的jax-ws身份验证