问题描述
结构:1、AboutJournalsEntity.cs需要解析的类型publicclassAboutJournalsEntityMobileList{publicList<AboutJournalsEntityMobile>col{get;set;}publicintcolCount{get;set;}}2、IJournalsWebService.cs接口namespaceJounalsWCF{//注意:使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IJournalsWebService”。[ServiceContract][ServiceKnownType(typeof(AboutJournalsEntityMobileList))]publicinterfaceIJournalsWebService{[WebInvoke(UriTemplate="getJournalObj/{PageSize}/{PageNo}/{ContentKey}",Method="GET",ResponseFormat=WebMessageFormat.Json)]objectgetJournalObj(stringPageSize,stringPageNo,stringContentKey);}}3、JournalsWebService实现代码publicobjectgetJournalObj(stringPageSize,stringPageNo,stringContentKey){SQLAccessModelomdb=newSQLAccessModel();......SqlDataAccessodb=newSqlDataAccess();returnodb.getSqlDataObj(omdb);}调用的时候还是没有返回,断点测试数据已经返回到实现的代码中,有可能是wcf解析的时候出了问题。盼指教。