0

以下是第三方提供的用于集成到 C# winforms 中的 web 服务:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified"      targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="GetRecharge">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="account_no" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="smc" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="amount" type="xs:int" />
<xs:element minOccurs="0" name="Uniqueid" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetRechargeResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="GetRechargeResult" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element></xs:schema>

还提供了一个用于测试此 Web 服务的 URL。我如何在 C# winforms 中使用这个 svc webservice。欢迎使用代码片段。

编辑:我尝试在 VS2010 中添加对项目的 Web 引用,但出现以下错误:

http://imgur.com/eCha4qd

4

0 回答 0