473,471 Members | 4,637 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Serviced Components & SOAP

Hello,

I am creating an app using Serviced Components and I am exposing them using
the Enterprise Services SOAP service. Here is my problem:

I have one COM+ application with several serviced components. When I enable
the SOAP service, I can access a WSDL link to every component in the
application. What I would like to do is the following: Have a class A that
is exposed through the SOAP service that provides getters for instances of
classes B & C. However I do not want B & C to be directly accessed via the
SOAP Service (i.e. I want a link for A but not for B & C). Class A would be
a sort of API for the application.

So far, I've been playing with Private Component and ComVisibility and have
had no luck. Any thoughts?

Thanks in advance,

Pete
May 30 '06 #1
4 1919
Take into account that [PrivateComponent] attribute is feature of COM+ 1.5
that are included in Windows XP/2003 and above.

[PrivateComponent] mark component to be used only from within the
application, but not from the outside. In you case if you mark components B
and C as private only component A could use them.

Could you describe you problem wide?
Hello,

I am creating an app using Serviced Components and I am exposing them using
the Enterprise Services SOAP service. Here is my problem:

I have one COM+ application with several serviced components. When I enable
the SOAP service, I can access a WSDL link to every component in the
application. What I would like to do is the following: Have a class A that
is exposed through the SOAP service that provides getters for instances of
classes B & C. However I do not want B & C to be directly accessed via the
SOAP Service (i.e. I want a link for A but not for B & C). Class A would be
a sort of API for the application.

So far, I've been playing with Private Component and ComVisibility and have
had no luck. Any thoughts?


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

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 30 '06 #2
Hello Michael,

Thank you for your response. Allow me to try and further explain my question.
Say I have three classes A, B and C. All three are serviced components.
Class A looks something like this:

namespace Demo
{
public class A : ServicedComponent
{
public A(){}

public B GetB()
{
return new B();
}

public C GetC()
{
return new C();
}
}
}

In my AssemblyInfo.cs file I have the following line (among others of course):

[assembly: ApplicationActivation(ActivationOption.Library, SoapVRoot="Demo")]

Once I build the project, I then placed the assembly which contains all
three classes into the global assembly cache and registered the dll using
regsvcs.exe.

At this point, I have a new COM+ Application called "Demo" which contains
three components (A, B and C).

Because of the SOAP attribute, I can open my browser to
http://<computername>/Demo/default.aspx and see three links:

Demo.A.soap?WSDL
Demo.B.soap?WSDL
Demo.C.soap?WSDL

What I would like is to only see Demo.A.soap?WSDL. However, I have attemped
to make B and C not visible using the ComVisible attribute without any
success. I have also tried making B and C PrivateComponents but the links
still appear. Any thoughts?

Thank you again for your reply.

Pete
"Michael Nemtsev" wrote:
Take into account that [PrivateComponent] attribute is feature of COM+ 1.5
that are included in Windows XP/2003 and above.

[PrivateComponent] mark component to be used only from within the
application, but not from the outside. In you case if you mark components B
and C as private only component A could use them.

Could you describe you problem wide?
Hello,

I am creating an app using Serviced Components and I am exposing them using
the Enterprise Services SOAP service. Here is my problem:

I have one COM+ application with several serviced components. When I enable
the SOAP service, I can access a WSDL link to every component in the
application. What I would like to do is the following: Have a class A that
is exposed through the SOAP service that provides getters for instances of
classes B & C. However I do not want B & C to be directly accessed via the
SOAP Service (i.e. I want a link for A but not for B & C). Class A would be
a sort of API for the application.

So far, I've been playing with Private Component and ComVisibility and have
had no luck. Any thoughts?


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

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

May 30 '06 #3
Hello Pete,

I'm afraid that isn't possible, there is no attribute to avoid generating
description for the private component. Although you component is private
it visible through wsdl, but u can't create instance if you click on this
in IE

To hide it, you need manually remove 2 lines in web.config in the virtualRoot
of you component C:\WINDOWS\system32\com\SOAPVRoots\<name> and remove <wellknown>
and <activated> attribute for that class that marked Private
PW> Hello Michael,
PW>
PW> Thank you for your response. Allow me to try and further explain my
PW> question. Say I have three classes A, B and C. All three are
PW> serviced components. Class A looks something like this:
PW>
PW> namespace Demo
PW> {
PW> public class A : ServicedComponent
PW> {
PW> public A(){}
PW> public B GetB()
PW> {
PW> return new B();
PW> }
PW> public C GetC()
PW> {
PW> return new C();
PW> }
PW> }
PW> }
PW> In my AssemblyInfo.cs file I have the following line (among others
PW> of course):
PW>
PW> [assembly: ApplicationActivation(ActivationOption.Library,
PW> SoapVRoot="Demo")]
PW>
PW> Once I build the project, I then placed the assembly which contains
PW> all three classes into the global assembly cache and registered the
PW> dll using regsvcs.exe.
PW>
PW> At this point, I have a new COM+ Application called "Demo" which
PW> contains three components (A, B and C).
PW>
PW> Because of the SOAP attribute, I can open my browser to
PW> http://<computername>/Demo/default.aspx and see three links:
PW>
PW> Demo.A.soap?WSDL
PW> Demo.B.soap?WSDL
PW> Demo.C.soap?WSDL
PW> What I would like is to only see Demo.A.soap?WSDL. However, I have
PW> attemped to make B and C not visible using the ComVisible attribute
PW> without any success. I have also tried making B and C
PW> PrivateComponents but the links still appear. Any thoughts?
PW>
PW> Thank you again for your reply.
PW>
PW> Pete
PW>
PW> "Michael Nemtsev" wrote:
PW>
Take into account that [PrivateComponent] attribute is feature of
COM+ 1.5 that are included in Windows XP/2003 and above.

[PrivateComponent] mark component to be used only from within the
application, but not from the outside. In you case if you mark
components B and C as private only component A could use them.

Could you describe you problem wide?
Hello,

I am creating an app using Serviced Components and I am exposing
them using the Enterprise Services SOAP service. Here is my problem:

I have one COM+ application with several serviced components. When I
enable the SOAP service, I can access a WSDL link to every component
in the application. What I would like to do is the following: Have
a class A that is exposed through the SOAP service that provides
getters for instances of classes B & C. However I do not want B & C
to be directly accessed via the SOAP Service (i.e. I want a link
for A but not for B & C). Class A would be a sort of API for the
application.

So far, I've been playing with Private Component and ComVisibility
and have had no luck. Any thoughts?

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

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

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

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
May 30 '06 #4
Hi Michael,

Hmm, oh well. Thanks anyways. If you have an opportunity, would you mind
looking at another post I placed today called "XSD import using WSDL.exe"
(link below)? If not, thanks for your reply.

Pete

http://msdn.microsoft.com/newsgroups...c-8227fcca3feb
"Michael Nemtsev" wrote:
Hello Pete,

I'm afraid that isn't possible, there is no attribute to avoid generating
description for the private component. Although you component is private
it visible through wsdl, but u can't create instance if you click on this
in IE

To hide it, you need manually remove 2 lines in web.config in the virtualRoot
of you component C:\WINDOWS\system32\com\SOAPVRoots\<name> and remove <wellknown>
and <activated> attribute for that class that marked Private
PW> Hello Michael,
PW>
PW> Thank you for your response. Allow me to try and further explain my
PW> question. Say I have three classes A, B and C. All three are
PW> serviced components. Class A looks something like this:
PW>
PW> namespace Demo
PW> {
PW> public class A : ServicedComponent
PW> {
PW> public A(){}
PW> public B GetB()
PW> {
PW> return new B();
PW> }
PW> public C GetC()
PW> {
PW> return new C();
PW> }
PW> }
PW> }
PW> In my AssemblyInfo.cs file I have the following line (among others
PW> of course):
PW>
PW> [assembly: ApplicationActivation(ActivationOption.Library,
PW> SoapVRoot="Demo")]
PW>
PW> Once I build the project, I then placed the assembly which contains
PW> all three classes into the global assembly cache and registered the
PW> dll using regsvcs.exe.
PW>
PW> At this point, I have a new COM+ Application called "Demo" which
PW> contains three components (A, B and C).
PW>
PW> Because of the SOAP attribute, I can open my browser to
PW> http://<computername>/Demo/default.aspx and see three links:
PW>
PW> Demo.A.soap?WSDL
PW> Demo.B.soap?WSDL
PW> Demo.C.soap?WSDL
PW> What I would like is to only see Demo.A.soap?WSDL. However, I have
PW> attemped to make B and C not visible using the ComVisible attribute
PW> without any success. I have also tried making B and C
PW> PrivateComponents but the links still appear. Any thoughts?
PW>
PW> Thank you again for your reply.
PW>
PW> Pete
PW>
PW> "Michael Nemtsev" wrote:
PW>
Take into account that [PrivateComponent] attribute is feature of
COM+ 1.5 that are included in Windows XP/2003 and above.

[PrivateComponent] mark component to be used only from within the
application, but not from the outside. In you case if you mark
components B and C as private only component A could use them.

Could you describe you problem wide?

Hello,

I am creating an app using Serviced Components and I am exposing
them using the Enterprise Services SOAP service. Here is my problem:

I have one COM+ application with several serviced components. When I
enable the SOAP service, I can access a WSDL link to every component
in the application. What I would like to do is the following: Have
a class A that is exposed through the SOAP service that provides
getters for instances of classes B & C. However I do not want B & C
to be directly accessed via the SOAP Service (i.e. I want a link
for A but not for B & C). Class A would be a sort of API for the
application.

So far, I've been playing with Private Component and ComVisibility
and have had no luck. Any thoughts?

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

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

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

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

May 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert | last post by:
We have several serviced components written in .NET 1.1. Using Visual Studio, we have an installer project that creates an installer for them. The components are installed properly into the GAC...
3
by: Vai2000 | last post by:
Hi all, Have few serviced components. Everytime there is some changes I have to redeploy them. I was thinking of making those settings changes in an external config file (xml) in that case how do I...
2
by: Stan | last post by:
I wasn't sure what would be the best ng to post it. We have ASP.NET app that uses serviced component to perform all database writes and updates (there are separate components sitting on the web...
2
by: Ansari | last post by:
hi all, I want to use serviced component in ASP.NET any walkthrough or link to a resource. I have tried a lot but serviced component could be initialized in ASP.NET page. However I can...
4
by: Praveen Chandra | last post by:
Hi, I just wanted to put down the issue with more detailed information so that you can help us get to the right Microsoft resource for a solution! Here is the problem description... Our...
1
by: Pete Wittig | last post by:
Hi, I am trying to create a Setup and Deployment project for a Serviced Component. In my solution I have two projects. The first is the class library that contains my serviced component as well...
3
by: Pete Wittig | last post by:
Hi, I have an assembly with two serviced components. It has been registered using regsvcs.exe and is SOAP enabled. I can see a WSDL link for both components in my browser when I open it to...
2
by: =?Utf-8?B?QkY=?= | last post by:
I am currently working on moving our business objects into COM+ serviced components. But in the process, there are too many changes such ComVisible and serviced component does not support...
0
by: bharathreddy | last post by:
In .Net COM+ components are referred to as serviced components, Namespace: System.EnterpriseServices; Advantage of Serviced Components: object pooling, database connection pooling,
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.