473,761 Members | 8,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Svc VS remote component hosted in IIS

JJ
A current requirement I am facing is the all business objects be stateless
remote components hosted in IIS. I am partial to web services myself.
However, it is insisted that IIS hosted remoting be used. They insist that
it is much, much faster. I don’t necessarily disagree with that point. But
under the circumstances, a web service that is load balanced (as are the
remote objects), though technically slower, would still have a lot of “head
room”.

With the knowledge that IIS hosted web services have to use an HttpChannel,
and that we're publishing them with a *.soap extension, I thought I would see
if I could pull up a WSDL file by entering
http://[server]/[vdir]/remoteObject.so ap?wsdl...and it worked to my pleasant
surprise!

I then went an extra step and opened VS.NET and tried to create a Web
Reference to the remote object in question. The Web reference Dialog found
the WSDL and as usual listed the available methods. However, I couldn't
actually create the reference in VS.NET. I don't remember exactly but is
seemed like a problem with the xmlns or some type of xml-namespace issue.

With that said, my above "research" seems to indicate to me that under the
hood of .NET, an ASP.NET web service and a remote object hosted in IIS aren't
really all that different. I suspect that the performance between the two
probably isn’t all that dissimilar either.

I am curious if there is a way that a client could successfully create a
"web reference" in VS.NET to an object that is hosted as remote object, not a
web service. It seems that if the namespace issue could be resolved, then
the object could double as a web service and remote object: non-.NET
platforms could invoke the remote object as a web service, and .NET apps
could remote into it...

Which leads me to this question: Is there a noticeable performance
difference between an IIS hosted remote object and a web service? I know
that remote object hosted in an exe or WinSvc using TcpChannels and binary
formatter will be faster than web services. My question is strictly
comparing Web Services to IIS hosted remote objects using Soap formatting.

Thanks in advance!

Nov 16 '05
15 2089
Guys, my question was strictly related to performance differences between web
services (asmx) and IIS hosted remote objects using SOAP formatting.
Alexander, I am well aware that binary formatting is much more performant -
but in my particular case, policies and pre-existing architecture (based on
what I would call mis-conceptions about the .NET remoting framework in
general) demand that SOAP formatting be used. That is the reason in my
original question I specified that I am only talking about the above
mentioned mechanisms. I don't believe the other perrson replying to my
original post was implying anything otherwise. The other poster was
answering my question within the context I specified. Binary formatting is
understood to be faster and is not relevant to the original question I
presented.

The premise I am trying to validate is: There isn't a practical difference
in performance between an ASMX and IIS hosted remote objects using SOAP
formatting.

"Alexander Shirshov" wrote:

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.phx.gbl...
Can you provide any documentation to back up your statement that SOAP with
remoting bypasses firewalls or uses port 80? There's no association
between the formatter and the port.


Remoting components hosted in IIS use HTTP and (most likely but not always)
port 80. BinaryFormatter could be a problem in this configuration because I
heard (but never came across) that some overzealous firewalls block binary
traffic on port 80. In this case SoapFormatter is the only solution.

The article demonstrated that Remoting + IIS + BinaryFormatter *outperforms*
ASMX. Sad you can't see it. Bad you're trying to inflict your
misunderstandin gs on others in such an authoritative voice.

Nov 16 '05 #11
Thanks for the link: I found what I needed to know. My suspisions were
correct:

"...The ASP.NET Web service outperforms IIS_HTTP_SOAP and WS_HTTP_SOAP,
since ASP.NET XML serialization is more efficient than .NET Remoting SOAP
serialization. And as can be seen in Figure 2, the ASP.NET Web service is
very similar to IIS_HTTP_Binary in performance..."

Being that the article was written in Sept 2002, I am pretty sure that the
graphs are charted against the Framework 1.0. I would like to see a similar
article based on 1.1, and perhaps 2.0 beta.

"...Note that the performance of the ASP.NET Web service has dropped so much
so that it performs similar to WS_TCP_SOAP, WS_HTTP_SOAP and IIS_HTTP_SOAP.
This drop in performance is due to two known issues in ASP.NET, which will be
fixed in upcoming versions. One is the buffering issue as discussed earlier;
other is related to DataSet serialization in ASP.NET. With these issues
fixed, the ASP.NET Web service will be nearly comparable to
IIS_HTTP_Binary ..."

Taking this into account, assuming they were speaking about the upcoming 1.1
version, an ASMX should be just as performant as IIS_HTTP_BINARY even when
passing along large objects such as DataSets.

Again, I would like to see a updated comparison using the latest version of
the framework, perhaps even 2.0 Beta.

"Alexander Shirshov" wrote:

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.phx.gbl...
Can you provide any documentation to back up your statement that SOAP with
remoting bypasses firewalls or uses port 80? There's no association
between the formatter and the port.


Remoting components hosted in IIS use HTTP and (most likely but not always)
port 80. BinaryFormatter could be a problem in this configuration because I
heard (but never came across) that some overzealous firewalls block binary
traffic on port 80. In this case SoapFormatter is the only solution.

The article demonstrated that Remoting + IIS + BinaryFormatter *outperforms*
ASMX. Sad you can't see it. Bad you're trying to inflict your
misunderstandin gs on others in such an authoritative voice.

Nov 16 '05 #12
Just in case, I am "JJ", I changed my ID after making the initial post ;-)

Sorry if I caused any confusion!

"Das Bose" wrote:
Guys, my question was strictly related to performance differences between web
services (asmx) and IIS hosted remote objects using SOAP formatting.
Alexander, I am well aware that binary formatting is much more performant -
but in my particular case, policies and pre-existing architecture (based on
what I would call mis-conceptions about the .NET remoting framework in
general) demand that SOAP formatting be used. That is the reason in my
original question I specified that I am only talking about the above
mentioned mechanisms. I don't believe the other perrson replying to my
original post was implying anything otherwise. The other poster was
answering my question within the context I specified. Binary formatting is
understood to be faster and is not relevant to the original question I
presented.

The premise I am trying to validate is: There isn't a practical difference
in performance between an ASMX and IIS hosted remote objects using SOAP
formatting.

"Alexander Shirshov" wrote:

"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:Oa******** ******@TK2MSFTN GP12.phx.gbl...
Can you provide any documentation to back up your statement that SOAP with
remoting bypasses firewalls or uses port 80? There's no association
between the formatter and the port.


Remoting components hosted in IIS use HTTP and (most likely but not always)
port 80. BinaryFormatter could be a problem in this configuration because I
heard (but never came across) that some overzealous firewalls block binary
traffic on port 80. In this case SoapFormatter is the only solution.

The article demonstrated that Remoting + IIS + BinaryFormatter *outperforms*
ASMX. Sad you can't see it. Bad you're trying to inflict your
misunderstandin gs on others in such an authoritative voice.

Nov 16 '05 #13
Allright, my bad. Apologies to DalePres.
but in my particular case, policies and pre-existing architecture (based
on
what I would call mis-conceptions about the .NET remoting framework in
general) demand that SOAP formatting be used.


That's definitely a misconception I was fighting over and over.
BinaryFormatter over HTTP works just fine through firewalls (except for
those rare ones where binary traffic banned; I wonder, how they see pictures
in a browser then?). I missed the original point of compariing SoapFormatter
(as I see no point in using it). BinaryFormatter is default for ref="http"
channel template.

For pure IPC Web Services is extra work for no benefit. Why SoapFormatter?
Interoperabilit y?

FYI, there were talks about deprecating SoapFormatter in .NET 2.0:
http://blogs.msdn.com/mattavis/archi...23/219200.aspx (It isn't
deprecated as per February 2005 CTP).

Alexander
Nov 16 '05 #14
Not a problem, Alexander.

DalePres

"Alexander Shirshov" <al*******@omni talented.com> wrote in message
news:Of******** ********@TK2MSF TNGP10.phx.gbl. ..
Allright, my bad. Apologies to DalePres.
but in my particular case, policies and pre-existing architecture (based
on
what I would call mis-conceptions about the .NET remoting framework in
general) demand that SOAP formatting be used.


That's definitely a misconception I was fighting over and over.
BinaryFormatter over HTTP works just fine through firewalls (except for
those rare ones where binary traffic banned; I wonder, how they see
pictures in a browser then?). I missed the original point of compariing
SoapFormatter (as I see no point in using it). BinaryFormatter is default
for ref="http" channel template.

For pure IPC Web Services is extra work for no benefit. Why SoapFormatter?
Interoperabilit y?

FYI, there were talks about deprecating SoapFormatter in .NET 2.0:
http://blogs.msdn.com/mattavis/archi...23/219200.aspx (It isn't
deprecated as per February 2005 CTP).

Alexander

Nov 16 '05 #15
I'm not sure. Mostly because it is a lack of understanding of .NET in
general. They started this "framework" and have never used .NET before.
Before, everything was ASP & Javascript. Interoperabilit y isn't an issue
since everything is new from the ground up. As far as performance goes
requirements, they aren't realy specified as far as I can tell. But from
what I can see of how the app will be used, ASP.NET would be more than
adequate, with plenty of room to spare. Transactional throughput isn't an
issue. Another issue I have with their design is that no interfaces or
abstract classes are used for the remoteable objects - only pure
implementation. They can't seem to understand that an object's interface
and its implementation can be independant of each other. Implementation is
shared at the client and hosting servers. I don't like this. Sorry.

As far as extra work is concerned using ASMX-based web services, i think it
would simplify the design and yet still meet their design requirements:
remotely hosted, stateless objects communicating via SOAP protocol that can
be load balanced. Nothing in here says it HAS to be IIS hosted remote
objects. As far as coding the web services to do what these remote objects
need to do, implementing Web Services would have been easier, and much more
".NET newbie" friendly. I know this isn't always the case, but in this
specific instance, Web services would have been the easiest to code and
deploy.

"Alexander Shirshov" wrote:
Allright, my bad. Apologies to DalePres.
but in my particular case, policies and pre-existing architecture (based
on
what I would call mis-conceptions about the .NET remoting framework in
general) demand that SOAP formatting be used.


That's definitely a misconception I was fighting over and over.
BinaryFormatter over HTTP works just fine through firewalls (except for
those rare ones where binary traffic banned; I wonder, how they see pictures
in a browser then?). I missed the original point of compariing SoapFormatter
(as I see no point in using it). BinaryFormatter is default for ref="http"
channel template.

For pure IPC Web Services is extra work for no benefit. Why SoapFormatter?
Interoperabilit y?

FYI, there were talks about deprecating SoapFormatter in .NET 2.0:
http://blogs.msdn.com/mattavis/archi...23/219200.aspx (It isn't
deprecated as per February 2005 CTP).

Alexander

Nov 16 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
937
by: Ari Royce Hidayat | last post by:
I have a .net remoting client hosted in IE (with object tag). This client takes a looong time (2 minutes) when it calls one of the remote function for the first time (I think .net remoting really connects to remote server on the first remote funtion call). This problem doesn't happen if the client is an ordinary application (windows form or console application). Is there someone knows what's the cause and how to fix it?
2
1554
by: steve | last post by:
Pardon me, as I am an Access newbie. How do I admin a hosted Access db? Is there something like Enterprise Manager or phpmyadmin that I can use for this purpose. Thanks in advance. -- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards
8
2455
by: Julia | last post by:
Hi, My client uses a remote object when I host the remote object inside a windows application all seem to work fine but when I host the same object inside a windows service I get the following error " connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because
9
1624
by: Ollie | last post by:
okay sorry for cross posting but want to see if any one can explain the solution to this problem for me: I have a .Net ASP.Net app written in C# that use COM+ components to do some business processing...... When I have the ASP.Net website and the COM+ components installed on the same machine (i.e everything local) it all works fine, and it can write to the event log....
3
1107
by: hendrik | last post by:
Hi, If I buy a component from 3rd party to be used in ASP.Net based on the Framework 1.1, then when I upgraded my IIS with .Net Framework 2.0, would the component still can be used? The component was compiled using .Net Framework 1.1. All my ASPX pages will be re-compiled using .Net Framework 2.0. Can the component still be usable in the .Net Framework 2.0? What is the condition to run it?
2
2328
by: Julia | last post by:
Hi, Can a Remote object be a WebService as well? i want to able to connect to a remote object either using .NET remoting and HTTP\SOAP so I wonder if I can create a singleton(statefull) object hosted in IIS which can be xml web service ,NET remoted object,singleton and support COM+ transaction management all in the same time
0
1710
by: Michael Hhne | last post by:
Hi, we're developing some web services and use the local development server of Visual Studio 2005 to create, run and debug the project. The web service methods connect to a database hosted on a dedicated server and the Microsoft CRM 3.0 server, also on a separate machine. As the CRM server installation makes changes to the Active Directory, they are located in a separate domain, while the development machines are member of the companies...
7
2596
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account. I had no issue creating the web app on the remote server after authenticating with the domain account, but I can't debug. It complains that I don't have rights. My domain account is in the administrators group on the remote machine. I also have...
3
9739
by: axelman | last post by:
Hi guys, I'm using Classic ASP, IIS6, IE 7, FF 3 I've developed a vb script to downloand files hosted in my server (zip, doc, pdf, jpg, xls, et. etc.) it's very straight forward and there's a lot of information around the web, however when it comes to dowload files from a remote server (NOT hosted in my server) there is no information :-(, the idea is to have an Access DB that stores the full url...
0
9376
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
10136
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...
1
9923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9811
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...
0
8813
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
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
5266
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2788
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.