473,327 Members | 2,007 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

creating property in web services

How to use properties in webservice ?

if I want to create a webservice as my middle tier and want to create
public properties so that the presentation layer can assign values to the
property and then call insert() method in webservice. how should I do that I
web service does not allow public properties .

there is one option of passing the property values through webmethod...but
it will disturb the architecture ...
what is a standard method of doing it ....??

also give me a alternative method of using webservices as middle tier for
insert update select operations ..

Please ...
waiting for many comments
vips


Nov 19 '05 #1
1 1039
This is not how web services work, by default. The norm is send information
as a chunk and pass back as a chunk.

Now, you can set up static classes behind the web service, but the danger
here is the service will now have to track user sessions if you do not want
one user to get another user's data.

To pull information a piece at a time, you will have to create web methods
to retrieve each "property" set.

That is why I would not do it.

Better method:
1. Set up a class library of classes that are common to both tiers. Classes
are serializable
2. Deploy in both tiers
3. When web method is called, fill class and pass back, serialized, to
calling client.
4. Deserialize the object and use it

There are even better ways, perf wise, but they involve interfaces and
potentially some reflection. For most instances, the shared library works
quite well and it is easy enough to implement.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"ypul" wrote:
How to use properties in webservice ?

if I want to create a webservice as my middle tier and want to create
public properties so that the presentation layer can assign values to the
property and then call insert() method in webservice. how should I do that I
web service does not allow public properties .

there is one option of passing the property values through webmethod...but
it will disturb the architecture ...
what is a standard method of doing it ....??

also give me a alternative method of using webservices as middle tier for
insert update select operations ..

Please ...
waiting for many comments
vips


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
I get these errors when creating a asp .net web application project in VS 2003 on a remote web server: "Microsoft Development Environment The Web was created successfully, but an error occurred...
1
by: Mark Dengler | last post by:
I am trying to write a C# backend program that will handle the database maintenance that I would otherwise have to do via Microsoft's Analysis Services front end GUI Wizards. Currently I am having...
0
by: Peter D. Dunlap | last post by:
I have a number of web sites on my 2003 server, each of the independent sites (i.e., not subdirectories of the localhost site). The way I have always set these up in the past is: 1. Create a...
9
by: Opa | last post by:
When creating a new web service, I get the following error: Visual Studio .net cannot create or open the application. Web site 'http://localhost/WDWS' not started. The World Wide Web Publish...
16
by: tshad | last post by:
This is a little complicated to explain but I have some web services on a machine that work great. The problem is that I have run into a situation where I need to set up my program to access one...
8
by: Richard Collette | last post by:
When attempting to debug a webservice, I get the error: Cannot serialize member System.Exception.Data of type System.Collections.IDictionary, because it implements IDictionary. In reading...
2
by: =?Utf-8?B?QWxhc3RhaXIgQmVsbA==?= | last post by:
I am having trouble creating a web site on a server running sharepoint services. I am creating an ASP.Net website using Visual Studio 2005. The server I am trying to create it on is a Windows 2003...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
1
by: Israel | last post by:
I found it surprisingly unintuitive and difficult to get the installation code to work properly and I found very little help on the google groups so I figured I’d post the things that burned me so...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.