2012-08-23 39 views
0

嘿有代碼戰士和堆棧交換器。將用戶名和密碼令牌添加到WSSecurity Web服務調用(.net客戶端)

我一直試圖設置Web服務的憑據。我在Websphere(java ee)中編寫了webservice,它需要在標頭中爲所有要調用的服務提供用戶名和密碼。我可以在SOAP UI中運行它,但我需要能夠從.net Web客戶端中找到它。

到目前爲止,我已經嘗試設置像這樣的憑證......

dlc.ClientCredentials.UserName.UserName = "idiotCreds"; 
dlc.ClientCredentials.UserName.Password = "someWhackyPWD"; 

而且到目前爲止,我剛剛收到這個異常

security.wssecurity.WSSContextImpl.s02: com.ibm.websphere.security.WSSecurityException: Exception org.apache.axis2.AxisFault: CWWSS6500E: There is no caller identity candidate that can be used to login. ocurred while running action: [email protected]30 

對此我猜是告訴我,有沒有設置憑據...
即使我設置了客戶端憑據。我需要在這裏手動創建並添加肥皂頭嗎?我認爲這應該是由該客戶端對象處理?任何想法傢伙?謝謝

+0

它開始看起來像WCF不能做到這一點?這實在令人失望。 – SoftwareSavant

回答

相關問題