读取响应为XML [英] Reading response as XML
本文介绍了读取响应为XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在打算在Windows XP操作系统上使用C#(VS 2005)中的客户端应用程序来使用Web服务。
Web服务的响应是一个类(下面的示例),但我需要响应为XML本身而不是类。
任何想法 - 如何在不更改Web服务的情况下执行此操作?
示例响应类
i'm wrinting a client application to consume a webservice in C# (VS 2005) on the Windows XP OS.
The response of the webservice is a class (sample below), but i need the response as XML itself instead of class.
Any idea - how can i do this without changing the webservice?
Sample Response class:
class ServiceResponse
{
class customer
{
class customerName
{
FirstName;
SecondName;
}
}
}
我想阅读下面的XML回复
i wanted to read response in XML below
<customer>
<CustomerName>
<FirstName>
<SecondName>
</CustomerName>
</customer>
推荐答案
您将如何处理XML?这只是用于记录吗?
一般来说,这个想法是接收服务发送给你的东西。
What will you do with the XML? Is this just for logging?
Generally, the idea is to receive what the service sends you.
这篇关于读取响应为XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文