服務方提供了 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
請問該如何處理?
另外問一下,生成的代理類使用方式。
謝謝!
添加回答
舉報
0/150
提交
取消