473,395 Members | 1,797 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,395 software developers and data experts.

create 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 23 '05 #1
5 9613
Web serives are stateless, and atomic. They do not and should not
support properties. You are going to have to abstract your middle tier
with a web service, and pass the values you are going to insert as
parameters of the insert method. Web Services don't support pure
Object Orientation

Nov 23 '05 #2
How should I use web services for inserting and updating database ??
I want to keep my middle tier seperate from the presentation tier...

vips

"Keenan Newton" <ka*********@yahoo.com> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
Web serives are stateless, and atomic. They do not and should not
support properties. You are going to have to abstract your middle tier
with a web service, and pass the values you are going to insert as
parameters of the insert method. Web Services don't support pure
Object Orientation

Nov 23 '05 #3
Create a web service method, that accepts the parameters that need to
be populated. They parameters can be the different data elements that
need to be saved, or it can eb an object with properties. I prefer to
use the object with properties were a lot of data is being saved it
also makes it clearer when you pass in a collection.

Nov 23 '05 #4
Vips,
Why do you want to use web services? Why do you want to have
separate physical tiers? It is important to have layers of
responsibility in your application but this does not require web
services or separate physical tiers, it can be accomplished with simple
well designed classes. Web services are first and foremost about
interoperability. Are you expecting to have non .Net clients? If you
need separate Physical tiers and all your clients will be .net then go
with .Net remoting The main reason for a separate physical middle tier
is for data access to take advantage of connection pooling for
scalability, how many clients are you expecting to have? If the number
is not too big then client server architecture is just fine.
There are of course other factors but the two listed above are the big
ones. If you don't need the extra complexity keep it simple! A single
executable and the db, client server may be all you need. Just follow
good class design principals and latter moving to a more complex
physical architecture posses few obstacles.

Cecil Howell
MCSD, MCAD.Net, MCT
www.ceciltech.com

Nov 23 '05 #5
Well there are more things to consider then simply just connection
pooling and interoperability. Such as is this application going to be
just one part of an Enterprise application? Will other applications
potentially be able to use your services down the road? Do you expect
your infrastructure to always be pure Microsoft? I agree with Cecil
that you can start small with client/server but between the layers I
would not use a Object Orientated Architecture. I would side with a
Service Orientated Architecture, and this does not mean the use of web
servers necessarily. Just make sure that you are passing the "message"
and not the implementation between the tiers, and you should be fine.
it is very hard to determine growth, but it is going to be a forgone
conclusion that technology will change. With that do you feel more
comfortable using a vendor specific transport like remoting, or a more
common one such as SOAP via http (web services). If you are looking to
longevity and if you ever forsee the need to be interoperable not only
between different vendor, but between different evolutions of a
specific. I would create a client/server application with a "service
thinking" (SOA) approach. .Net Remoting in my mind will only make you
re-write code down the road.

Nov 23 '05 #6

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

Similar topics

2
by: Siegfried Heintze | last post by:
I ran Internet Services Manager to create a virtual directory whose physical path was C:\InetPub\wwwroot\SIGNITEK_PRIVATE. Since this notebook is not exposed on the network, I gave the virtual...
2
by: Randall Powell | last post by:
I am in the process of developing a Windows Service which will: (1) monitor multiple network shares; (2) marshal text file transfers into an SQL Server 2000 instance; and (3) provide messaging...
7
by: MarkoH | last post by:
Wsdl.exe /server creates abstract class derived from WebService. Is there a way to create this class at runtime based on some WSDL file given at runtime ? What would be even better - creating...
1
by: Federico | last post by:
Hi I want to create a Web Services where I receive a Template DOT word a file XML and with these I create a Document that a I'll Send as Dime Attachment. <WebMethod()> _ Public Function...
0
by: Federico | last post by:
Hi I want to create a Web Services where I receive a Template DOT word a file XML and with these I create a Document that a I'll Send as Dime Attachment. <WebMethod()> _ Public Function...
0
by: Federico | last post by:
Hi I want to create a Web Services where I receive a Template DOT word a file XML and with these I create a Document that a I'll Send as Dime Attachment. <WebMethod()> _ Public Function...
2
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
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...
1
by: Arpan | last post by:
A class file named "SecureDBWS.vb" exsting in C:\Inetpub\wwwroot\ASPX\Business folder has the following code: Imports System Imports System.Data Imports System.Data.SqlClient Imports...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.