TranslateArray 请求中的“类别”属性是预定义列表还是在请求期间打开以指定?
<TranslateArrayRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AppId xsi:nil="true" />
<From>en</From>
<Options>
<Category xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2">pets</Category>
<State>0</State>
</Options>
<Texts>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">dog</string>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">cat</string>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">fish</string>
</Texts>
<To>fr</To>
</TranslateArrayRequest>
产生以下响应:
<html>
<body>
<h1>Argument Exception</h1>
<p>Method: TranslateArray()</p>
<p>Parameter: category</p>
<p>Message: Invalid category
Parameter name: category</p>
<code></code>
<p>message id=0243.V2_Rest.TranslateArray.148495FA</p>
</body>
</html>
API 文档中的定义:
类别:包含翻译类别(域)的字符串。默认为一般
但是如果这不是自定义字段,还不清楚还有哪些其他类别?