473,748 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customise Generated File "Reference. cs"

We have the following setup. A VB6 application calls a .NET COM component
that acts mainly as a forwarding system calling methods on a web service.

When you open up the VB6 object browser and look at the methods exposed by
the .NET COM Component, you will also see the public methods exposed by the
WebService. I do not want the VB6 application to know about the WebService.

If I were to define the WebService public methods as ComVisible(fals e), then
they would not be exposed to the .NET COM Component. I can however, add this
attribute to the Web References\Refe rence.cs file present in the .NET COM
Project.

Is there a way to have the calling of "Update Web Reference" and "Add Web
Reference" to automatically add the ComVisible(fals e) attribute to each class
in the Reference.cs file generated?
Nov 16 '05 #1
3 2539
In article <90************ *************** *******@microso ft.com>,
Ri*********@dis cussions.micros oft.com says...
We have the following setup. A VB6 application calls a .NET COM component
that acts mainly as a forwarding system calling methods on a web service.

When you open up the VB6 object browser and look at the methods exposed by
the .NET COM Component, you will also see the public methods exposed by the
WebService. I do not want the VB6 application to know about the WebService.


Is the webservice itself the .NET COM component? Or do you have a .NET
component that calls a .NET webservice and that .NET component is the
one exposed to COM?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 17 '05 #2
Hi ya,

We have a .NET component that calls a .NET webservice and that .NET
component is the one exposed to COM?
"Patrick Steele [MVP]" wrote:
In article <90************ *************** *******@microso ft.com>,
Ri*********@dis cussions.micros oft.com says...
We have the following setup. A VB6 application calls a .NET COM component
that acts mainly as a forwarding system calling methods on a web service.

When you open up the VB6 object browser and look at the methods exposed by
the .NET COM Component, you will also see the public methods exposed by the
WebService. I do not want the VB6 application to know about the WebService.


Is the webservice itself the .NET COM component? Or do you have a .NET
component that calls a .NET webservice and that .NET component is the
one exposed to COM?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele

Nov 17 '05 #3
In article <AE************ *************** *******@microso ft.com>,
Ri*********@dis cussions.micros oft.com says...
Hi ya,

We have a .NET component that calls a .NET webservice and that .NET
component is the one exposed to COM?


You can control what methods get exported to COM through interfaces.
See this article for a detailed explanation of how to get smooth interop
between COM and your .NET objects:

http://www.15seconds.com/issue/040721.htm

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 17 '05 #4

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

Similar topics

5
2369
by: Lionel | last post by:
Hello all, two quick questions: One: What is the difference between adding a reference to something in my C# project so I can use it (for example, adding a reference to "Microsft.DirectX" when you need to access DirectX functionality in your program) and the "using ..." directive? Two: I've only seen (in books) how to add references to C# projects via the dropdown menus of the VS.Net 2003 IDE...how do I add references to my C# app
5
2199
by: Trevor Andrew | last post by:
Hi There I am having some difficulty referencing Web Services. I am using Visual Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET Windows Application that consumes an external Web Service When I endeavour to use the "Add Web Reference" and select a URL which I know returns a WSDL file, I get prompted with the "Open, Save, Cancel or More Info" dialog box that I am familiar with in IE. If I select Open, it opens it...
5
2956
by: Matthew.DelVecchio | last post by:
hello, i am working w/ a partner company's webservice, which they wrote in java. using a provided webservice.wsdl file, i am able to compile it into a proxy class, webservice.dll. i can add this assembly reference to my test ASP.NET C# test project and use it no problem. problem -- our production ASP.NET project uses strongly-named
5
10336
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use "Add Web Reference" for the same service the same function works appropriately. Here is the client proxy generated from WSDL.exe <System.Web.Services.Protocols.SoapDocumentMethodAttribute("capeconnect:AppSec:AppSecPortType#getApplicationUsers",
1
3002
by: Brian Begy | last post by:
Anyone seen this? "Type mismatch could be due to the mixing of a file reference with a project reference " We have solution we are trying to upgrade to VS 2005. We have about 10 projects in the solution, and cross references are rife. None of the projects refer to each other through file references, yet we receive this error message on build. Any suggestions?
3
4411
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here really understand how this could be an issue. The assemblies that the system is complaining about are ones that we build here and we're not changing version numbers on anything. The errors come and go with no apparent rhyme or reason. We do not...
6
6240
by: mihailsmilev | last post by:
Hello, let me first describe the situation: I am developing an application using Qt Designer 3.3.5 on OpenSuSE Linux for my mp3 player. So I need to get the id3 tags from the mp3 files, and I've downloaded the sources of id3lib. I've included the headers (there are no other files) in my project in Qt designer, then created an object from my files. When starting the make command, it compiles normally all the headers (although giving some...
1
1687
by: Peter Hann | last post by:
What si the easiest way to switch from the source of a Form to its corrsponding Design and vice versa back ? Currently I always click on the file in the Solutions explorer. Is there way way with HotKeys ? Peter
2
1674
by: snaeher | last post by:
Is there a method I can use so functions don't interpret "\n" as a carriage return in file references? EXAMPLE Function call: imagecreatefromjpeg("C:\Documents and Settings\nxxxx\Desktop\button.jpg"); Results:
0
9562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9386
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6799
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6078
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
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 we have to send another system

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.