VS 2008 WebService Proxy classes in MFC project using VC++6.0
Hi I have a Web Service developed in VS 2008 using C#.
I have a MFC project developed using VS 6.0.
I want to call the Web service in MFC project.
For this , To create proxy classes of web service , I used the following command in commandprompt.
sproxy http://localhost:3748/Kiran.asmx
but this command throws error which says
http://localhost:3748/Kiran.asmx(3,7) : error SDL1005 : unrecognized tag, with
[
namespace = ""
tag = "html"
]
sproxy : error SDL1031 : failure in processing discomap file: "http://localhost:
3748/Kiran.asmx".
How should i resolve this?
How Can I create proxy classes in VC++ 6.0
(I know in VS2005 there is option for Add Web Reference but i dont find any option in 6.0)
Thanks for the help
Kiran
Re: VS 2008 WebService Proxy classes in MFC project using VC++6.0
VC++ 6.0 does not have the (direct) support for web services at all. You need to code (or acquire) a complete library for handling all of the operations, it is NOT as simple of a matter as just creating proxy classes and using them.
Your best bet would be up upgrade your 6.0 (which is obsolete, non-compliant with the standard, and totally out of support) to the latest version (9.0) and proceeding from there.
Re: VS 2008 WebService Proxy classes in MFC project using VC++6.0
Hi,
Thanks for the reply.
My VC++ project is a big application and I cannot upgrade it.
Is there any solution of calling the webservice from this VC++ project.
Please let me know.
Thanks very much
Kiran
Re: VS 2008 WebService Proxy classes in MFC project using VC++6.0
"Can't" is such a negative word...."Not allowed", "Dont have time", "Dont want to"... are usually more accurate.
The best alternative I can give you is to create a VS-2008 assembly that exposes the functionallity as COM components, then use the COM wrappers from within your ancient application.
Re: VS 2008 WebService Proxy classes in MFC project using VC++6.0
Yeah,
Its actually "Not allowed ".
Thanks for your reply