How to create a dynamic web service from windows application
-
I am creating a windows application which take database configurations from user and save in an xml. I need some code help which will do the following task: When the user press finish button: 1. It should create a web service which will be able to read data according to the database configuration. 2. Start the web service automatically 3. Configure the IIS server. 4. save the server address into a xml file which will be used by other to consume this service. All the above points should be done in a single finish button click. How can I do that. I need some guideline and sample code for that.
-
I am creating a windows application which take database configurations from user and save in an xml. I need some code help which will do the following task: When the user press finish button: 1. It should create a web service which will be able to read data according to the database configuration. 2. Start the web service automatically 3. Configure the IIS server. 4. save the server address into a xml file which will be used by other to consume this service. All the above points should be done in a single finish button click. How can I do that. I need some guideline and sample code for that.
dokhinahaoa wrote:
It should create a web service which will be able to read data according to the database configuration.
No Method will create a webservice for You .The webservice should be created by Yourself depending upon your requirement and it should be called in finish button.
MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
-
dokhinahaoa wrote:
It should create a web service which will be able to read data according to the database configuration.
No Method will create a webservice for You .The webservice should be created by Yourself depending upon your requirement and it should be called in finish button.
MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
I need some Idea for the following purposes please help me: Suppose a user is installing my windows application. When the user completed installing, It should send a network address to me and start listening for sql from me. When I will send sql to the user's address it will execute it and return me the dataset or data table(I know how to execute sql and get dataset). As a result the final solution is that: The user will installe my application very easily and started to serve me by executing sql from his database. The user don't have to create a webservice on it's own. Everything should be done by my windows application. So what will I do. Is it possible to create web service and start listening by my windows application?(IIS server may be configured by executing a batch file). Or Should I use client/server socket programming for that? Please need suggestion and help somhow
-
I need some Idea for the following purposes please help me: Suppose a user is installing my windows application. When the user completed installing, It should send a network address to me and start listening for sql from me. When I will send sql to the user's address it will execute it and return me the dataset or data table(I know how to execute sql and get dataset). As a result the final solution is that: The user will installe my application very easily and started to serve me by executing sql from his database. The user don't have to create a webservice on it's own. Everything should be done by my windows application. So what will I do. Is it possible to create web service and start listening by my windows application?(IIS server may be configured by executing a batch file). Or Should I use client/server socket programming for that? Please need suggestion and help somhow
First things first.The client should have the access for the webservice (normally internet Connection should provide ie the webservice should run on webserver)
dokhinahaoa wrote:
It should send a network address
write a webmethod in webservice which returns the users ip address.
dokhinahaoa wrote:
When I will send sql to the user's address
AFAIK You cant send the sql to to the user's address using webservice.Lets Assume that You Sent. Then If he receives the text and executes then write a webmethod in webservice for returning dataset. and You can Present the data.
dokhinahaoa wrote:
Or Should I use client/server socket programming for that?
Sorry I have no idea abt client/server socket programming..!
MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
-
First things first.The client should have the access for the webservice (normally internet Connection should provide ie the webservice should run on webserver)
dokhinahaoa wrote:
It should send a network address
write a webmethod in webservice which returns the users ip address.
dokhinahaoa wrote:
When I will send sql to the user's address
AFAIK You cant send the sql to to the user's address using webservice.Lets Assume that You Sent. Then If he receives the text and executes then write a webmethod in webservice for returning dataset. and You can Present the data.
dokhinahaoa wrote:
Or Should I use client/server socket programming for that?
Sorry I have no idea abt client/server socket programming..!
MyFirstArticlePublished: MenuControlSelectedItem Why Do Some People Forget To Mark as Answer .If It Helps.
Here user means another computer/server.But how the user will listen my sql. The user did not created any webservices on it's own. He just installed my windows application.My windows application should create,install,configure and start webservice and start listening for sql from me. My main terget is creating such windows application(This is a part of my full project).