如何打印响应xml [英] How to print the response xml
问题描述
我正在使用HealthVault .Net库,我想在文本文件中打印响应xml。我从哪里获得行XML?
I am using HealthVault .Net library and i want to print the response xml in a text file. Where do i get the row XML from?
谢谢
推荐答案
根据您在.NET SDK中使用的类,可以使用不同的方法。
Depending on which classes you're using from the .NET SDK, there are different methods available.
例如 HealthRecordAccessor.GetXml() 或HealthRecordSearcher.GetMatchingItemsRaw()
e.g. HealthRecordAccessor.GetXml() or HealthRecordSearcher.GetMatchingItemsRaw()
这些将为您提供从HealthVault记录中检索的项目的数据xml。
These will give you the data xml for items retrieved from a HealthVault record.
另外,请查看HealthServiceResponseData和HealthServiceResponseError 类。当您想要检查状态代码/错误等时,这些非常有用。
Also, look at HealthServiceResponseData and HealthServiceResponseError classes. These are helpful when you want to check the status codes/errors etc.
这篇关于如何打印响应xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!