PC Review


Reply
Thread Tools Rate Thread

c# Enterprise Services

 
 
chakree.vsk@gmail.com
Guest
Posts: n/a
 
      16th Jan 2006
Hi All,

I want to invoke a Serviced Component (COM+) lying on a remote machine
from my Web application without manually installing a proxy for the
remote com+ component.

Please suggest the options available for me.

Regds
Chakree

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      16th Jan 2006
Chakree,

Hmm, that's a tough one. If you designed the component properly
(separating interface definitions from implementation), then you ^might^ be
able to make a call to the static GetTypeFromProgId method on the Type
class, passing the program id of the component and the name of the remote
machine. Then, you can pass that type to the static CreateInstance method
on the Activator class and cast the return result to the interface type.

However, I don't know that this will work. You will have to install the
proxy, most likely, in order to make this work.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> I want to invoke a Serviced Component (COM+) lying on a remote machine
> from my Web application without manually installing a proxy for the
> remote com+ component.
>
> Please suggest the options available for me.
>
> Regds
> Chakree
>



 
Reply With Quote
 
Michael Nemtsev
Guest
Posts: n/a
 
      16th Jan 2006
Hello Nicholas Paldino [.NET/C# MVP],

What if to use SOAP Services? U need not to use proxy

N> Hmm, that's a tough one. If you designed the component properly
N> (separating interface definitions from implementation), then you
N> ^might^ be able to make a call to the static GetTypeFromProgId method
N> on the Type class, passing the program id of the component and the
N> name of the remote machine. Then, you can pass that type to the
N> static CreateInstance method on the Activator class and cast the
N> return result to the interface type.
N>
N> However, I don't know that this will work. You will have to
N> install the proxy, most likely, in order to make this work.
N>
N> Hope this helps.
>> I want to invoke a Serviced Component (COM+) lying on a remote
>> machine from my Web application without manually installing a proxy
>> for the remote com+ component.
>>
>> Please suggest the options available for me.
>>
>> Regds
>> Chakree

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch


 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      16th Jan 2006

"Michael Nemtsev" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
| Hello Nicholas Paldino [.NET/C# MVP],
|
| What if to use SOAP Services? U need not to use proxy
|
| N> Hmm, that's a tough one. If you designed the component properly
| N> (separating interface definitions from implementation), then you
| N> ^might^ be able to make a call to the static GetTypeFromProgId method
| N> on the Type class, passing the program id of the component and the
| N> name of the remote machine. Then, you can pass that type to the
| N> static CreateInstance method on the Activator class and cast the
| N> return result to the interface type.
| N>
| N> However, I don't know that this will work. You will have to
| N> install the proxy, most likely, in order to make this work.
| N>
| N> Hope this helps.
| >> I want to invoke a Serviced Component (COM+) lying on a remote
| >> machine from my Web application without manually installing a proxy
| >> for the remote com+ component.
| >>
| >> Please suggest the options available for me.
| >>
| >> Regds
| >> Chakree
| ---
| WBR,
| Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour
|
| "At times one remains faithful to a cause only because its opponents do
not
| cease to be insipid." (c) Friedrich Nietzsche
|
|

Yes, you'll always need a proxy, you need the interface descriptions at the
client side. For COM+ services you need to export the service proxy and
include it as part of your deployment.

Willy.



 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      16th Jan 2006
Michael,

You don't need a COM+ proxy, but you do need a SOAP proxy, of course.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Michael Nemtsev" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello Nicholas Paldino [.NET/C# MVP],
>
> What if to use SOAP Services? U need not to use proxy
>
> N> Hmm, that's a tough one. If you designed the component properly
> N> (separating interface definitions from implementation), then you
> N> ^might^ be able to make a call to the static GetTypeFromProgId method
> N> on the Type class, passing the program id of the component and the
> N> name of the remote machine. Then, you can pass that type to the
> N> static CreateInstance method on the Activator class and cast the
> N> return result to the interface type.
> N> N> However, I don't know that this will work. You will have to
> N> install the proxy, most likely, in order to make this work.
> N> N> Hope this helps.
>>> I want to invoke a Serviced Component (COM+) lying on a remote
>>> machine from my Web application without manually installing a proxy
>>> for the remote com+ component.
>>>
>>> Please suggest the options available for me.
>>>
>>> Regds
>>> Chakree

> ---
> WBR,
> Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour
>
> "At times one remains faithful to a cause only because its opponents do
> not cease to be insipid." (c) Friedrich Nietzsche
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Enterprise Library the successor to Enterprise Services? =?Utf-8?B?QmVu?= Microsoft C# .NET 4 5th Sep 2007 11:41 PM
Enterprise Services in ASP.NET the4man Microsoft ASP .NET 1 3rd May 2006 08:31 PM
using enterprise services in asp.net z f Microsoft ADO .NET 0 14th Sep 2005 06:50 PM
Enterprise Services - ASP.Net Mythran Microsoft ASP .NET 2 29th Mar 2004 09:00 PM
.NET Enterprise Services using C# wycklk Microsoft Dot NET 0 8th Jul 2003 10:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 AM.