473,326 Members | 2,680 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,326 software developers and data experts.

PROBLEM: .NET webservice proxy class as COM

Hi,
I have a problem with a web service proxy written in .NET and used
from VS6's C++ as COM object.
This proxy works great when used from a .NET application.

It does not seem to work when used as COM object for C++ application.
What happens is this: I've created a class with the following
attribute [ClassInterface(ClassInterfaceType.AutoDual)] that inherites
from this proxy class.
This class is regisered using regasm.exe and installed using
gacutil.exe.

Afterwards, I tried to use it from C++ application using the #import
macro.
Methods that access the web service fail with a timeout exception,
methods that do not access the webservice work great.

Any ideas ?

Thanks,
Nov 21 '05 #1
1 1571
Hi,
Did you add the GuidAttribute to your class? Did you set the project
option "auto generate COM interop assemblies" and then register the type
libs as well?

Regards

Dan Rogers
Microsoft Corporation
--------------------
From: sm*******@yahoo.com (Smugsboy)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: PROBLEM: .NET webservice proxy class as COM
Date: 28 Nov 2004 05:02:23 -0800
Organization: http://groups.google.com
Lines: 20
Message-ID: <ac**************************@posting.google.com >
NNTP-Posting-Host: 192.198.152.97
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1101646943 9783 127.0.0.1 (28 Nov 2004 13:02:23
GMT)
X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Sun, 28 Nov 2004 13:02:23 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7666
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Hi,
I have a problem with a web service proxy written in .NET and used
from VS6's C++ as COM object.
This proxy works great when used from a .NET application.

It does not seem to work when used as COM object for C++ application.
What happens is this: I've created a class with the following
attribute [ClassInterface(ClassInterfaceType.AutoDual)] that inherites
from this proxy class.
This class is regisered using regasm.exe and installed using
gacutil.exe.

Afterwards, I tried to use it from C++ application using the #import
macro.
Methods that access the web service fail with a timeout exception,
methods that do not access the webservice work great.

Any ideas ?

Thanks,

Nov 21 '05 #2

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

Similar topics

4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
3
by: Ohad Young | last post by:
Hi, I have a webservice method that returns an instance of a custom class I created (e.g., bank account). The class definition in the webservice contains properties, overrides Object.ToString...
1
by: Steve Lutz | last post by:
I have written a web service to provide some back-end functionality to a Web Site. The web service returns lists of items. If I use the webservice via a browser, it works fine and returns the...
4
by: MacLanca | last post by:
Hi, I've done the HelloWorld WebService, installed in a WebServer (INTERNET) When I call it with Windows App it works, if I use a webform it doesn’t (INTERNET) Both of them work in the INTRANET...
8
by: andyjgw | last post by:
Hi all, hope someone can help here, I'm really stuck. Reading and googling like mad, to no avail so far... Basically, my problem *seems* to boil down to type conversion: Here's a sample web...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.