CodeSmith Community
Your Code. Your Way. Faster!

Custom Procedures in WebService Layer

Latest post 04-19-2007 6:30 PM by JJmartin. 0 replies.
  • 04-19-2007 6:30 PM

    • JJmartin
    • Top 25 Contributor
    • Joined on 05-22-2006
    • Phoenix, AZ
    • Posts 164
    • Points 3,275

    Custom Procedures in WebService Layer

    I have a heavily modified WebService DataAccessLayer but I think this bug is present in the base code.

    In the custom methods section of WsEntityProviderbase.generated.cst  returnType is filled by GetReturnCustomProcReturnType which returns a value like:

    TList<ContentObject>  (for custom stored procs that return TLists)

    which is then compared to collectionClassName which holds a value like

    MyCompany.Business.TList<ContentObject>

    Needless to say, these aren't equal and consequently end up making the webservice raise an unsupported exception.

    Changing collectionClassName to GetCollectionClassName(SourceTable.Name) for the comparison solves this issue.

    Not sure when this changed, just noticed it happening and I haven't got a recent SVN pull lately  (couple of months)

    -Jeff Martin C# MCSD
    Filed under:
    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems