Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebService Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
WebService Question
Divers
Thread ID:
00997428
Message ID:
00997428
Vues:
50
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform