Below is the webservice given by third party to integrate in C# winforms:
<?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>
Also a URL to test this webservice is provided. How do i go about consuming this svc webservice in C# winforms. Code snippets are welcome.
Edit : I tried adding web reference to the project in VS2010 but I am getting the following error :