Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebService Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
WebService Question
Miscellaneous
Thread ID:
00997428
Message ID:
00997428
Views:
48
I have written a webservice in C#. At the end of the webservice I issue the following:
ReturnResult.Append("***COMPLETE***");
return ReturnResult.ToString();
I call this webservice from a VFP program and I get the results expected basically "***COMPLETE***" is returned. Each time I run this webservice the "***COMPLETE***" is appended. So if I run this webservice 3 times I'll get the following string "***COMPLETE******COMPLETE******COMPLETE***".

Is this the expected behavior? I know I am using the .Append() command but I thought each time I ran the webservice the variable would be re-instantiated.

I declare the variable at the beginning of the class with:
static private StringBuilder ReturnResult = new StringBuilder(10000);
I assume I am not disposing of something properly?

Thanks,
Paul
Next
Reply
Map
View

Click here to load this message in the networking platform