C# 带SOAP的C-多参数值
我需要一些关于这段代码的帮助,我对这门语言几乎是新手。 例如,我得到了以下SOAP输入:C# 带SOAP的C-多参数值,c#,soap,arguments,multiple-arguments,C#,Soap,Arguments,Multiple Arguments,我需要一些关于这段代码的帮助,我对这门语言几乎是新手。 例如,我得到了以下SOAP输入: <person xmlns="http://www.example.com/ws/"> <name>Elmer</name> <sex>Male</sex> <boxes> <box> <title>shoes</title> <items>
<person xmlns="http://www.example.com/ws/">
<name>Elmer</name>
<sex>Male</sex>
<boxes>
<box>
<title>shoes</title>
<items>5</items>
</box>
<box>
<title>shirts</title>
<items>2</items>
</box>
<box>
<title>hats</title>
<items>4</items>
</box>
</boxes>
</person >
我怎样才能得到那个值
这是一个帖子。soap就像方法中的一个参数或参数。我不能像阅读文本一样阅读它,然后再转换成XML 你的参数是如何从soap输入中派生出来的?我无法访问它。我只是接受和工作,我能做这样的事吗?public string personXmlDocument everything{???}可能重复的检查此问题,我认为它将帮助您:
public string person(string name, string sex, ??? boxes)
{
foreach(??? in boxes)
{
boxes.title???
boxes.items???
}
string response = "ok";
return response;
}