Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2005, 03:39 AM
Registered User
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Web Services

I am using web services for my application using asp.net. For my information, if I apply the web services for my application, then, I only can access the database using Port 80.
So, my question now is:
if only port 80 will be opened all the time, then, am I able to use SqlCommand in my application?Am I able to use SQL Statement directly in my application?

Kindly help will be much more appreaciate.

Thanks.

Regards,
YuenYong

 
Old July 21st, 2005, 07:20 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can access web services thru any port. The port access is a setting in IIS and your network hardware. You configure IIS to expose a "web site" on the ports you wish to use (the default being port 80). As long as you have the web service in a application directory (virtual or not) within that IIS "web site" node, you can access the web service.

The application runs within the IIS process. As long as you can see the SQL Server from that web server machine (inside your network) then you can use it. The public HTTP port you use has nothing to do with your access to SQL Server.

-Peter
 
Old July 22nd, 2005, 12:50 AM
Registered User
 
Join Date: Jul 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.

I have another question to post here.
Are there any other ways to create datatable object inside the dataset object except using the SqlDataAdapter? Coz, I need to create DataRelation between the Dataset.

Any help will be most appreciate.

Regards,
YuenYong

 
Old July 30th, 2005, 07:48 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can create many DataTables inside a single dataset. DataSet.Add()

Then you can create DataRelation instances that relate tables together so you can get associated rows.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
web services tanzi C# 1 September 23rd, 2007 02:59 AM
Web Services BriTheProblem Book: Wrox's Visual C# 2005 Express Edition Starter Kit 1 May 11th, 2006 03:11 AM
Web Services Error (Ch18) - No Web Disc. Info. ElPato BOOK: Beginning ASP.NET 1.0 2 April 13th, 2005 03:27 PM
Web Services qadeerahmad .NET Web Services 1 August 7th, 2004 11:46 AM
Web Services qadeerahmad Forum and Wrox.com Feedback 3 August 7th, 2004 01:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.