I'm a newbie with webservices and .net . I have a website which has a form and a validate buton. After pressing the buton, visitors will get the form info in their computer to be processed and printed by an application.
This website will be only accessed by our visitors, and I have to create the application.
I have thought I could pass the info from website to visitor's computer through a webservice, is it right? Then, can the webservice invoke the application and pass the parameters? Or my application will be the webservice itself (it will receive the data,
process it and print it)?
Yes, but webservice will be installed in the client machine. Because only these client machines can enter in my website. It won't have a public URL. I know each visitor and I'll install all necessary in their computers (Application, webservice ...).
So the point is how to transfer information from the web to these client machines.
Users can only access to my website through Kiosks, kiosks has computer, printer and touch screan.
Website is already built using php, mysql, html and css. And website has to pass some information form to the Kiosks. Kiosks then process the info and print it. To process the information, the kiosks has some .net libraries.
I have access to all kiosks and I can configure, install , delete whatever I like from them, navigator, applications...
I see, so the kiosks are the portal to your public facing site?
Well, in that case, I'd use 2 web services. A web service on your public site which the kiosk will consume and a web service on the kiosk that the workstations will consume.
Thank you very much for your concern and patience.
Exactly, the kiosks are the portal to my public facing site. I have to admit I'm very bad at explaining myself, I didn't want to explain everything in order to simplify the things. Users can buy tiquets from Kiosks. Kiosks have printer and VISA card reader.
When user asks to buy an item in the website, website sends the price and article name to the kiosk, then kiosk asks for the VISA CARD
I have thought that webservice installed in the kiosks will have some functions which will be called by a javascript webpage from my public site. These functions will require some parameters which will be the information form (Price and article name). In
that case, would I need a second web service for my public site? One in the kiosk will be enough, right?
The second question is: " will the Webservice in the kiosks be able to invoke the application and pass the parameters? Or the webservice itself will be the application calling the .net libraries for comunicating with the bank server, also to print the tiquet
which users will buy? "
I apollogise for not explaining all the problem from the begining.
In that case, would I need a second web service for my public site? One in the kiosk will be enough, right?
You can create a web service and host this web service in IIS of kiosks, and call this web service from the web site, this web service contains some functions, these parameters of these functions will accept values passed from web form of web site.
misterdog
The second question is: " will the Webservice in the kiosks be able to invoke the application and pass the parameters? Or the webservice itself will be the application calling the .net libraries for comunicating with the bank server, also to print the tiquet
which users will buy? "
Web service in the kiosks could also invoke other web services, or WCF services or other applications and pass parameters.
misterdog
0 Points
5 Posts
Create a Webservice
Apr 23, 2012 04:33 PM|LINK
Hi all,
I'm a newbie with webservices and .net . I have a website which has a form and a validate buton. After pressing the buton, visitors will get the form info in their computer to be processed and printed by an application.
This website will be only accessed by our visitors, and I have to create the application.
I have thought I could pass the info from website to visitor's computer through a webservice, is it right? Then, can the webservice invoke the application and pass the parameters? Or my application will be the webservice itself (it will receive the data, process it and print it)?
Thank you very much in advance,
misterdog
adamturner34
Contributor
3912 Points
982 Posts
Re: Create a Webservice
Apr 23, 2012 04:49 PM|LINK
A webservice sits on the web server and cannot directly interact with a users machine.
You can develope either a winforms or webforms application and consume the web service.
misterdog
0 Points
5 Posts
Re: Create a Webservice
Apr 23, 2012 05:29 PM|LINK
Thank you very much for such a quick reply.
Yes, but webservice will be installed in the client machine. Because only these client machines can enter in my website. It won't have a public URL. I know each visitor and I'll install all necessary in their computers (Application, webservice ...).
So the point is how to transfer information from the web to these client machines.
adamturner34
Contributor
3912 Points
982 Posts
Re: Create a Webservice
Apr 23, 2012 05:54 PM|LINK
If you're transferring data from the web to a local PC, it's a public facing site. Although, it may not have a presentation layer, it is still public.
Installing a web service on client workstations is a bad idea mainly becuase of support.
It sounds like you're trying to reinvent a square wheel.
Is there something I'm missing? Firewall issues?
misterdog
0 Points
5 Posts
Re: Create a Webservice
Apr 23, 2012 06:09 PM|LINK
Users can only access to my website through Kiosks, kiosks has computer, printer and touch screan.
Website is already built using php, mysql, html and css. And website has to pass some information form to the Kiosks. Kiosks then process the info and print it. To process the information, the kiosks has some .net libraries.
I have access to all kiosks and I can configure, install , delete whatever I like from them, navigator, applications...
What would be the best solution?
Thank you ver much for your concern,
adamturner34
Contributor
3912 Points
982 Posts
Re: Create a Webservice
Apr 23, 2012 06:59 PM|LINK
I see, so the kiosks are the portal to your public facing site?
Well, in that case, I'd use 2 web services. A web service on your public site which the kiosk will consume and a web service on the kiosk that the workstations will consume.
That will work.
misterdog
0 Points
5 Posts
Re: Create a Webservice
Apr 23, 2012 07:35 PM|LINK
Thank you very much for your concern and patience.
Exactly, the kiosks are the portal to my public facing site. I have to admit I'm very bad at explaining myself, I didn't want to explain everything in order to simplify the things. Users can buy tiquets from Kiosks. Kiosks have printer and VISA card reader. When user asks to buy an item in the website, website sends the price and article name to the kiosk, then kiosk asks for the VISA CARD
I have thought that webservice installed in the kiosks will have some functions which will be called by a javascript webpage from my public site. These functions will require some parameters which will be the information form (Price and article name). In that case, would I need a second web service for my public site? One in the kiosk will be enough, right?
The second question is: " will the Webservice in the kiosks be able to invoke the application and pass the parameters? Or the webservice itself will be the application calling the .net libraries for comunicating with the bank server, also to print the tiquet which users will buy? "
I apollogise for not explaining all the problem from the begining.
Mister Dog
Vijay_fix61
Member
8 Points
7 Posts
Re: Create a Webservice
Apr 23, 2012 08:07 PM|LINK
To Get The Basic Tutorial About Web Services Here Is A Nice Sample
http://vijaysinghnegi.blogspot.in/2012/01/web-services-basic-tutorial-in-dot-net.html
Peter pi - M...
Star
12871 Points
1786 Posts
Re: Create a Webservice
Apr 26, 2012 03:36 AM|LINK
You can create a web service and host this web service in IIS of kiosks, and call this web service from the web site, this web service contains some functions, these parameters of these functions will accept values passed from web form of web site.
Web service in the kiosks could also invoke other web services, or WCF services or other applications and pass parameters.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
misterdog
0 Points
5 Posts
Re: Create a Webservice
Apr 26, 2012 09:02 AM|LINK
Thank you very for the information!