Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何提供AuthenticationOn来检查基于Soap的Web服务的用户名和密码_Java_Web Services_Authentication_Soap - Fatal编程技术网

Java 如何提供AuthenticationOn来检查基于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

我正在研究基于SOAP的web服务。我想检查一下证件

@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身份验证