Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Updated 15-Feb-17 2:55am

1 solution

 
Share this answer
 
Comments
ArunHanu 15-Feb-17 9:10am    
Hi Richard,

My question is different, I have to understand both. example is same but question is different.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900