Redirecting?

S

sham

Hi to all,

We have a webservice application that had it's own built in web server. We
are know re-writing the app using ASP.net. The problem we have is that there
are exisiting customers which we cannot upgread without making any changes
to the client app.

What we found is that when the client makes a web service call, the URL used
is http://MyCompany/soap/NewsService.

For this call to work with the ASP.net app, it needs to have the .asmx
extension at the end otherwise I get a 405 (method not found) error.

Is there a way with IIS for the client web service call to get redirected to
NewsService.asmx? In this way existing clients will work.

Sham.
 
B

bruce barker \(sqlwork.com\)

you have two options. make the asmx the default document, or use an
httpmodule to do it.

-- bruce (sqlwork.com)
 
S

sham

Thanks for the reply.

I have written an httpModule and with the Cassini web server, the web
service works as intended. With Cassini it appears that all requests get
sent to the httpModule which then does the "rewrite" of the url (I.e. adds
..asmx to it).

However, with IIS, how do you tell the web server to pass a URL with no
extension to my asp application?

In the application config tab of IIS, only extensions starting . can be
mapped.

Sham.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top