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?