我試圖消耗基於Java的web服務,每次我嘗試連接我得到的只是這樣一個errror:C#消耗的Java SOAP服務的WSSecurity
org.apache.ws.security.WSSecurityException:安全令牌 未經過認證或授權;
服務管理員說我應該發送用AES密鑰加密的密碼,他發給我。
多數民衆贊成我有我的web.config到目前爲止
<client>
<endpoint address="http://webservicer2:8088/billing/"
binding="basicHttpBinding" bindingConfiguration="ServiceBill3"
contract="ServiceBilling.ServiceBillingContract" name="ServiceBill3">
<headers>
<wsse:Security soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>ohmygod</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">bbqsauce</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</headers>
</endpoint>
</client>
當我嘗試對服務執行任何方法的錯誤發生。我應該修改什麼來添加我的密鑰? 有人嗎?
將採取深沉的樣子就可以了,謝謝! – Alexandre