The Artima Developer Community
Sponsored Link

C# Answers Forum
DataSet serialization - WebServices

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tomas Novotny

Posts: 2
Nickname: tomasino
Registered: Jun, 2003

DataSet serialization - WebServices Posted: Jun 9, 2003 11:34 PM
Reply to this message Reply
Advertisement
Hallo,

I have a generated typed DataSet -> TestDataSet (inherited DataSet) and implemented Web Method: Save(DataSet d);
I need parameter of the DataSet type because of next extension (not TestDataSet type)

example.
TestDataSet d = new TestDataSet();
....// data filling
invoke at the client side web methods through proxy object: proxy.Save(d);

but at the server side I can't do casting:
.....
TestDataSet myData = (TestDataSet) d;
// exception - specified cast is not valid
I can just access to data "from base view".
But I need have type information about TestDataSet at server too.

Atribut XmlInclude(TestDataSet) does not function.
There is error during generated proxy class:

TestDataSet is derived from Xml.Serialization.IXmlSerializable and
therefore cannot be used with XmlInclude .....

Can anybody help me?

Thank for answer!
Tomas

Topic: Write a method header Previous Topic   Next Topic Topic: foreach equivalent in java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use