PROBLEM: .NET webservice proxy class as COM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Smugsboy

    #1

    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( ClassInterfaceT ype.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,
  • Dan Rogers

    #2
    RE: PROBLEM: .NET webservice proxy class as COM

    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: smugs_boy@yahoo .com (Smugsboy)
    Newsgroups: microsoft.publi c.dotnet.framew ork.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: <ac4b82a7.04112 80502.767b1589@ 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: groups-abuse@google.co m
    NNTP-Posting-Date: Sun, 28 Nov 2004 13:02:23 +0000 (UTC)
    Path:
    cpmsftngxa10.ph x.gbl!TK2MSFTNG XA03.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
    ul.t-online.de!t-online.de!news. glorb.com!postn ews.google.com! not-for-mail
    Xref: cpmsftngxa10.ph x.gbl
    microsoft.publi c.dotnet.framew ork.webservices :7666
    X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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( ClassInterfaceT ype.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,

    Comment

    Working...