Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Best Way to Retrieve XML From Remote Class?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Bayers - 16 Nov 2004 19:22 GMT
What's the best way to retrive xml from a remote class?

Here's my situation.  All the servers are running Win2003.  There's a
web server on Public.  There's a sql server on Campus.  The only access
we have to Campus is through Secure.

-----------------
| Campus        |
-----------------
       |
-----------------
| Secure        |
-----------------
       |
-----------------
| Public        |
-----------------

Somebody pointed me to a msdn article

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dnnetsec/html/SecNetHT15.asp

And I've got that up and running.  Right now, I can access the remote
class on Secure through a web service running on Secure.  Our net nazi
won't let us put a web server on Secure.

What we want is the user to enter in a few variables on a form on
Public's webserver, send the variables to Secure, have the remote object
on Secure query the database on Campus and then send the data back to
the Public.

What's the best way?  Can I pass a dataset?
Ken Kolda - 16 Nov 2004 19:47 GMT
Is it a web service that's running on Secure or a Windows Service that's
running and hosting a remoted object? A .NET web service generally runs
under IIS but you indicated that Secure doesn't have a web server (plus, the
article you posted is about creating a Windows Service, not a Web Service).

If you're using a Windows Service to host an object using remoting, then
passing a DataSet from the service to the client is certainly acceptable.
Your remote object would look something like:

public class RemoteObject : MarshalByRefObject
{
   public DataSet GetSomeData(int someParam, string anotherParam)
   {
       // Get the data from the database and return the data set
   }
}

The main issue you have to watch out for is that the DataSet is fairly
inefficient when it comes to being serialized/deserialized, so if you're
passing large amounts of data or making lots of calls, you may want to
consider either an alternate representation or one of the pieces of code out
there to improve the performance of the DataSet:

http://objectsharp.com/Blogs/datasetfaq/archive/2004/06/10/614.aspx

Ken

> What's the best way to retrive xml from a remote class?
>
[quoted text clipped - 29 lines]
>
> What's the best way?  Can I pass a dataset?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.