Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / June 2004

Tip: Looking for answers? Try searching our database.

Generate managed C++ proxy using wsdl.exe

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andy - 18 Jun 2004 14:28 GMT
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
Andy - 25 Jun 2004 09:34 GMT
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

> 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.
[quoted text clipped - 24 lines]
>
> Andy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.