469,936 Members | 2,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

ASMX and ASPX in same application ?

Hi,

Are there any implications of having ASMX and ASPX in same ASP.NET
application ? Both would share the same global varriables, etc.

Regards

Navin
Dec 14 '05 #1
4 1400
Functionally no. But from a design standpoint, yes.

The whole point of a web service is to have a non-proprietarty,
platform-independant way to do remote procedure calls via http. If the GUI
and the service are on the same box, you don't need what web services offer
and, in fact, would most likely be degrading the overall performance of the
application.

-Scott

"Navin Mishra" <na**********@siemens.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Are there any implications of having ASMX and ASPX in same ASP.NET
application ? Both would share the same global varriables, etc.

Regards

Navin

Dec 14 '05 #2
Thanks for quick response. Could you shed more light on how it could degrade
overall performance ? May be because ASP.NET ThreadPool threads are shared
between the two ? The ASMX need to return actually the URL of ASPX to the
user which user could put in a browser. There may be some data retrieved
from 3rd party which ASPX and ASMX may need to share and that's why I was
thinking of putting them in same application.

Thanks again and regards

Navin

"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Functionally no. But from a design standpoint, yes.

The whole point of a web service is to have a non-proprietarty,
platform-independant way to do remote procedure calls via http. If the GUI and the service are on the same box, you don't need what web services offer and, in fact, would most likely be degrading the overall performance of the application.

-Scott

"Navin Mishra" <na**********@siemens.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,

Are there any implications of having ASMX and ASPX in same ASP.NET
application ? Both would share the same global varriables, etc.

Regards

Navin


Dec 14 '05 #3
You'll want to create your web services and then wrap it with a
separate ASP.NET page. That's a pretty standard model.

Dec 14 '05 #4
Web services offer platform indepenance and non-proprietary ways of
communicating, but there is a cost - serialization and bandwith. It has
notihing to do with threads and URL's. The data passed to a web service and
the response coming back are done in XML using the SOAP protocol. While
definately an "open" model, no one ever touted web services as the best
performing solution to cross-platform remote procedure calls. As a result,
there is an inherant performance limitation to them.

If you need to call a procedure from the same box as the GUI, then just
create a regular .NET class and call functions of that class. Web Services
are for calling procedures (functions) on other boxes in a non-proprietary,
platform-independant way. Because of this, most applications are built in
"tiers", with different tiers residing on different boxes. This is done for
security and scalability.

-Scott
"Navin Mishra" <na**********@siemens.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Thanks for quick response. Could you shed more light on how it could
degrade
overall performance ? May be because ASP.NET ThreadPool threads are shared
between the two ? The ASMX need to return actually the URL of ASPX to the
user which user could put in a browser. There may be some data retrieved
from 3rd party which ASPX and ASMX may need to share and that's why I was
thinking of putting them in same application.

Thanks again and regards

Navin

"Scott M." <s-***@nospam.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Functionally no. But from a design standpoint, yes.

The whole point of a web service is to have a non-proprietarty,
platform-independant way to do remote procedure calls via http. If the

GUI
and the service are on the same box, you don't need what web services

offer
and, in fact, would most likely be degrading the overall performance of

the
application.

-Scott

"Navin Mishra" <na**********@siemens.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Are there any implications of having ASMX and ASPX in same ASP.NET
> application ? Both would share the same global varriables, etc.
>
> Regards
>
> Navin
>
>



Dec 14 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by !TG | last post: by
1 post views Thread by Stevenson | last post: by
3 posts views Thread by Sergio Fernandez | last post: by
1 post views Thread by Sledge | last post: by
2 posts views Thread by Steve B. | last post: by
5 posts views Thread by =?Utf-8?B?a3Jpcw==?= | last post: by
6 posts views Thread by =?Utf-8?B?a3Jpcw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.