Ask a Question related to ASP.NET Web Services, Design and Development.
-
Kenny #1
Long String
Hi
I'm sending a long string to a web service like this
field1,field2,field3,field4,field5,field6,field7+f ield1,field2,field3,field4,field5,field6,field7..
On the web service I need to read and to parse it in order to fill a DataSet and to update the DB,so do I have to use the String class' methods inside a Do-While or there is a more powerfull way to do it
Thks
Kenny Guest
-
Long string ruining formatting
Hi All, I have a long string with no whitespace or break character and it is ruining the formatting of my datagrid. How can I get the text to... -
How long is a piece of string
I know this is a bit of a how long is piece of string question, but has anyone got any very ball park guides for the number of faces you can have in... -
Long String-value in a datacolumn
Hello, I have a datagrid that shows a product-description. The datagrid is bound to a dataset. The dataset-columns only seam to accept... -
Varchar (8000)...long XML String??
Hello, I have get a XML String that has 30,000 characters in a SQL SP. How can I do that taking under consideration that I can't use a text... -
RAC - how long is a piece of string
g'day folks, No experience with RAC but have been asked to estimate how long it would take to set up a RAC environment of 2 nodes with 2... -
Jan Tielens #2
Re: Long String
Instead of passing a string value you could pass an array of strings. Then
you could walk through the array by using a foreach loop
string[] s = myWebservice.GetValue();
foreach(string item in s)
{
// do stuff
}
--
Greetz
Jan Tielens
________________________________
Read my weblog: [url]http://weblogs.asp.net/jan[/url]
"Kenny" <anonymous@discussions.microsoft.com> wrote in message
news:A4256083-AAC5-4468-9287-3A3601D10BAE@microsoft.com...field1,field2,field3,field4,field5,field6,field7+f ield1,field2,field3,field4> Hi
>
> I'm sending a long string to a web service like this:
>
>
,field5,field6,field7...DataSet and to update the DB,so do I have to use the String class' methods>
> On the web service I need to read and to parse it in order to fill a
inside a Do-While or there is a more powerfull way to do it?>
> Thks
Jan Tielens Guest
-
richlm #3
Re: Long String
.... or if you are committed to passing the data as a string, you can split it into an array in the WS using String.Split(...)
Check the .NET framework class library documentation on the String.Split method for a comprehensive example
(Of course you still need a loop to walk the resulting array).
richlm Guest



Reply With Quote

