如何打印响应xml [英] How to print the response xml

查看:45
本文介绍了如何打印响应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屋!

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