PHP-SOAP-ws-security

PHP-SOAP-ws-security,php,soap,ws-security,Php,Soap,Ws Security,我必须使用SOAP与.Net上编写的web服务进行通信。此web服务要求使用证书和用户/密码进行ws-security身份验证。身份验证的定义如下: <security mode="Message"> <transport clientCredentialType="None" /> <message clientCredentialType="UserName" /> </security> 但服务部门的回应是 The sec

我必须使用SOAP与.Net上编写的web服务进行通信。此web服务要求使用证书和用户/密码进行ws-security身份验证。身份验证的定义如下:

<security mode="Message">
    <transport clientCredentialType="None"  />
    <message clientCredentialType="UserName" />
</security>
但服务部门的回应是

The security context token is expired or is not valid. The message was not processed.
看看


我在很多年前使用过它,它比默认的php soap客户端更高级。特别是在跨平台通信时

遗憾的是,NuSoap不支持WS-SecurityOh,抱歉,我以为它支持:(类似于will to the trick。它支持X509键等。感谢改进的答案:)
The security context token is expired or is not valid. The message was not processed.