I haven't looked at web services since I completed my MCAD cert back in 2005(?). Now I'm in a new job running Visual Studio 2012 and I've been told to whip up a fairly simple web service.
In general all our software is targeting framework 4.0 so far as I know.
I first went into VS2012 and created a web service project after selecting 3.5 in the dialog. (Apparently the only way you can.) I then compiled it in 4.0 and published it to my local machine, after setting the application pool to 4.0 as well. I then wrote
a demo web app in 4.0. I added a 'Service Reference'. (A 'web reference' is obsolete in 4.0?) After some trial and error I was able to call a service method successfully.
I admit I've got some serious reviewing to do but in the short run, can you see anything seriously wrong with what I've done?
bchernick
Member
110 Points
266 Posts
Big picture question - This works. Am I doing anything basically wrong?
Nov 27, 2012 03:28 PM|LINK
I haven't looked at web services since I completed my MCAD cert back in 2005(?). Now I'm in a new job running Visual Studio 2012 and I've been told to whip up a fairly simple web service.
In general all our software is targeting framework 4.0 so far as I know.
I first went into VS2012 and created a web service project after selecting 3.5 in the dialog. (Apparently the only way you can.) I then compiled it in 4.0 and published it to my local machine, after setting the application pool to 4.0 as well. I then wrote a demo web app in 4.0. I added a 'Service Reference'. (A 'web reference' is obsolete in 4.0?) After some trial and error I was able to call a service method successfully.
I admit I've got some serious reviewing to do but in the short run, can you see anything seriously wrong with what I've done?
Haixia Xie -...
Contributor
3030 Points
296 Posts
Microsoft
Re: Big picture question - This works. Am I doing anything basically wrong?
Nov 29, 2012 08:49 AM|LINK
Hi bchernick,
It seems ok.
And you can try custom a method and call it from the client to test if it works as expected.
Best Regards.
Feedback to us
Develop and promote your apps in Windows Store