Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Services (http://www.velocityreviews.com/forums/f64-asp-net-web-services.html)
-   -   error parsing dataset upon return from webservice (http://www.velocityreviews.com/forums/t781364-error-parsing-dataset-upon-return-from-webservice.html)

Jeff 07-23-2003 01:20 PM

error parsing dataset upon return from webservice
 
Found the problem shortly after posting:

The submitted dataset had runtime properties added to some
datacolumns (expressions added). These cause schema issues
during the merge. I removed the additional expressions
before submission, and then add them back.

Seems like sort of a hack - but it works. If there are
more elegant suggestions out there I would love to hear
them...

Jeff.
>-----Original Message-----
>Hello,
>
>I am submitting a dataset to a webservice, and receiving
>an integer result utilizing the asynchronous
>invocation "BeginInvoke". The submission, processing, and
>return to my callback all work fine. In fact the error
>occurs as the framework attempts to load the resulting
>message from the webservice. If I break execution just
>before EndInvoke is called I can see the result from the
>webservice in the watch variable for the AsyncResult.
>
>The typed dataset (CfData) is in the Async, and is
>subsequently created when the result is read. The error
>included below occurrs within the generated dataset class
>as it tries to create the dataset.
>
>I am stumped. Any thoughts out there?
>
>There was a problem loading data:
>System.Web.Services.Protocols.SoapException: Server was
>unable to read request. --->
>System.InvalidOperationException: There is an error in

XML
>document (1, 33187). ---> System.NullReferenceException:
>Object reference not set to an instance of an object.
> at System.Data.LookupNode.Bind(DataTable table,
>ArrayList list)
> at System.Data.DataExpression.Bind(DataTable table)
> at System.Data.DataExpression..ctor(String expression,
>DataTable table, Type type)
> at System.Data.DataColumn.set_Expression(String value)
> at System.Data.Merger.MergeSchema(DataTable table)
> at System.Data.Merger.MergeTableData(DataTable src)
> at System.Data.Merger.MergeDataSet(DataSet source)
> at System.Data.DataSet.Merge(DataSet dataSet, Boolean
>preserveChanges, MissingSchemaAction missingSchemaAction)
> at SOS.CfData.ReadXmlSerializable(XmlReader reader) in
>X:\Visual Studio Projects\CfData.cs:line 310
> at
>System.Data.DataSet.System.Xml.Serialization.IXml Serializa

b
>le.ReadXml(XmlReader reader)
> at
>System.Xml.Serialization.XmlSerializationReader.R eadSerial

i
>zable(IXmlSerializable serializable)
> at
>Microsoft.Xml.Serialization.GeneratedAssembly.Xml Serializa

t
>ionReader1.Read6_SubmitDataSetReport()
> --- End of inner exception stack trace ---
> at System.Xml.Serialization.XmlSerializer.Deserialize
>(XmlReader xmlReader, String encodingStyle)
> at System.Xml.Serialization.XmlSerializer.Deserialize
>(XmlReader xmlReader)
> at
>System.Web.Services.Protocols.SoapServerProtocol. ReadParam

e
>ters()
> --- End of inner exception stack trace ---
> at
>System.Web.Services.Protocols.SoapServerProtocol. ReadParam

e
>ters()
> at
>System.Web.Services.Protocols.WebServiceHandler.I nvoke()
> at
>System.Web.Services.Protocols.WebServiceHandler.C oreProces

s
>Request()
>Details: at
>System.Web.Services.Protocols.SoapHttpClientProto col.ReadR

e
>sponse(SoapClientMessage message, WebResponse response,
>Stream responseStream, Boolean asyncCall)
> at
>System.Web.Services.Protocols.SoapHttpClientProto col.EndIn

v
>oke(IAsyncResult asyncResult)
>.
>



All times are GMT. The time now is 12:39 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.