使用方法GetVocabulary()从类型ID vocabulory获取显示文本 [英] Getting Display text from Type ID vocabulory using method GetVocabulary()

查看:254
本文介绍了使用方法GetVocabulary()从类型ID vocabulory获取显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用
GetVocabulary()方法,我只获取Type id列表,缺少显示文本信息。以下是我查询类型ID的方法


<wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">
<auth>
<hmac-data algName="HMACSHA256">7faIhL93IHTB1BywN/RaVwa+oj5Mk=</hmac-data>
</auth>
<header>
<method>GetVocabulary</method>
<method-version>1</method-version>
<record-id>74ec1755-fb89-4282-9f83-a3b84474b2ef</record-id>
<auth-session><auth-token>MeXxD9VZqlVZiRKA6eHjl8f0Pafnvf8XbsHTbCVU4ttMihrP+yxacqcwU6x/R7ws8LKNugoPjUfWMoi9lXeXmU9xR67/jEyc0jH+2bWTVxla7yTFMPk+Jqb1PhzjLk+1DZ0RGyCM0Txf0/lw/vl1DPGKM2LAKAoUjBj2OHVi73JY4q/Q/i6CrdBl0GQJxkca6Vs9g5a1OOkaU9bRklYbGStkUo62bhQQTniospEmCu+QoeknXMFaz0owOmgKPd3DLl+najEuzEka+LsbB2ZNyct1Fs+DCinGwaSsvlTiDo49b7ZQrKZw==</auth-token>
<offline-person-info><offline-person-id>db120992-5bdb-41abb5090d0</offline-person-id></offline-person-info>
</auth session>
<language>en</language>
<country>US</country>
<msg-time>2011-09-09T16:09:14.789Z</msg-time>
<msg-ttl>1800</msg-ttl>
<version>iOS V1.0</version>
<info-hash>
<hash-data algName ="SHA256"> AKCRTL/31UQAD/71uUR7QcmwYvqknw=</hash-data></info-hash>
</header>
<info>
<vocabulary-parameters>
<vocabulary-key>
<name>thing-types</name>
<family>wc</family>
<version>1</version>
</vocabulary-key>
<fixed-culture>true</fixed-culture>
</vocabulary-parameters>
</info>
</wc-request:request>

推荐答案

我建议调用GetThingTypes而不是GetVocabulary来得到这个信息;你会在返回的信息中找到这个名字。

I recommend calling GetThingTypes instead of GetVocabulary to get this information; you will find the name in the returned information.

如果你想去词汇路线,你能提供回来的xml吗?

If you want to go the vocabulary route, can you provide the xml that is coming back?


这篇关于使用方法GetVocabulary()从类型ID vocabulory获取显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆