Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.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
如何在soap wsdl Java Web服务中检索用户传递的凭据_Java_Web Services_Soap_Wsdl - Fatal编程技术网

如何在soap wsdl Java Web服务中检索用户传递的凭据

如何在soap wsdl Java Web服务中检索用户传递的凭据,java,web-services,soap,wsdl,Java,Web Services,Soap,Wsdl,我正在使用 Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("username", "password".toC

我正在使用

Authenticator.setDefault(new Authenticator() {
                    @Override
                    protected PasswordAuthentication getPasswordAuthentication() {
                        return new PasswordAuthentication("username", "password".toCharArray());
            }
});
我现在的问题是如何在Soap webservice Java中检索此凭据?

获得解决方案

ArrayList<String> authList = (ArrayList<String>) http_headers.get("Authorization");
arraylistauthlist=(ArrayList)http_headers.get(“授权”);
它返回Base64中的凭据