• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

IceCactus
#1 Posted : Wednesday, October 8, 2008 3:13:57 PM(UTC)
IceCactus

Rank: Member

Joined: 2/6/2008(UTC)
Posts: 55

When creating the proxy object, NOT the reference, but the actual object,


WebServices3 proxy = new WebServices3()



Is taking like 30 seconds to create this object, typing up all my resources and using like 100mb of ram...



What the heck? The only thing i could think of was it was generating the Serializing assembly, so i changed the "Generate serialization assembly" to ON. Which does infact generate the DLL but my app still is taking ~30 secs to create the web service proxy object.



Anyone else experience this?



Thanks

Ryan
Andy Miller
#2 Posted : Wednesday, October 8, 2008 4:40:43 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
You can use something like SysInternals Process Monitor to find out what is taking so long, but I suspect it is not using your pre-built serialization assembly. The serialization assembly is quite large (~6MB), so it may just take a long time to JIT it and load it into memory.

One option is to create your own web service with just the subset of webmethods that you use.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
IceCactus
#3 Posted : Wednesday, October 8, 2008 4:50:53 PM(UTC)
IceCactus

Rank: Member

Joined: 2/6/2008(UTC)
Posts: 55

Andy,

Have you written any apps that use WebServices3 using .NET? is this a problem for your customers?

Creating my own subset service is exactly what im doing at the moment, just think its kinda silly i should have to :(

Thanks!
Andy Miller
#4 Posted : Wednesday, October 8, 2008 8:17:16 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
Yes. Not much of a problem for the person running the app. The serializer is only built once for them. It is a problem for you and me because the serializer is built every time we rebuild the client assembly.

In my latest project (Shipper 3), I decided to write my own web service that is linked to the Core assembly.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012