TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hemant Mane
1.6k
174
2.8k
I want to do PAN verification using API in c#.net
Apr 12 2018 3:36 AM
I want to do PAN verification using API in c#.net but it gives me the response in number like 10 or 3?How can i do PAN verification using API?
using System;
using System.IO;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
try
{
InitializeComponent();
string apiUrl = "https://59.163.46.2/TIN/PanInquiryBackEnd";
var uriBuilder = new UriBuilder(apiUrl);
Uri address = new Uri(apiUrl);
// Create the web request
HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
// Set type to POST
request.Method = "POST";
request.ContentType = "text/xml";
ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
{
// Get the response stream
StreamReader reader = new StreamReader(response.GetResponseStream());
// Console application output
string strOutputXml = reader.ReadToEnd();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
Reply
Answers (
0
)
Regular expression to validate date ?
Inplace editing in mvc5 gridview can anyone help