bug with sending null elements of DataSet[] ?



Using dotnet : 2.0.50727.1433

To reproduce problem :

On server side :
==
[WebMethod]
public void SendDataSetArray(DataSet[] ds)
{
string str = "ds[0] is null ? : " + (ds[0] == null).ToString(); //
XXX
}
==

On client side, call webmethod like this :
==
DataSet[] ds = new DataSet[1];
ds[0] = null;
ws.SendDataSetArray(ds);
==
where : ws is an instance of the web proxy object.

So, on server side, I expected to see a DataSet array with one element,
where that element contains null.
However, I'm seeing a DataSet array with one element, where that element is
an empty DataSet (non-null !) which contains zero DataTables.

i.e. str at line XXX gets set to : "ds[0] is null ? : False"

Does this look like a bug, or am I missing something ?

TIA





.



Relevant Pages

  • Re: bug with sending null elements of DataSet[] ?
    ... On client side, call webmethod like this: ... So, on server side, I expected to see a DataSet array with one element, where that element contains null. ... This should have been a big hint to the client, but apparently, it was not. ... public int ID ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Calling COM Server from ASP.NET WebService - impersonation pro
    ... is a COM+ server luckily) it works! ... I want to call a COM+ server from a webservice. ... and check the current User it is the client as it should be. ... I thought that would happen automatically since the webmethod is ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Send DataTable from Client to WebService using DIME
    ... that when you pass DataTable to WebMethod, ... from server to client, but not from client to server... ... "Dilip Krishnan" wrote: ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Calling COM Server from ASP.NET WebService - impersonation problem
    ... I want to call a COM+ server from a webservice. ... and check the current User it is the client as it should be. ... I thought that would happen automatically since the webmethod is ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Maintaining Object state in XML WS problem.
    ... Make a socket connection to Server - myObj.open ... I have tried to do Application; to presiste myObj across ... the WebServices after i called the openConnectionWSwebmethod. ...
    (microsoft.public.dotnet.framework.webservices)