Re: No asmx filename



One WebService with 4 WebMethods.

I want to expose several methods using same URL. Something like:

services.whatever.com/webmethod1
services.whatever.com/webmethod2
services.whatever.com/webmethod3
services.whatever.com/webmethod4

Might be a REST style service. I will read a lot more about all this.

Regards,
G

"Patrice" <http://www.chez.com/scribe/> wrote in message news:CB591531-830E-4960-B8BF-6ACC66E60532@xxxxxxxxxxxxxxxx
Perhaps some confusion about WebMethods /WebServices ?

Do you want to expose several methods exposed by a single web service with a different url for each ???

Or it looks like you are llooking rather for a REST style service ?



--
Patrice

"BonesBrigadier" <a@xxxxx> a écrit dans le message de groupe de discussion : #Z57d2FNJHA.2824@xxxxxxxxxxxxxxxxxxxxxxx
Hi John,

Thanks again for all your help.

Main reason for this is to make it as elegant as possible. Also, in other technologies is possible to do it (I believe java and Tomcat can do something like this).

If I have 4 Webmethods under services.something.com then it would make sense to present them as services.something.com/WebMethod. Elegant solution. Also, a web service shouldn't be seen as a page. It should link straight to dll shouldn't it? Maybe new IIS makes it possible, but I haven't looked into it.

I have came across Spring.NET where you can do what I am looking for so that means I am not alone :D

IIS won't allow me what I described because it thinks the WebMethod is a file/folder and returns 404.

Please let me know if something else comes to your mind. I will do the same if you want me to.

Thanks,
G


"John Saunders" <no@xxxxxxxxxxxxxxxx> wrote in message news:OX7ZEYFNJHA.3764@xxxxxxxxxxxxxxxxxxxxxxx
"BonesBrigadier" <a@xxxxx> wrote in message news:eH18FjENJHA.4240@xxxxxxxxxxxxxxxxxxxxxxx
Hi John,

Thanks for your reply.

The asmx file would still be there but it wouldn't be mentioned in the URL (something like default documents on IIS - if you do www.something.com it will default to www.something.com/default.aspx or whatever we want). Still not possible?

I suppose that, if you set up IIS to use default documents, then you could do this.

Can you say why you want to? The URL of a web service isn't usually visible to many humans.
--
John Saunders | MVP - Connected System Developer


.


Loading