Andy
6/25/2004 10:34:00 AM
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" <swarb70sok@hotmail.com> wrote in message
news:40d2ed84$0$21883$afc38c87@news.easynet.co.uk...
> 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
>
>