Subsonic with webservice

I am trying to get subsonic start up working in webservice I am not sure how to get the data back. I only get the word Object in my results when it returns anything instead of values. What am I missing?

<WebMethod(Description:="Method to retrieveCptCode subsonic List")> _
Public Function GetSubCptCodes() As CPTCodeCollection

    Dim coll As CPTCodeCollection = New CPTCodeCollection()
    Dim qry As Query = New Query(CPTCode.Schema)
    coll.LoadAndCloseReader(qry.ExecuteReader())
    Return coll

End Function

      

0


a source to share


1 answer


There are some disadvantages to consider when using SubSonic + WebService. I think the most successful approaches did not return SubSonic objects directly, but rather used something likereturn coll.ToDataTable().

Mitch explained some of the pitfalls:

http://www.enterpriseetc.com/post/SubSonic-Take-2.aspx



This thread discusses using WCF instead of the old web services model

http://forums.subsonicproject.com/forums/t/542.aspx

+2


a source







All Articles