如何使用https上托管的Web服务?

时间:2014-04-01 12:31:25

标签: c# web-services ssl soap https

我正在尝试从https://地址托管的第三方soap web服务获取数据,并且我一直收到错误{&#34;请求因空响应而失败。&#34;} < / p>

我正在尝试使用标准方法&#34;添加服务参考&#34; &GT;进展&gt; Web引用和创建实例以及进行调用。

该服务可以通过网络浏览器访问,我尝试过使用soapUI,但它一直给出错误:

Error loading [https://serviceaddress.com/wa/ws/ver5/admin.asmx?wsdl]: org.apache.xmlbeans.XmlException: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0x92 implies a length of more than 4 byte

Stack Message如下:

at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at com.certpointsystems.inforuat.VLSAdmin.FindCourses(String courseSearchInfo, String levelSearchInfo, String outputFilterXml, String& dataXml) in c:\Users\vsachdeva\AppData\Local\Temp\Temporary ASP.NET Files\root\3027fa51\7bbbba28\App_WebReferences.ylr-phiq.0.cs:line 481
   at _Default.Page_Load(Object sender, EventArgs e) in c:\Users\vsachdeva\Desktop\tempC#\WebSite1\Default.aspx.cs:line 24
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 

如果有效,请建议一种方法。

提前致谢, 维沙尔

0 个答案:

没有答案