WsSecurity:允许轻松地将Ws Security标头添加到SOAP请求

时间:2021-05-24 04:48:06
【文件属性】:
文件名称:WsSecurity:允许轻松地将Ws Security标头添加到SOAP请求
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-24 04:48:06
soap-client soapheader wssecurity soap-request soapclient 安全性 WsSecurity将WSSE身份验证标头添加到您的SOAP请求中 如何使用它 该存储库包含可以单独使用的多个类,但现在仅使用WsSecurity类更容易/更好。 WsSecurity类提供了一个静态方法,该方法采用的参数应足以创建SOAP请求中所需的Ws-Security用户名身份验证标头。 确切地说,您必须使用composer在项目中包含此存储库( composer require wsdltophp/wssecurity ),然后使用它,例如: use WsdlToPhp \ WsSecurity \ WsSecurity ; /** * @var \SoapHeader */ $ soapHeader = WsSecurity :: createWsSecuritySoapHeader ( 'login' , 'password' , true ); /**
【文件预览】:
WsSecurity-develop
----composer.json(2KB)
----.travis.yml(801B)
----.docker()
--------Dockerfile(182B)
----tests()
--------WsSecurityTest.php(10KB)
--------TestCase.php(586B)
----.php_cs(237B)
----LICENSE(1KB)
----src()
--------Security.php(2KB)
--------Password.php(2KB)
--------WsSecurity.php(4KB)
--------UsernameToken.php(2KB)
--------Username.php(292B)
--------Element.php(7KB)
--------Created.php(355B)
--------Timestamp.php(1KB)
--------Expires.php(391B)
--------Nonce.php(677B)
----docker-compose.yml(165B)
----.gitignore(55B)
----CHANGELOG.md(875B)
----phpunit.xml.dist(669B)
----README.md(4KB)
----.editorconfig(215B)

网友评论