moGile Service WSDL: http://ws.ezypayindia.com/p/network.asmx?WSDL
Email us for requesting credentials to test your implementation.

//sending POST request c#

using System.IO;
            using System.Text;
            using System.Net;
            HttpWebRequest req = (HttpWebRequest)WebRequest.Create(“http://ws.ezypayindia.com/p/network.asmx/doTxn”);
            req.Credentials = CredentialCache.DefaultCredentials;
            req.Method = “POST”;
            // Set the content type of the data being posted.
            req.ContentType = “application/x-www-form-urlencoded”;
            string inputData = “sample webservice”;
            string postData = “AuthCode=eabacusf-1234-4e08-bcc1-aabacus17b5b&username=1234321234&password=8816&ReqId=1dsvsd86963&itemId=2&customerPh=9434710602&CircleCode=GJ&argStr=50”;
            ASCIIEncoding encoding = new ASCIIEncoding();
            byte[] byte1 = encoding.GetBytes(postData);
            using (HttpWebResponse res = (HttpWebResponse)req.GetResponse())
            {
                StreamReader sr = new StreamReader(res.GetResponseStream());
                string txtOutput = sr.ReadToEnd();
                Console.WriteLine(txtOutput);
            }
//sending POST request Visual Basic
Dim req As HttpWebRequest = CType(WebRequest.Create(“http://ws.ezypayindia.com/p/network.asmx/doTxn”),HttpWebRequest)
req.Credentials = CredentialCache.DefaultCredentials
req.Method = “POST”
‘ Set the content type of the data being posted.
req.ContentType = “application/x-www-form-urlencoded”
Dim inputData As String = “sample webservice”
Dim postData As String = “AuthCode=eabacusf-1234-4e08-bcc1-aabacus17b5b&username=1234321234&password=8816&ReqId=1dsvsd86963&ite”& _
“mId=2&customerPh=9434710602&CircleCode=GJ&argStr=50”
Dim encoding As ASCIIEncoding = New ASCIIEncoding
Dim byte1() As Byte = encoding.GetBytes(postData)

Using res as (HttpWebResponse)req.GetResponse()
Dim res As HttpWebResponse = CType(req.GetResponse,HttpWebResponse)

Dim txtOutput As String = sr.ReadToEnd
Console.WriteLine(txtOutput)

End Using

Leave a Reply

Your email address will not be published. Required fields are marked *