从java wsdl创建C#类 [英] Create C# class from java wsdl
本文介绍了从java wsdl创建C#类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,我有java wsdl并且我使用wsdl.exe将wsld转换为C#类,并且我从create C#类调用方法但是它返回此错误
System.InvalidOperationException:必须在调用Send方法之前设置Path属性。
在System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri)系统中的
.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)
<在System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)的span style ="">
$>中的"font-size:x-small"> p $ p>
位于C:\Documents中的JService.csogetPersonDetByIdnum(String idNum,String organizationID,String orgIpAddres,String prkey,String stype)和Settings\Farrag \Desktop\RouterWS \RouterWS\JService.cs:第108行
\\Desktop\RouterWS \ RouterWS \ Service1.asmx.cs:第24行
请任何人都能支持我,
非常感谢
解决方案
这是完整的例外吗?请抓住异常,然后发布ex.ToString()的结果。
dear all,
i have java wsdl and i convert wsld to C# class using wsdl.exe
and i call method from the create C# class but it return this error
System.InvalidOperationException: Path property must be set before calling the Send method.
at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri uri)
at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri uri)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at JService.csogetPersonDetByIdnum(String idNum, String organizationID, String orgIpAddres, String prkey, String stype) in C:\Documents and Settings\Farrag\Desktop\RouterWS\RouterWS\JService.cs:line 108
at Service1.csogetPersonDetByIdnum(String idNum, String organizationID, String orgIpAddres, String prkey, String stype) in C:\Documents and Settings\Farrag\Desktop\RouterWS\RouterWS\Service1.asmx.cs:line 24
please any one can support me ,
thanks alot
解决方案
Is that the full exception? Please catch the exception, then post the result of ex.ToString().
这篇关于从java wsdl创建C#类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文