I need some help with this code, i'm almost new with this language. I got (for example) this SOAP input:
<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 >
I have a method that processes the arguments and stored in a database. But my question is, how can i process the multiple values of 'boxes'?
By example:
public string person(string name, string sex, ??? boxes)
{
foreach(??? in boxes)
{
boxes.title???
boxes.items???
}
string response = "ok";
return response;
}
How can i get that values?
it is a POST. The soap came like a parameter (or argument) in the method. I can't read it like a text and then convert to XML!