Passing XML from .Net 2.0 WebService to COM on another Server
by Häussler Rainer on 11/5/2007 8:54:00 AM
Hi to All!
I'm complete new to .Net and I have the following problem:
I have to write a .Net WebService in C# which has to pass a XML to a
Com-component to another Server. The WebService
runs on a Windows2003 Server and the COM-component runs on a Windows2000
Server.
How can I connect with this COM?
Can someone help me, please???
greets,
Rainer
Re: Passing XML from .Net 2.0 WebService to COM on another Server
by John Saunders [MVP] on 11/7/2007 3:45:00 AM
"Häussler Rainer" <rainer.haeussler@villach.at> wrote in message
news:%2320rvi3HIHA.5360@TK2MSFTNGP03.phx.gbl...
> Hi to All!
>
> I'm complete new to .Net and I have the following problem:
> I have to write a .Net WebService in C# which has to pass a XML to a
> Com-component to another Server. The WebService
> runs on a Windows2003 Server and the COM-component runs on a Windows2000
> Server.
>
> How can I connect with this COM?
You would connect to the COM component with a web service the same way you'd
connect to it from any other application.
And, if you don't know how to do that, then you should probably start with
http://msdn2.microsoft.com/en-us/library/aa139672.aspx.
Once you've learned how to do what you need using a "normal" application,
there's one last little thing to realize: web services handle each request
on a different thread. Your COM component may not be written to handle this.
If it doesn't, you'll need to use one of several methods to get around this
restriction.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer