I have a asmx webservice returning JSON data. But when I add webreference 2.0, I am getting void return type on my end operation
example data when I make direct call to URL "http://XX.XXX.XX.XX:88/tabsaleswithdatasync.asmx/FeatureMaster"
[{"msg":"","FeatureSlno":"2","Feature":"Fuel Used","DefaultValue":"","FeatureType":"B","Groups":"OverView","GroupOrder":"0","SubGroupOrder":"0","CategorySlno":"2","UtilisationSlno":"1","IconImagePath":"","LowerIsBetter":"0"},{"msg":"","FeatureSlno":"3","Feature":"Seating Capacity","DefaultValue":"","FeatureType":"B","Groups":"OverView","GroupOrder":"0","SubGroupOrder":"0","CategorySlno":"3","UtilisationSlno":"0","IconImagePath":"","LowerIsBetter":"0"}]
proxy webservice generated using wsdl is
public System.IAsyncResult BeginFeatureMaster(System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("FeatureMaster", new object[0], callback, asyncState);
}
public void EndFeatureMaster(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
Why am i not getting return type as object as I require ???
What I have tried:
Right click on project and add webreference option