e.result.length in WCF?


L

Larry Epn

I used to use e.result.length in classic WebServices.
I don't see the same property in WCF.
I have searched the net but find no equivalent.
Is there an equivalent way to determine the size of the result from a WCF
service? Sorry if this is obvious (and I hope it is).
Thanks.
 
Ad

Advertisements

A

Allen Chen [MSFT]

Hi,
I used to use e.result.length in classic WebServices.
I don't see the same property in WCF.
I have searched the net but find no equivalent.
Is there an equivalent way to determine the size of the result from a WCF
service? Sorry if this is obvious (and I hope it is).
Thanks.

Do you mean the e.Result in the callback method of an async call to asmx
web service? I'm not aware of that there's a e.result.length property for
use in classic asmx web service. What's the return type of the web service
call? As far as I know e.Result will be the same class type as the return
type of the web service method in most cases. So say the method returns
string the auto generated code will let e.Result be a string so that you
can get string.Length.

On the other hand, if you want to know the total size of the response you
can use Message Inspectors in WCF:

http://msdn.microsoft.com/en-us/library/aa717047.aspx

Please let me know if I misunderstood what you mean by e.result.length.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Ad

Advertisements

A

Allen Chen [MSFT]

Hi,
I used to use e.result.length in classic WebServices.
I don't see the same property in WCF.
I have searched the net but find no equivalent.
Is there an equivalent way to determine the size of the result from a WCF
service? Sorry if this is obvious (and I hope it is).
Thanks.

Do you have any progress on this issue?

Regards,
Allen Chen
Microsoft Online Support
 

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