Skip to main content

I have added a service reference for a smartobject wcf in web appliacation

I am not getting the getlist method for the smartobject

 

SalesReportSvcClient client = new SalesReportSvcClient();
client.Open();
var salesReport = client.SalesReportSvc_GetList(new SalesReport.SalesReport());
client.Close();

I am not finding the create,update, delete and getlist method for the smartobject

How can i get the list of items using smartobject methods?

I found out the issue

 

I missed the authentication part

 

SalesReportSvcClient client = new SalesReportSvcClient();
client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
client.Open();
var salesReport = client.SalesReportSvc_GetList(new SalesReport.SalesReport());
client.Close();

 


Reply