Receiving multiple nodes of the same type with SOAP

I’ve created a webservice without any problems with nuSoap. One that takes a static number of fields for input. But how do I handle dynamic input? Example:

<product>
    <sku>555</sku>
    <name>something</name>
</product>
<product>
    <sku>123</sku>
    <name>anothersomething</name>
</product>

In the example there are two products. I would need a dynamic number of fields to accept these products in the web service.

I can’t just have one field for input and accept a whole slew of XML because that would invalidate the payload unless I used htmlentities on it beforehand….

Any ideas as to how I would accomplish this?

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories