Subject: Re: CF.NET and XMLWebService
Date: Wed, 14 Apr 2004 10:03:13 +0300
Lines: 91
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 80.81.33.28
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.compactframework:50918
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
Hello Alex,
and thank you for your answer. But I'm not agree with you about it. I've
written the following web method.
[WebMethod]
public DataSet GetClassifiers()
{
...
return myDataSet;
}
Using this code snippet I was calling the method:
_TMSMain = new TimeMangementServices.Main();
_TMSMain.Url = "
http://...";
DataSet ds = _TMSMain.GetClassifiers(); // there throws
PlatformNotSupportedException
I'm using WindowsCE 4.1 Emulator (which is comming with VS.NET 2003).
Maybe I should upgrade my emulator to 4.2? If it's so, where I can find
useful resource?
Thnx,
Alex
"Ilya Tumanov [MS]" said:
Alex,
You sure can return (and pass) untyped DataSet.
[WebMethod]
public DataSet GetMyDataSet() {
DataSet ds = new DataSet();
// Get data to the DataSet here...
return ds.
}
Typed DataSet's are not supported by CF, so you should not use them (though
you can if you really really need it).
Using XmlDataDocument is a very bad idea from performance point of view.
It's not great by itself, and XmlDataDocument will make it even worse.
Best regards,
Ilya
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Alex" <
[email protected]>
Subject: CF.NET and XMLWebService
Date: Tue, 13 Apr 2004 14:10:38 +0300
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.framework.compactframework
NNTP-Posting-Host: 80.81.33.28
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12