how to consume wsdl web service using gsoap in c++
I am creating a login form for that, for the validation purposes i need to consume 1 particular web service. I am using Gsoap to call that web service , I followed all the steps and its generate .h files as well as all those stubs for the client side program. but the problem is when i consume some demo web services like calculator, currency convertor , then i can successfully compile all those generated file in visual studio 2015. But the Web service I need to consume when i do this I can not compile those generated files successfully. if you know any other way then please let me know.
Answers (1)
0
Hi,
Try this Code :
SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=DBNAME;Integrated Security=true;");
SqlDataReader dr;
SqlCommand cmd;
try
{
con.Open();
string qry ="select * from table where username ='"+textbox1.Text+"'";
cmd = SqlCommand(qry,con);
dr = cmd.ExecuteReader();
while(dr.read())
{
//do something
MessageBox.Show("UserName:"+dr.GetString(0));
}
dr.Close();
con.Close();
}
catch(Exception ex)
{
MessageBox.Show(ex.message);
}
finally
{
con.Close();
}
Accepted 0
i think you are wishing to search out the record when user type in textbox and clicks button, isn't it? if so then read a article which let u find record from database
read this