vb.net - How to return list from webservice -
vb.net - How to return list from webservice -
within webservce myservice. documentlist class containing properties id, name -- class serializable
public function getdoclist(args...) list(of documentlist) 'code add together documentlist 'no issue here... end function
within project.
dim thisservice new myservice sub main dim doclist new list(of documentlist) doclist = thisservice.getdoclist(args...) end sub
i error - cannot convert -1 dimensional array generic list of documentlist. if consume documentlist within service, no issues. can iterate each. but, within project, calls service, cannot consume documentlist. have set service pass string, , possible. list(of documentlist) issue.i think may need reflection, or proper understanding of collections. not sure. give thanks you.
dim doclist documentlist()
cannot homecoming complex type, had set documentlist array in project calling webservice. http://www.asquestion.com/question/60333227137608045/problem-returning-a-collection-from-a-web-service
vb.net web-services list
Comments
Post a Comment