我们如何使用C#检查XML文件的响应 [英] How do we check response from XML file using C#

查看:72
本文介绍了我们如何使用C#检查XML文件的响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从documentum获取一些Employee文档。

我的客户端发送两个XML文件来查找文档ID,然后是文档中使用的Emp Document编号。



一旦我得到了文档ID,我只是将其传递给我的最终服务URL(REST API服务)来下载文档。



以上步骤,我想在asp.net中执行。



如何做到这一点......?



我的尝试:



REST API的新功能。需要参考。

I want to fetch some Employee documents from documentum.
My client send two XML file to find the document id followed by Emp Document number which is used in documentum.

once i get the document id, i just pass this to my final service URL (REST API Service) to download the document.

The above steps, i want to perform in asp.net.

How to do this...?

What I have tried:

New for REST API. need reference for this.

推荐答案

有几种方法可以做到,但 WebClient 可能是最简单的。

请参阅此处的示例:在C#中使用RESTful API的几种好方法 - 代码迷宫 [ ^ ]
There are several ways to do it, but WebClient is probably the simplest.
See examples here: A Few Great Ways to Consume RESTful API in C# - Code Maze[^]


编写代码。实际代码。目前还不清楚你的XML文档中有什么,但是我假设用户的ID来自数据库?尝试自己完成后,尝试编写代码并询问具体问题
Write code. Actual code. It's unclear what's in your XML document, but I assume the ID of a user to get from a database? Try writing code and asking specific questions when you get stuck after trying to do it yourself


这篇关于我们如何使用C#检查XML文件的响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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