Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.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
Http SOAP中的授权_Http_Authentication_Soap - Fatal编程技术网

Http SOAP中的授权

Http SOAP中的授权,http,authentication,soap,Http,Authentication,Soap,我想对在我的服务器上发送SOAP请求的用户进行身份验证,我想使用基本授权。在REST中,我通常使用授权标头。我可以在这里使用它,还是应该像这样使用soap:Header元素 <SOAP-ENV:Header> <h:BasicAuth xmlns:h="http://soap-authentication.org/basic/2001/10/" SOAP-ENV:mustUnderstand="1"> <Name>a

我想对在我的服务器上发送SOAP请求的用户进行身份验证,我想使用基本授权。在REST中,我通常使用授权标头。我可以在这里使用它,还是应该像这样使用soap:Header元素

<SOAP-ENV:Header>
  <h:BasicAuth xmlns:h="http://soap-authentication.org/basic/2001/10/"
               SOAP-ENV:mustUnderstand="1">
     <Name>admin</Name>
     <Password>broccoli</Password>
  </h:BasicAuth>
</SOAP-ENV:Header>
我不确定哪一个是正确的解决方案