Generate managed C++ proxy using wsdl.exe
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.sdk.

Post a new message to this list...

Andy
I know that this is possible becuase you can do it through the VS 2003 ide,
using add web reference and then update web reference.
However need to do it from the command line as part of a build process and
try as I might I can not find the information on how to do this.

Closest I can get is wsdl.exe help:

/language:<language>
The language to use for the generated proxy class. Choose from 'CS',
'VB', 'JS', 'VJS' or provide a fully-qualified name for a class
implementing System.CodeDom.Compiler.CodeDomProvider. The default is
'CS'
(CSharp). Short form is '/l:'.

OK so I need to specifiy a fully-qualified name for a class implementing
System.CodeDom.Compiler.CodeDomProvider that will generate managed C++ for
me.
Obviously this class is bundled with VS2003 because when I do "Update Web
Reference" wsdl.exe is called (I can see that form task manager) and it
generates a managed C++ proxy for me. Can someone please tell me the name
of that class? Or more spefically precisely what I need to type on the
command line of wsdl.exe for it to generate the proxy that I need? Or point
me to the relevant bit of MSDN that tells me what I need to know about
this - I have searched - believe me.

TIA,

Andy

Reply to this message...
 
    
Andy
Well I got the answer that I was looking for from elsewhere. However I
thought that I would post it here in case anyone else is having the same
problem.
Apparently the WSDL command line should look like this ...

wsdl
/l:Microsoft.MCpp.MCppCodeProvider,MCppCodeDomProvider,Version=7.0.5000.0,Cu
lture=Neutral,PublicKeyToken=b03f5f7f11d50a3a
http://localhost/webservices/adder.asmx?wsdl

The last part of the command is the webserive asmx file that you are
generating the proxy for.

Wow! Wouldn't it have been nice (and I would not have thought too
difficult) for someonce to provide a "/l:mvc" commandline option or similar
to wsdl.
Perhaps this simply reflects the "transitional" nature of managed C++.

Andy

"Andy" <Click here to reveal e-mail address> wrote in message
news:40d2ed84$0$21883$Click here to reveal e-mail address...
> I know that this is possible becuase you can do it through the VS 2003
ide,
[Original message clipped]

Reply to this message...
 
    
Richard Yang
Hi, Andy, I have the same problem with you, but you've done more than me, as you've written "wsdl /l:Microsoft.MCpp.MCppCodeProvider,MCppCodeDomProvider,Version=7.0.5000.0,Culture=Neutral,PublicKeyToken=b03f5f7f11d50a3a http://localhost/webservices/adder.asmx?wsdl";, I don't know how it work, Now I have written a class as following,

namespace SampleCodeDom {
...
public class SampleProvider : CodeDomProvider {
...
}
}

what should do write the command line and produce my own language proxy class.

Thanks a lot,

PS. Would you please tell me the more convenient way from this when you have them.

--------------------------------
From: Richard Yang
Reply to this message...
 
 
System.CodeDom.Compiler.CodeDomProvider




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com