Ask a questionAsk a question
 

QuestionServiceOperations and Boolean Parameters in a VB client

  • Wednesday, October 14, 2009 11:40 AMDave Russell Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Guys,
    I'm using 1.5CTP1 and I've just spent a couple of hours trying to work out why my client-side code always gave me "Bad Request" error when I called my Service Operation, but I could call it just fine using the URL directly.

    It turns out that a boolean in vb.net equates to "True" or "False" in the query string, but a boolean parameter to a service operation can only be accepted as "true" or "false".

    No big deal, I've just put an IIF(param,"true","false") around it but I thought you would want to know so you can fix it in the next version :)

    Dave