c# 调用webservice 为什么只能判断出卡号信息 而不能调出其他的信息呢? 大侠们帮帮忙看看

suners 2008-11-14 09:28:17
private void button1_Click(object sender, EventArgs e)
{
WebService.BalanceWebService bws = new WebService.BalanceWebService();
bws.SoapVersion = System.Web.Services.Protocols.SoapProtocolVersion.Default;

String cardNo = txtcardno.Text;

String cardPassWord = this.txtoldpwd.Text;
String ip = this.txtIP.Text;
String hospitalCode = this.txtID.Text;
String @operator = this.txtoperator.Text;

UsernameToken token = new UsernameToken(" 460210211", "111111", PasswordOption.SendPlainText);

bws.SetClientCredential(token);

bws.SetPolicy("ClientPolicy");

WebService.GetAccountResult gar = new WebService.GetAccountResult();

// gar = bws.activeCard("2", "1111111", "192.168.1.229", "460210211", "小伦");


gar = bws.activeCard("cardNo", "cardPassWord", "ip", "hospitalCode", "@operator");


this.txtcardno.Text = gar.code;
this.label8.Text = gar.message;



}
...全文
83 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hm7921936 2008-11-18
  • 打赏
  • 举报
回复
不太明白
hm7921936 2008-11-18
  • 打赏
  • 举报
回复
WSDL文件有错?那你如何生成代理类?
suners 2008-11-18
  • 打赏
  • 举报
回复
没人顶了。。。。。。。。。。。。 其实结果是正确的 是WSDL文件有错
suners 2008-11-14
  • 打赏
  • 举报
回复
通过远程调用用数字安全证书 验证调用卡信息 。。。我晕。。。大哥。。。
我感觉是在WEBSERVICES的类中的方法错误。。。
可这是远程调用的 别人的JAVA 服务类
kugou123 2008-11-14
  • 打赏
  • 举报
回复
...

别人怎么知道你这个webservice到底是干嘛用的?
jiezi316 2008-11-14
  • 打赏
  • 举报
回复
UP

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧