首页新闻找找看学习计划

net调用java的webservice,cxf模式的wsse:UsernameToken

0
悬赏园豆:100 [待解决问题]

apenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://inter.server.ws.gjc.glodon.com/">
<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" soap:mustUnderstand="1">

        <wsse:UsernameToken>
            <wsse:UsernameToken wsu:Id="UsernameToken-1">
            <wsse:Username>9A246339C4D78BB9</wsse:Username>
            
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">12157b13c70201eec9be14a46ba3f5ed4cc34ea3</wsse:Password>
            <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">z8x+8MBe2R9ZwYj/ogtLPw==</wsse:Nonce>
            <wsu:Created>2019-09-05T14:22:52.458Z</wsu:Created></wsse:UsernameToken>
        </wsse:UsernameToken>
      </wsse:Security>
</soapenv:Header>

<soapenv:Body>
<int:push>
<arg0>driver</arg0>
<arg1>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3BvdHBpY2t1cHM+PG1zZ19pZD4xMTE8L21zZ19pZD48ZGVzdFN5c3RlbT5XTVM8L2Rlc3RTeXN0ZW0+PHNvdXJjZVN5c3RlbT5TUE9UPC9zb3VyY2VTeXN0ZW0+PGJ1c3NpbmVzcz5zcG90cGlja3VwPC9idXNzaW5lc3M+PHBpY2t1cGRhdGE+PHN0YXRlPjM8L3N0YXRlPjxsb2dzPuijhei9pua4heWNleeahOWPkei0p+iuoeWIkuS4jua0vui9puWNleS/oeaBr+S4jeWMuemFjSzor7fph43mlrDliIbphY0hPC9sb2dzPjwvcGlja3VwZGF0YT48c3RhdGU+Mjwvc3RhdGU+PC9zcG90cGlja3Vwcz4=</arg1>
</int:push>
</soapenv:Body>
</soapenv:Envelope>

问题补充:

提示一下,java用的cxf框架

夏天的水果的主页 夏天的水果 | 初学一级 | 园豆:112
提问于:2019-09-12 18:35
< >
分享
所有回答(2)
0

在Visual Studio中,你可以右键你的项目,选择添加--服务引用,然后输入你的wsdl地址看看是否可正常生成代理类

jello chen | 园豆:7037 (大侠五级) | 2019-09-15 16:16

直接添加的,生成的数据都不完全够,

支持(0) 反对(0) 夏天的水果 | 园豆:112 (初学一级) | 2019-09-16 08:56
0

1.加密算法

2.生成nonce是随机数,creadate是生成的utc时间

夏天的水果 | 园豆:112 (初学一级) | 2019-09-23 08:52
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册