Web Service faster than Remoting??

L

Looch

All,

I'm a bit perplexed and hoping I can (again!) find an answer here.
I've implemented a remotable object hosted in IIS that has several
methods that access a database and return datasets.

The problem is, if I switch gears and recreate the same methods in a
web service, I get better performance accross the wire. In fact, if I
create a web service method that instantiates the same class I'm using
for the remotable object (locally referenced in the web service, not
through the remoting framework) and call the same data access methods,
I still get better performance.

I've copied the two config files I'm using:

Client:

<configuration>
<system.runtime.remoting>
<application name="Remote Customer Service">
<client url="http://public IP/MyVirtualDirectory">
<wellknown type="Customer_Service.CustomerService,
CustomerService" url="http://public IP/MyVirtualDirectory/
MyObject.rem" />
</client>
<channels>
<channel ref="http" />
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channels>
</application>
</system.runtime.remoting>
</configuration>

Server:

<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="SingleCall" type="MyObject,
MyClassName" objectUri="MyObject.rem" />
</service>
<channels>
<channel ref="http" priority="100" />
<serverProviders>
<formatter ref="binary" />
</serverProviders>
</channels>
</application>
</system.runtime.remoting>
</configuration>

I also set the SerializationFormat.Binary for the datasets I'm
returning, is that necessary in this case?

I've been staring at this for days now, any help is much appreciated.
 
A

Arne Vajhøj

Looch said:
I'm a bit perplexed and hoping I can (again!) find an answer here.
I've implemented a remotable object hosted in IIS that has several
methods that access a database and return datasets.

The problem is, if I switch gears and recreate the same methods in a
web service, I get better performance accross the wire. In fact, if I
create a web service method that instantiates the same class I'm using
for the remotable object (locally referenced in the web service, not
through the remoting framework) and call the same data access methods,
I still get better performance.

Do you know http://msdn2.microsoft.com/en-us/library/ms996381.aspx ?

Arne
 

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

Top