473,779 Members | 2,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1569
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**********@s iemens.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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.nosp am> wrote in message
news:%2******** ********@TK2MSF TNGP09.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**********@s iemens.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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**********@s iemens.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.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.nosp am> wrote in message
news:%2******** ********@TK2MSF TNGP09.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**********@s iemens.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1400
by: !TG | last post by:
I just setup a 2003 ent server. How do I get .Net installed so I can run asmx, aspx, asax, etc?
1
1905
by: Stevenson | last post by:
Hello. If have written a webservice within C# that is called from an aspx and processes incoming data correctly. The problem is that the ASMX runs twice before returning. I have debugged the application and can see the ASMX duplicate the processing effort. In debug I can see it hit the return method, but instead of returning to the caller immediately it reprocesses the data a second time before properly returning to aspx caller.
3
1276
by: Sergio Fernandez | last post by:
..asmx not getting parsed. whten I call a page with an .asmx extensionon my machine all I get is the code, it does not get parsed. how can I fix this, can I manually add some ISAPI application to IIS to make it work.
1
1729
by: Sledge | last post by:
Hello All, I'm completing a web application with .NET using VB Script. I created a ASPX File and I want to call a webserver service ASMX File, but I don't know how to? Can you guys help or show me an example on how to accomplish this? I need an example on how to call an .asmx file from .aspx?
1
1970
by: Ido Flatow | last post by:
Here's the scenario: - Created a web service project - Added 2 services (asmx files) - Created a custom entity ("Customer") - Created a method in each service which returns/receives the above entity - Created a class library - Added 2 web references (one for each asmx) The created proxy contains the "Customer" class for each service (asmx) - each class with it's own namespace !! This, for example, prevents me from
0
987
by: Sophie PARISOT | last post by:
Hi, I try to create one application and different virtual sub-directories (?) with their own webservices but I have this kind of error : unable to create the type myNamespace Ligne 1 : <%@ WebService Language="c#" Codebehind="myClass.asmx.cs" Class="myNamespace" %>
2
1676
by: Steve B. | last post by:
Hi, We have build an ASP.Net 2.0 framework for our corporate sites. This framework add some asmx files that are used by all application. The asmx files only contains the directive <%@ WebService Language="C#" Class="OurFrameworkServiceClass" %> The class is defined in a dll (then w/o source code) that is place in the BIN directory.
5
70513
by: =?Utf-8?B?a3Jpcw==?= | last post by:
I created a simple webservice .asmx on Visual Studio 2005. As I plan to deploy it to Sharepoint Portal 2003, I copied asmx to \web server extensions\60\ISAPI directory of the server, where all other general webservices reside. Everything is just fine - i can access the service with the browser, method list is displayed as well as help texts for them. my question is - how do I generate .wsdl and .disco files for the service? I read...
6
2239
by: =?Utf-8?B?a3Jpcw==?= | last post by:
Hi, I created a web service application using ASP. My question is : When i try to create an extra class in the same asmx file,At the time of consuming the web service,its showing me only the default class only. here is my code: namespace WebService1
0
9636
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10306
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9930
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5503
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.