473,698 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Webservice question

Here is my problem:

I need to write web application which can do the following:

View Accounts
Add an Account
Update an Account
Close an Account

My first thought was an ASP.NET pp using a C# dll containing the
functionality. The drawback with this, is the interface is restricted
because of the dll (any additional customers wishing to use the system
would require the dll and connection details).

Should a web service be use for this, and can webservice allow me to add
/ update recrods using XML?

This would allow a customer to create their own interface and then speak
to my webservice without any software from me.

Any help on this matter would be appreciated.

Regards,

Steven

*** Sent via Developersdex http://www.developersdex.com ***
Feb 22 '06 #1
6 1336
> This would allow a customer to create their own interface and then speak
to my webservice without any software from me.
What are the requirements? Are you supposed to design the business classes
only, or an interface as well? What is the network environment of this app?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
To a tea you esteem
a hurting back as a wallet.
"Steven Blair" <st**********@b tinternet.com> wrote in message
news:us******** ******@tk2msftn gp13.phx.gbl... Here is my problem:

I need to write web application which can do the following:

View Accounts
Add an Account
Update an Account
Close an Account

My first thought was an ASP.NET pp using a C# dll containing the
functionality. The drawback with this, is the interface is restricted
because of the dll (any additional customers wishing to use the system
would require the dll and connection details).

Should a web service be use for this, and can webservice allow me to add
/ update recrods using XML?

This would allow a customer to create their own interface and then speak
to my webservice without any software from me.

Any help on this matter would be appreciated.

Regards,

Steven

*** Sent via Developersdex http://www.developersdex.com ***

Feb 22 '06 #2
Could you open the topic more wide?
What is the account? Where is located? Who is the consumers? What's the
bound of application? And etc.
"Steven Blair" wrote:
Here is my problem:
I need to write web application which can do the following:
View Accounts
Add an Account
Update an Account
Close an Account

My first thought was an ASP.NET pp using a C# dll containing the
functionality. The drawback with this, is the interface is restricted
because of the dll (any additional customers wishing to use the system
would require the dll and connection details).

Should a web service be use for this, and can webservice allow me to add
/ update recrods using XML?

This would allow a customer to create their own interface and then speak
to my webservice without any software from me.

Any help on this matter would be appreciated.

Regards,


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Feb 22 '06 #3
Sure,

A bit more detail:

The Accounts represent a customer on our existing Database (personal
details are stored here).
Functionality must exists which will allowed Account records to be
updated, added or closed.
As it stands just now, I will be developing a web front end to interface
with a C# dll (the dll will have methods such as Add and Update).
Another requirement which would be exteremly useful would be external
customers being able to use our Add / Update functions. This is what
first got me started thinking about using a webservice.

My API (Add, Update, View & Close) needs to be available over the
internet for other peoples interfaces to access.
Using the dll approach would require each customer to have a copy of the
dll, as well as using .NET.

My small understanding of webservices led me to believe any web front
end could access the service, and call my Update method for example,
without the need for any .NET code.

Obviously, I need to understand if that is possible, and how difficult
it is to perform Updates / Adding records using this technology.

Would Customer A, after adding a Account on their interface send a XML
record to my service, where I would update my Database (I guess bind the
XML to a DataSet).

I hope this answers all your questions.
*** Sent via Developersdex http://www.developersdex.com ***
Feb 22 '06 #4
> The Accounts represent a customer on our existing Database (personal
details are stored here).
Functionality must exists which will allowed Account records to be
updated, added or closed.
As it stands just now, I will be developing a web front end to interface
with a C# dll (the dll will have methods such as Add and Update).
Aha. You need expose your logic to the business context. This DLL should to
be either COM+ or WebService.
Another requirement which would be exteremly useful would be external
customers being able to use our Add / Update functions. This is what
first got me started thinking about using a webservice.
WS is not obligatory, but recomended
My API (Add, Update, View & Close) needs to be available over the
internet for other peoples interfaces to access.
Moreover, that should be 2 components, one for guest (View, Close) another
to admin (Add, Update)
Using the dll approach would require each customer to have a copy of the
dll, as well as using .NET.
In case of just dll - yes, but if u use WS/COM+ your component will be
hosted in some environment and all functionality will be exposed to customer.
My small understanding of webservices led me to believe any web front
end could access the service, and call my Update method for example,
without the need for any .NET code.
Sure
Obviously, I need to understand if that is possible, and how difficult
it is to perform Updates / Adding records using this technology.
Just to create proxy of your component and call methods (UpdateUserInfo for
example)
Would Customer A, after adding a Account on their interface send a XML
record to my service, where I would update my Database (I guess bind the
XML to a DataSet).


Indeed

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche

Feb 22 '06 #5
If the database is SQL Server or mySQL I'd be leaning towards PHP.

Feb 22 '06 #6
Hi Steven,

"Steven Blair" <st**********@b tinternet.com> wrote in message
news:e8******** *****@TK2MSFTNG P15.phx.gbl...
Sure,

A bit more detail:

The Accounts represent a customer on our existing Database (personal
details are stored here).
Functionality must exists which will allowed Account records to be
updated, added or closed.
As it stands just now, I will be developing a web front end to interface
with a C# dll (the dll will have methods such as Add and Update).
Another requirement which would be exteremly useful would be external
customers being able to use our Add / Update functions. This is what
first got me started thinking about using a webservice.
So create the web service in Visual Studio and have it reference the same C#
dll. This is called a 'service proxy' pattern.

My API (Add, Update, View & Close) needs to be available over the
internet for other peoples interfaces to access.
Using the dll approach would require each customer to have a copy of the
dll, as well as using .NET.
The dll approach doesn't work at all. If you share out the dll, then the
mechanism that your dll uses to access the database would have to be open to
the world. So, if your dll accesses your db using ADO.Net, then you will
have to leave ports open on your SQL Server so that copies of that dll can
access the same SQL Server from a remote machine. Your DB will be infected
within a few minutes. No, this option is not an option at all.

My small understanding of webservices led me to believe any web front
end could access the service, and call my Update method for example,
without the need for any .NET code.
Not sure why you'd want your own web front end to access the web service.
Have the web front end call the C# assembly. Have the web service available
for your customers to use, but don't use it yourself. This is really
inefficient for no good reason.

Obviously, I need to understand if that is possible, and how difficult
it is to perform Updates / Adding records using this technology.
Trivial. If you create a 'web service' project in Visual Studio, you will
get a class that has the needed attributes that denote that it is the
code-behind for a web service. VS will write all the web service proxy code
for you, and will call your class. You code your class to call your C#
assembly and return data just like any other call. You never have to deal
with XML.

Would Customer A, after adding a Account on their interface send a XML
record to my service, where I would update my Database (I guess bind the
XML to a DataSet).


When you author a web service using Visual Studio, you will get a file
encoded in WSDL. You don't have to do anything to make this happen. It is
automatic. When Customer A is developing their client code, they tell
Visual Studio to use your web service. VS will request the WSDL file, which
contains a definition of the XML needed for that client app to make the
call. VS will write the client proxy for your customer. When your customer
wants to call a method on your service, it is just like calling a class on
your object. The code that is written for you deals with all the SOAP
stuff, so you don't have to.

Hope this helps.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Feb 23 '06 #7

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

Similar topics

6
4324
by: MA | last post by:
Hi all! I know there is other newsgroups for webservices, but I don´t get any answers on those. I have developed a webservice that writeing and reading files in different folders. Question 1: I need to be able to stop this service by using a web interface
7
2921
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure out to create a "DataSet" as the return type from the webservice?
5
6273
by: | last post by:
Hi, How long do webservice objects live for? In particular, if i have static variables filled with data from a static constructor in a webservice, how long will that data persist? thxs
0
3540
by: iKiLL | last post by:
Hi All Code Below for this problem ERROR: "An existing connection was forcibly closed by the remote host"
0
8668
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8855
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4358
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.