Discussion:
Calling Web Services from within COM+ Component
(too old to reply)
TMN
2006-03-16 03:28:29 UTC
Permalink
I have an appplication that uses Enterprise Services components built with
C#. The core app works fine, the components work as expected in COM+, etc.
However, I now need to have one of the components call out to a Web Service.
I've added a Web Reference to the component (which I think is part of the
problem - the reference is added to a newly created app.config file which I
don't think COM+ components use) After adding the reference and trying to
compile the component, I get the error message:

The type or namespace name '<Web Service Reference Name Here>' could not be
found (are you missing a using directive or an assembly reference?)

What is the proper means of calling a Web Service from within a COM+
component? We're using C# and .Net 2.0 in VS2005 as the basis for both the
COM+ components and the Web Services.
Andy Milligan [MSFT]
2006-03-16 19:52:33 UTC
Permalink
You should look at
http://blogs.msdn.com/florinlazar/archive/2003/12/04/41369.aspx for details
on how to use per application configuration files with COM+ components. I do
not expect that to fix your reference issue but this will be required for
proper execution.
--
Andy Milligan. Windows Communication Foundation Team.
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by TMN
I have an appplication that uses Enterprise Services components built with
C#. The core app works fine, the components work as expected in COM+, etc.
However, I now need to have one of the components call out to a Web Service.
I've added a Web Reference to the component (which I think is part of the
problem - the reference is added to a newly created app.config file which I
don't think COM+ components use) After adding the reference and trying to
The type or namespace name '<Web Service Reference Name Here>' could not be
found (are you missing a using directive or an assembly reference?)
What is the proper means of calling a Web Service from within a COM+
component? We're using C# and .Net 2.0 in VS2005 as the basis for both the
COM+ components and the Web Services.
TMN
2006-03-22 16:47:21 UTC
Permalink
Thanks - that helped with another COM-related issue we had, but I'm still
stuck trying to use the Web Reference in my COM+ code. I've added the Web
References (named them myRSSMessage and myRSSChannel) but I cannot use those
names in the auto-complete when writing the code. On compile I get

Error 8 The type or namespace name 'myRSSMessage' could not be found (are
you missing a using directive or an assembly reference?)

Is it even possible to call a Web Service from COM+???
Post by Andy Milligan [MSFT]
You should look at
http://blogs.msdn.com/florinlazar/archive/2003/12/04/41369.aspx for
details on how to use per application configuration files with COM+
components. I do not expect that to fix your reference issue but this will
be required for proper execution.
--
Andy Milligan. Windows Communication Foundation Team.
This posting is provided "AS IS" with no warranties, and confers no rights.
Post by TMN
I have an appplication that uses Enterprise Services components built with
C#. The core app works fine, the components work as expected in COM+, etc.
However, I now need to have one of the components call out to a Web Service.
I've added a Web Reference to the component (which I think is part of the
problem - the reference is added to a newly created app.config file which I
don't think COM+ components use) After adding the reference and trying to
The type or namespace name '<Web Service Reference Name Here>' could not be
found (are you missing a using directive or an assembly reference?)
What is the proper means of calling a Web Service from within a COM+
component? We're using C# and .Net 2.0 in VS2005 as the basis for both the
COM+ components and the Web Services.
Loading...