Http SOAP中的授权
我想对在我的服务器上发送SOAP请求的用户进行身份验证,我想使用基本授权。在REST中,我通常使用授权标头。我可以在这里使用它,还是应该像这样使用soap:Header元素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-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>
我不确定哪一个是正确的解决方案