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 / June 2004

Tip: Looking for answers? Try searching our database.

How to make a webservice available to majority of platforms?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ralph - 17 Jun 2004 19:57 GMT
I'm new to webservices but not .Net and was wondering if anyone could
give suggestions on how to build a service that would be available to
ColdFusion clients (internal) as well as unknowns (internet).

I think in most cases my problem is understanding how best to pass
"complex dataypes" back.  Say I have a service method that returns
many company names and addresses (several rows with several fields)
based upon a passed in value. If I was building it all in .Net I would
just return something like a dataset or datatable but dealing with
cold fusion and or other platforms I'm not sure how it would be best
to pass that information back.  I thought I read it was not good to
pass back a dataset/table because the other systems might not be able
to reconcile the datatype.  If someone could give me some tips I would
greatly appreciate it.

Thanks
Jan Tielens - 18 Jun 2004 06:36 GMT
If you're going for interop., stay away from DataSets and DataTables (like
you mentioned). In most cases custom classes are used instead. For example
suppose you have a Customer table, you'd have to create a Customer Class:

public class Customer
{
   public string Name;
   public string Telephone;
}

Your webmethod would look like this:
public Customer[] GetCustomers()
{
}

Of course you can choose to implement properties instead of fields.
Signature

Greetz
Jan
________________
Read my weblog: http://weblogs.asp.net/jan

> I'm new to webservices but not .Net and was wondering if anyone could
> give suggestions on how to build a service that would be available to
[quoted text clipped - 12 lines]
>
> Thanks

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.