wcf - F# SOAP client with reserved word in parameter -
wcf - F# SOAP client with reserved word in parameter -
i'm using languageservice (translation service) bing. generated f# soap client code svcutil (and modified little got working) got stuck methods utilize word to in parameters. , reserved in f#.
[<system.servicemodel.operationcontractattribute(action="http://api.microsofttranslator.com/v2/languageservice/translate", replyaction="http://api.microsofttranslator.com/v2/languageservice/translateresponse")>] abstract translate :appid:string * text:string * from:string * to:string * contenttype:string * category:string -> string
i tried _to , __to without luck.
i don't know if there way undefine keywords or define parameter way (something this: soappy - reserved word in named parameter list ).
thanks in advance!
abstract translate :appid:string * text:string * from:string * ``to``:string * contenttype:string * category:string -> string
double back-ticks allow set string (including spaces , punctuation, , reserved words).
wcf soap f#
Comments
Post a Comment