Webservice, missing non generated partial code.
i have database access layer contains dataset partial class has been created contain search methods on tables. business logic layer references dal , partial class code picked , works correctly. webservice references bll.
the application consumes web service, through have access dataset, though not pick partial class code have added.
below partial class
namespace dataaccesslayer {
public partial class databasedataset
{
public partial class permissiondatatable
{
public dataaccesslayer.databasecfmdataset.permissionrow findbyguid(string guid)
{
system.data.datarow[] rows = select("guid = '" + guid + "'");
if (rows != null && rows.length == 1)
return (dataaccesslayer.databasecfmdataset.permissionrow)rows[0];
return
null;
}
}
}
any on trying access information welcome.
regards
greigg
the application consumes web service, through have access dataset, though not pick partial class code have added.
below partial class
namespace dataaccesslayer {
public partial class databasedataset
{
public partial class permissiondatatable
{
public dataaccesslayer.databasecfmdataset.permissionrow findbyguid(string guid)
{
system.data.datarow[] rows = select("guid = '" + guid + "'");
if (rows != null && rows.length == 1)
return (dataaccesslayer.databasecfmdataset.permissionrow)rows[0];
return
null;
}
}
}
any on trying access information welcome.
regards
greigg
hi,
only xml representation of dataset class (xsd types) will exposed in web service wsdl. (if add behavior classes, such finder method, not published). therefore, client application or web service consumer see common dataset without business methods.
i wrote post in blog couple of weeks ago, http://weblogs.asp.net/cibrax/archive/2006/11/29/recommendations-to-design-message-contracts.aspx
regards,
pablo.
Archived Forums A-B > ASMX Web Services and XML Serialization
Comments
Post a Comment