Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to pass a table of data
Message
From
08/12/2004 06:17:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/12/2004 16:04:14
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
00967555
Message ID:
00967695
Views:
7
Well I see your concern. Binary stream vs text stream. If ever I can be sure I can construct better XML one day than .NET does I'll keep this in mind:)
Cetin

>Cetin,
>
>>>What's the difference? Passing a dataset you're already passing an XML,no?<
>
>Well, yes and no. Even though a DataSet is represented in .NET by XML, passing a DataSet is still passing an object whereas when you serialize it to XML you're specifically passing a string. It *does* make a difference.
>
>~~Bonnie
>
>
>
>
>>Bonnie,
>>What's the difference? Passing a dataset you're already passing an XML,no?
>>Cetin
>>
>>>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?
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform