Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Fail to generate proxy .cs file using WSDL tool

Reply
Thread Tools

Fail to generate proxy .cs file using WSDL tool

 
 
Vladimir
Guest
Posts: n/a
 
      09-16-2003
I am hosting remoting object under IIS. When I try to
generate proxy *.cs using WSDL.exe tool it fails. (see
error message below).
I suspect this happens because my Remoting Object inherits
from an interface that is defined in different dll.
Here is the code:
Interface dll - TestInterfaces.dll
namespace TestInterfaces
{
public enum MyId
{
One,
Two
}
public interface MyInterface
{
MyId GetId();
}
}

My remote object - TestInterfaceRemObj.dll
using System;
using System.Runtime.Remoting;
using TestInterfaces;

namespace TestInterfaceRemObj
{
public class MyRemObj : System.MarshalByRefObject,
MyInterface
{
public MyRemObj(){}
public TestInterfaces.MyId GetId()
{
return TestInterfaces.MyId.One;
}

}
}

Part of web config:
<system.runtime.remoting>
<application>
<service>
<wellknown
type="TestInterfaceRemObj.MyRemObj,
TestInterfaceRemObj"
mode="Singleton"
objectUri="MyRemObj.rem"
/>
</service>
<channels>
<channel ref="http"/>
</channels>
</application>
</system.runtime.remoting>

WSDL Error message:
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.0.3705.0]
Copyright (C) Microsoft Corporation 1998-2001. All rights
reserved.

Error: Cannot find definition for
http://schemas.microsoft.com/clr/nsassem/TestI
nterfaces/TestInterfaces%2C%20Version%3D1.0.1354.23011%2C%
20Culture%3Dneutral%2C
%20PublicKeyToken%3Dnull:MyInterfacePortType. Service
Description with namespac
e
http://schemas.microsoft.com/clr/nsa...Interfaces/Tes
tInterfaces%2C%20Ve
rsion%3D1.0.1354.23011%2C%20Culture%3Dneutral%2C%
20PublicKeyToken%3Dnull is miss
ing.
Parameter name: name

I would appreciate any help,
Vladimir
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: VB.net version of proxy class fail compilation. with wsdl.exe. Help addywchi@gmail.com ASP .Net Web Services 0 08-10-2012 01:12 AM
Generate verbose WSDL from WSDL with imports jrm252@yahoo.com ASP .Net Web Services 0 04-26-2006 08:50 PM
Help :Use of WSDL to generate proxy class ?? serge calderara ASP .Net Web Services 0 11-09-2005 09:38 AM
wsdl.exe fails with WebMethods generated wsdl file mrnu ASP .Net Web Services 0 06-07-2004 04:51 PM
WSDL file produces useless class when imported with WSDL.exe RH ASP .Net Web Services 1 05-27-2004 09:40 PM



Advertisments