这个webservice如何调用?

Luckeryin 2009-09-23 11:28:33
已知:
1,Server URL: https://dev.truemoney.co.th/cpg/CPGWSOnline/services/OnlineTopupService
2,XML Schema:
<?xml version = '1.0' encoding = 'UTF-8'?>
<schema targetNamespace="http://webservice.gateway.payment.eit.ti.com"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:impl="http://webservice.gateway.payment.eit.ti.com"
xmlns:intf="http://webservice.gateway.payment.eit.ti.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<element name="performServiceResponse">
<complexType>
<sequence>
<element name="performServiceReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="performService">
<complexType>
<sequence>
<element name="xmlInput" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
3,Request:
<?xml version=”1.0” encoding=”UTF-8” ?>
<TOPUP_REQUEST>
<mesg_type>verify</mesg_type>
<cpgmerchantId>800000700</cpgmerchantId>
<cpgpassword>verify</cpgpassword>
<trans_id>2093843982094</trans_id>
<send_date>20060621</send_date>
<send_time>120501</send_time>
<bank_code>002</bank_code>
<bank_account>17129081234</bank_code>
<branch_code>180</branch_code>
<channel>A</channel>
<term_id>S424B180A251</term_id>
<service_code>TMNTOPUP</service_code>
<cust_no>0843454433</cust_no>
<amount>50000</amount>
<ref1>45664321****</ref1>
<ref2>LOTUS</ref2>
</TOPUP_REQUEST>
在C# winform中如何调用这个webservice完成工作?
...全文
169 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
cnhuangjin 2009-09-24
  • 打赏
  • 举报
回复
右击项目-》添加服务引用-》web service接口地址

成功后,会生成代理类,然后可以直接调用代理类中的方法
弘毅致远 2009-09-24
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 cnhuangjin 的回复:]
右击项目-》添加服务引用-》web service接口地址

成功后,会生成代理类,然后可以直接调用代理类中的方法
[/Quote]

这样有问题吗?
zhongjiekangping 2009-09-24
  • 打赏
  • 举报
回复
两种简单生成 代理类的 方法 google 到处都可以看到
Knight94 2009-09-23
  • 打赏
  • 举报
回复
这要有wsdl,一样可以声明webservice的代理类。

12,166

社区成员

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

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