Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 14th, 2003, 11:40 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Client-Side Webservice

hello,

Our company intend to develop a client-server web-based application in the .NET platform. Basically, it involves extensive access to a database by the server since different clients request data in order to do some graphical simulation.. however, in order not to overload the server with these calculations (which takes hours or even days to perform before generating the actual simulation based on these calculations), we want the client to perform these calculations instead of the server.. so the server can do something else other then wasting its time calculating.. my question is Is it possible to execute a webservice (in this case perform those calculations) on the client-side rather on the server-side in the .NET platform context? if so how?

Thanks for your help,
sam

 
Old November 14th, 2003, 03:00 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

By design, a web service is run on the web server. It's nothing more than a web application really. It's just that the files have a web service extension (ASMX). Unless all your clients are running a web service you can't do this. If you are greatly concerned with offloading the bulk of the work to the client (which it definately sounds like you are), I'd recommend looking into another technology. You need to create a client application or build something into your web application that can run at the client (Java?).

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 16th, 2003, 11:45 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What i meant to say basically is to know whether it is possible to run a web service on the client side (or having it locally) instead of busying the server? since in our project we intend to keep the server as much as possible from processing any request which is not database-related.

thanks

 
Old November 17th, 2003, 10:35 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

By nature the web service runs on the web service server. It's a server based application. The client calls the web service. The only way to have anything run on the client it to write software that runs on the client (console application, java applet in the browser, etc).

It sounds like you need to write a client application that talks to the web service only to get data. Then the client application does all the heavy lifting involved with the calculations of your simulation.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 17th, 2003, 10:43 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Well its true. I am wondering if creating a virtual directoy (so it could give the impression as if it is running on the server) on the client's machine and placing the webservice there and then executing it will solve this problem.. so the client will have the webservice locally instead of being on the server.

thanks
sam

 
Old November 17th, 2003, 11:05 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

That would work, but that would require that the client's machine be configured the same as your main web server. Does every client who would be using this application have IIS on their machine? Are the clients all on the same network as the database server so that the multiple occurances of the web services can talk with it?

You seem to be over complicating this situation. It would be much easier to just create a client app that talks with the single web service for data and then does it's own calculations.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old May 16th, 2004, 06:31 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh, maybe you need a cluster of servers, on design a distributed system to manage more than one computer.
web-service is only a kind of one-to-multi link or trans-data mode, in fact yu can do any thing if you can let multi-computer work together.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Two Client Side vs Server Side issues Milo Classic ASP Professional 5 May 25th, 2004 02:47 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.