亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

.net 調用 java的webservice ,遇上 <wsse:Security> 錯誤

.net 調用 java的webservice ,遇上 <wsse:Security> 錯誤

吃雞游戲 2018-12-07 00:54:10
服務方提供了 webservice wsdl里面有 jaxb:version="2.0" 我使用vs2013 生成了調用代理,主要方法如下 在config文件里面是 <system.serviceModel>??????? <bindings>??????????? <basicHttpBinding>????????????? <binding name="ICustomerServiceSOAP11Binding" >????????????? ?????????????? </binding>??????????? </basicHttpBinding>??????? </bindings>??????? <client>????????? <endpoint address="http://....:8080/uapws/service/nc.fdc.ws.services.icustomer.ICustomerService"????????????? binding="basicHttpBinding" bindingConfiguration="ICustomerServiceSOAP11Binding"????????????? contract="NcService.ICustomerServicePortType" name="ICustomerServiceSOAP11port_http">????????? </endpoint>??????? </client>??? </system.serviceModel> 我在程序中調用代碼如下 CustomerServicePortTypeClient client = new? CustomerServicePortTypeClient();string s= client.initCustomers("abc"); 然后就遇上異常   An error was discovered processing the <wsse:Security> header 請問該如何處理? 另外問一下,生成的代理類使用方式。 謝謝!
查看完整描述

6 回答

?
滄海一幻覺

TA貢獻1824條經驗 獲得超5個贊

請起頭不正確嗎,感覺是。

我們用.net調用jax發布的WebService,一直報400錯誤,最后還是用soapUI這個工具查看請求報文,然后手動構造WebRequest來解決的呢~

查看完整回答
反對 回復 2018-12-16
?
一只斗牛犬

TA貢獻1784條經驗 獲得超2個贊

請問java端怎么改的了?

查看完整回答
反對 回復 2018-12-16
?
神不在的星期二

TA貢獻1963條經驗 獲得超6個贊

這部分不是我開發的,不清楚

查看完整回答
反對 回復 2018-12-16
  • 6 回答
  • 0 關注
  • 1172 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號