Serviced Components & SOAP

G

Guest

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
http://localhost/<appname>/default.aspx.

However, I want to only display the WSDL link of one of the components. I
have tried using the PrivateComponent attribute and ComVisible attribute but
this has not worked. Is this even possible?

Thanks in advance,

Pete
 
M

Michael Nemtsev

Hello Pete,

Possible, only by removing interface's entries from the WSDL description

Google, I replied to similiar post several monthes ago

PW> I have an assembly with two serviced components. It has been
PW> registered using regsvcs.exe and is SOAP enabled. I can see a WSDL
PW> link for both components in my browser when I open it to
PW> http://localhost/<appname>/default.aspx.
PW>
PW> However, I want to only display the WSDL link of one of the
PW> components. I have tried using the PrivateComponent attribute and
PW> ComVisible attribute but this has not worked. Is this even
PW> possible?
PW>
PW> Thanks in advance,
PW>
PW> Pete
PW>
---
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
 
G

Guest

I saw that response. The WSDL is generated on the fly. There is no file to
alter. If there is no file, how can I remove entries? Perhaps I am missing
something.
 
G

Guest

Michael,

I removed the wellknown and activated elements in the web.config file. This
worked but it led me to another problem.

Let's say I have Class A and Class B, both of which are Serviced Components.
Now I create another Serviced component called API which returns an instance
of Class A or an instance of Class B. In the WSDL, I only want API to
appear. This is no problem. But the WSDL definition of API contains a list
of all the methods in Class A and Class B. I don't want to expose that
information.

I don't want to expose every method through WSDL but I want to be able to
use them internally and expose the class through an API class. I still have
found now way to do this. Any thoughts?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top