473,608 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Application + Web Services

My Windows Application has two forms, one form contains a grid (lets say
Stock Listing), and the other is a form of one stock, contains some edit
boxes for one stock's fields..

Is it possible to run application remotely and retrieve grid and form data
in some way without accessing directly to database server?

Web Services is being used for this purpose I think,

Which methods must be used for this ?

Thank you
Jan 19 '08 #1
3 7044

"Sylvie" <ss*@sss.sswrot e in message
news:Oh******** ******@TK2MSFTN GP02.phx.gbl...
My Windows Application has two forms, one form contains a grid (lets say
Stock Listing), and the other is a form of one stock, contains some edit
boxes for one stock's fields..

Is it possible to run application remotely and retrieve grid and form data
in some way without accessing directly to database server?

Web Services is being used for this purpose I think,
A Web service can be used for this where you access a method or methods on
the Web service to send/receive data with an application, like a Windows
form, Web form, Console, or Windows Service application. Each type of
application would consume the Web service with the Web service doing the
back-end database processing.

Jan 19 '08 #2
Which way is the best one according to the performance issues ?

To go directly into sql server (accessible server from web, using stored
procedures, etc..)

To use web services (returns datasets for my app, and accepts methods from
my app, insert, update, delete records, etc... )

In summary, May I perform all the things by using web services ?

I ll start a project and once I start, I couldnt turn back :)

"Mr. Arnold" <MR. Ar****@Arnold.c om>, iletide sunu yazdi
news:eI******** ********@TK2MSF TNGP02.phx.gbl. ..
>
"Sylvie" <ss*@sss.sswrot e in message
news:Oh******** ******@TK2MSFTN GP02.phx.gbl...
>My Windows Application has two forms, one form contains a grid (lets say
Stock Listing), and the other is a form of one stock, contains some edit
boxes for one stock's fields..

Is it possible to run application remotely and retrieve grid and form
data in some way without accessing directly to database server?

Web Services is being used for this purpose I think,

A Web service can be used for this where you access a method or methods on
the Web service to send/receive data with an application, like a Windows
form, Web form, Console, or Windows Service application. Each type of
application would consume the Web service with the Web service doing the
back-end database processing.

Jan 19 '08 #3

"Sylvie" <ss*@sss.sswrot e in message
news:uC******** ******@TK2MSFTN GP02.phx.gbl...
Which way is the best one according to the performance issues ?

To go directly into sql server (accessible server from web, using stored
procedures, etc..)
Yes, you can use the Web server and a Web service in that manner. You should
use Stored Procedures not that things are going to be any faster but because
of security concerns with T-SQL injection attacks when using T-SQL in line
code in a program, one that's facing the Internet.

You should also use SOAP Authentication on your Web Service, where as, every
time an Web client application consumes your Web service, the Web client
application must give the Authentication credentials of a user-id and psw
to logon to the Web service and use it. You should be able to use Google to
get an example of how to make a .Net Web service that uses SOAP
Authentication. It's really easy to do this.
>
To use web services (returns datasets for my app, and accepts methods from
my app, insert, update, delete records, etc... )
Yes, you can pass Command parms, like Add, Update, Delete, give it a
dataset or an object with data and pass it to the C#.cs in its constructor
that the Web Method encompasses, from your Web service client application,
and you can pass back data like a dataset to the Web service client from the
Web service Method and its class with the Return statement. You can do just
about anything with the class, just like you can do it if it was not a class
in a Web Method.
>
In summary, May I perform all the things by using web services ?
Yes you can do it. But remember this. A Web Service is a XML Web service,
and if passing a dataset, you can serialize the dataset to XML, pass it, and
deserialize XML back to a dataset.
>
I ll start a project and once I start, I couldnt turn back :)
You should look at the WSDL command using a URL pointing to your Web service
to understand that.
You should look at the WSDL.exe that you use at the .Net Command Prompt to
point to a Web Service URL and it creates the C#.cs for the Web Service so
you can consume the Web service in your Web service client code easily.

I think you first need to build a Web service application to understand what
is happening.

http://support.microsoft.com/default...;Q301273&ID=KB...

You should be able to find examples on Google on everything that has been
talked about. I had to do it when I recently wrote first Web service
client application to consume a 3rd party Web service, and in return, I had
to write a Web Service application to receive data back from the 3rd party
vendor that the 3rd party vendor had a Web service client application to
consume my Web service application.
If you're not using SSL/HTTPS the you might want to look at SOAP encryption.
and make sure you send back an XML response back to the Web service client
so that the client can check the status. You will have to understand XML and
the use of a Memory Stream with the XML, but again you use Google.

<Statuslist>
<Status>
<Code>OK</Code>
<Message>OK</Message>
</Status>
</Statuslist>

Over the last 3 to 4 weeks, I have learned more about Web services, Web
client, XML, and Memory Streams than I ever wanted to know, believe me.

Use it to write the Statuslist response back to the client, use the
XMLTextWriter using a Memory Stream not a File Stream, which you have to
parse the Memory Stream to return the XML tags and data out Stream tostring
and send the Response back. Look for an exmple on google that using the
MemoryStream.Pe ek().
http://support.softartisans.com/kbview_675.aspx

It's VB but you can do the same in C# to parse the Response.

http://developer.yahoo.com/dotnet/howto-xml_vb.html

You got any more questions about Web services, then you can post to
MS.Public.dotne t.framework,web services

Good luck

>
"Mr. Arnold" <MR. Ar****@Arnold.c om>, iletide sunu yazdi
news:eI******** ********@TK2MSF TNGP02.phx.gbl. ..
>>
"Sylvie" <ss*@sss.sswrot e in message
news:Oh******* *******@TK2MSFT NGP02.phx.gbl.. .
>>My Windows Application has two forms, one form contains a grid (lets say
Stock Listing), and the other is a form of one stock, contains some edit
boxes for one stock's fields..

Is it possible to run application remotely and retrieve grid and form
data in some way without accessing directly to database server?

Web Services is being used for this purpose I think,

A Web service can be used for this where you access a method or methods
on the Web service to send/receive data with an application, like a
Windows form, Web form, Console, or Windows Service application. Each
type of application would consume the Web service with the Web service
doing the back-end database processing.

Jan 19 '08 #4

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

Similar topics

1
3287
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not Web Forms) that serves as a thin client to some web services. In other words, the Windows Forms app will be installed on the client machines and that app will call web services that are deployed on my server.
3
6133
by: illegal.prime | last post by:
Hi all, I have a service that needs to start a regular windows application. I'm running the service as ServiceAccount.LocalSystem. But, when it starts the process (using Process.Start) the GUI for the application doesn't appear - however, I can see the process in the TaskManager. Now, feel free to mention that starting a regular windows application
2
508
by: shapper | last post by:
Hello, I usually develop Asp.Net 2.0 (With VB.NET or C#) web sites with SQL 2005 databases. A few of my web sites use online CMS with AJAX. I need to create a Windows Vista compatible application that includes the features I usually have in my CMS: 1. Send a retrieve content from the web site SQL 2005 database.
5
2287
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
This code works fine in Windows Application. In Windows Application, I am able to zip the image files properly and it totally contains 900MB My problem is the same code which I used in my Windows Application, does not work while I run it with Windows services. In my Windows application I am able to zip the whole 900Mb without any problems, but in my windows services I am not able to zip the whole 900Mb. In Windows Services it throws an...
2
4478
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as seperate process. If my windows application starts running,only if it completes fully, then my windows services should continue its execution. My main process is Windows service.
1
4842
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as seperate process. If my windows application starts running,only if it completes fully, then my windows services should continue its execution. My main process is Windows service.
5
3294
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
30201
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is a comprehensive list of all autostart locations for Windows OSes: NOTE : These are some abbreviations used in this list. Please note them carefully: HKCU = HKEY_CURRENT_USER HKLM = HKEY_LOCAL_MACHINE
0
8063
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
8498
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8341
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...
0
5476
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
3962
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
4025
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
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
1
1598
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1331
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.