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 / February 2006

Tip: Looking for answers? Try searching our database.

Can a web service return a COM object?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Juan Dent - 27 Feb 2006 17:50 GMT
Hi,

I have a client application in unmanaged C++ that currenly interacts with a
COM object. Yet, I need this object to be returned by a Web Service and I was
wondering whether:
1) the COM object needs to be registered
2) aif there are any attributes that could identify the object returned by
the Web Service as being a particular ProgId or CLSID

Any ideas?
Signature

Thanks in advance,

Juan Dent, M.Sc.

Martin Kulov - 27 Feb 2006 23:51 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> 2) aif there are any attributes that could identify the object returned by
> the Web Service as being a particular ProgId or CLSID

Hi Juan,
you can not serialize COM object to client. Keep in mind that web services
transfer only xml content and there is no way a COM object be serialized to
xml and deserialized back on the client. Also you are actually transferring
data, not functionality.

HTH,

Signature

Martin Kulov
http://www.codeattest.com/blogs/martin

MCT
MCSD.NET Early Achiever

Steven Cheng[MSFT] - 28 Feb 2006 02:10 GMT
Thanks for Martin's input.

Hi Juan,

As Martin has said, XML Webservice is mainly focus on Data transfering, and
the transfered data objects are represented by plain XML. Also, most of the
data objects should be conforms to a certain XML Schema. As for COM object,
it is platform dependent and contains much internal data and structure
which is specific to the COM runtime, so it's hard to represent such
objects through plain XML content. If your application is going to
communicate through COM object between client  and server, you may consider
COM+. For webservice, it may be capable of transfering some lightwight data
such as the COM object's CLSID, remote COM server's name and address....

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Rate this thread:







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.