Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to pass a table of data
Message
From
07/12/2004 14:52:20
 
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00967555
Message ID:
00967565
Views:
7
Stephen,

I don't recommend passing a DataSet to or from a WebService. Use an XML string instead. It's easy enough to serialize/deserialize a DataSet to/from XML.

~~Bonnie


>Google Advice for passing a table of data, already in a ds, was to pass the whole ds.
>
>I am getting this error in my WS.
>Server was unable to process request. --> System.FormatException: String was not recognized as a valid Boolean.
> at System.Boolean.Parse(String value)
> at System.String.System.IConvertible.ToBoolean(IFormatProvider provider)
> at System.Convert.ToBoolean(Object value)
> at System.Data.Common.BooleanStorage.Set(Int32 record, Object value)
> at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <Wrecker / Tow Truck > in chk Column. Expected type is Boolean.
>
>I have a checkbox in the grid that the ds is editing. That is the data I really need BTW.
>
>this is the error from the WIN Client's button click event.
> at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
> at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
> at SRA.ParkerWS.Service1.PostData(DataSet dsM, String lcCompany, String lcName, String lcTitle, String lcEmail, String lcAddress, String lcCity, String lcState, String lcCountry, String lcPhone, String lcType) in C:\win_projects\inPHorm\Web References\ParkerWS\Reference.cs:line 55
>
>If I take out the call for the ds, it's fine.
>
>What is a better way to pass the data?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform