473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1915
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.