我正在尝试从 wsdl 文件中获取结果,但是它需要身份验证,并且用户名和密码的正常传递会给我一个错误:
Error arguments:
Missing authentication from header
标题应如下所示;
<wsse:UsernameToken wsu:Id="UsernameToken-3">
<wsse:Username>USERNAME</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">jfdkfjdskfjdsklfjsdkf==</wsse:Nonce>
<wsu:Created>TIMESTAMP</wsu:Created>
</wsse:UsernameToken>