Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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...
    > 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

    Jan Tielens Guest

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139