473,385 Members | 2,005 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,385 software developers and data experts.

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 7027

"Sylvie" <ss*@sss.sswrote in message
news:Oh**************@TK2MSFTNGP02.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.com>, iletide sunu yazdi
news:eI****************@TK2MSFTNGP02.phx.gbl...
>
"Sylvie" <ss*@sss.sswrote in message
news:Oh**************@TK2MSFTNGP02.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.sswrote in message
news:uC**************@TK2MSFTNGP02.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.Peek().
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.dotnet.framework,webservices

Good luck

>
"Mr. Arnold" <MR. Ar****@Arnold.com>, iletide sunu yazdi
news:eI****************@TK2MSFTNGP02.phx.gbl...
>>
"Sylvie" <ss*@sss.sswrote in message
news:Oh**************@TK2MSFTNGP02.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
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...
3
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...
2
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...
5
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...
2
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...
1
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...
5
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?...
0
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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...

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.