我有一个apache cfx客户端,可以安全地调用网络服务。
在SOAP UI中,我需要在标题中添加以下内容:
cannot find the file specified
soapenv:Header中的通知我添加了此内容:
<soapenv:Envelope xmlns:ins="XXXX" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="UsernameToken-6B2289D0CA22405BC615378000107281">
<wsse:Username>user</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">evZaeGUcYYbRgQDp4RCOHQ==</wsse:Nonce>
<wsu:Created>2018-09-27T14:40:10.726Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<ins:obtenerMarcas>
<ins:codMarca/>
</ins:obtenerMarcas>
</soapenv:Body>
我想在创建客户端进程中添加它:
<wsu:Timestamp></wsu:Timestamp>
我想以编程方式向该客户端添加标头时间戳。
谢谢。