我正在使用Bing的LanguageService(翻译服务).我产生与SvcUtil工具F#的SOAP客户端代码(和修改了它一点点地得到它的工作),但卡住了一些方法是用这个词来在他们的参数.它在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
Run Code Online (Sandbox Code Playgroud)
我已经尝试过_to和__to而没有运气.
我不知道是否有任何方法可以取消定义关键字或以其他方式定义参数(类似于:SOAPpy - 命名参数列表中的保留字).
提前致谢!
abstract Translate :appId:string * text:string * from:string * ``to``:string * contentType:string * category:string -> string
Run Code Online (Sandbox Code Playgroud)
双反向标记允许您放置几乎任何字符串(包括空格和标点符号,显然是保留字).
归档时间: |
|
查看次数: |
468 次 |
最近记录: |