PHP代码生成这个

时间:2012-09-03 06:09:26

标签: php xml soap nonce usernametoken

我正在尝试从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>

0 个答案:

没有答案