after reading the comments it looks like i am the only one that has an error, i am usisn IIS 6.1, windows 7, did the configuration but have an error where it says "'C' is not a supported language." Source File: /MyWebServices/FirstService.asmx Line: 1 what is wrong then?
I had to change the "C" to "C#" for it to work.
ReplyI would like to have a small survey under the Windows live developers. The test is for a thesis where I study how a web service can be more accessible for developers. Give me 4 minutes of your precious time and join the survey here: https://docs.google.com/a/sense-os.nl/spreadsheet/viewform?formkey=dHZIOFhybURrMExMb3B1MjFzWXFVU1E6MQ#gid=0
ReplyTank you for sharing. I'm all for your idea, with the programing of net can be better, it's easier for us to prgraming any thing! I currently managing to finish my programming to make a barcode generator by myself. That is a nice experience ,you may hava a try ,too.http://www.keepautomation.com/products/net_barcode/barcodes/qrcode.htmlReply
Was wondering, although not much activity at this blog, so not really going to wait but just in case, anybody know how I'd splice a user id and password into the code or if that's how you do it, or how do you identify yourself to the service? using System; using System.IO; namespace SvcConsumer{ class SvcEater { public static void Main(String[] args) { FirstService mySvc = new FirstService(); Console.WriteLine("Calling Hello World Service: " + mySvc.SayHello()); Console.WriteLine("Calling Add(2, 3) Service: " + mySvc.Add(2, 3).ToString()); } } }
ReplyI'm sure I'm the sole ignoramus, but just in case, you may need to supply passwords if you set things up that way, again, I set up security, but sometimes I wonder for whom, what? Anyway yeah. So if you get the 401 error, could try this. Just replace username: and password: with valid credentials. I used the admin because, got stuck on something else unrelated to 401, so my overkill melt down procedures were in effect. Probably wouldn't need that much authority. C:\>wsdl /username:Administrator /password:abcdefg http://localhost/MyWebServ ices/FirstService.asmx?WSDL Microsoft (R) Web Services Description Language Utility [Microsoft (R) .NET Framework, Version 2.0.50727.3038] Copyright (C) Microsoft Corporation. All rights reserved. Writing file 'C:\FirstService.cs'.
Replygot this far, then when I got too the WSDL cmd, see below Is there a C# .net programmer in the house who could possibly give some advice? I kind of tried to give it credentials, thinking that may be something to it, but not providing them correctly with the WSDL, plus not totally sure that's what's up, or what I'm really doing. Copyright (C) Microsoft Corporation. All rights reserved. Error: There was an error processing 'http://localhost/MyWebServices/FirstServic e.asmx?WSDL'. - There was an error downloading 'http://localhost/MyWebServices/FirstService. asmx?WSDL'. - The request failed with HTTP status 401: Access Denied. If you would like more help, please type "wsdl /?".
ReplyThanks for the good article. I've been looking for just such information to use as a refresher course to help me in my personal web service develoment effort. I would like to see if anyone on this thread might know where I could fine a medical medicen web service provider just like Xignite finanical services environment? Thanks again for this artial.
ReplyThis article has all what one will get through a classroom. It is self describing, simple and easy to follow solution. It is very rare to find such good articles. Thank you a lot.....
ReplyIts really a very very good article...Thanks Shiv Pal Singh. Keep it up...Reply
Its really a very very good article...Thanks Shiv Pal Singh. Keep it up...Reply