Question
Creating Web Services
Hi,
I'm trying to create a complex webservice with arrays of complex types and the output is undesirable...
Below is my Internet Component and it has two elements "Website" a string and Zero or More Email objects (i.e. a complex type described by Email.cfc). Notice that the code produced has the <rpc:item> sub element which makes it more difficult for non-cf consumers (which is about 99% of my consumers) to use this web service.
I would prefer the code to be more like:
<Internet>
<Email>
... sub elements go here>
</Email>
<Email>
... sub elements go here>
</Email>
<Email>
... sub elements go here>
</Email>
</Internet>
I'm trying to create a complex webservice with arrays of complex types and the output is undesirable...
Below is my Internet Component and it has two elements "Website" a string and Zero or More Email objects (i.e. a complex type described by Email.cfc). Notice that the code produced has the <rpc:item> sub element which makes it more difficult for non-cf consumers (which is about 99% of my consumers) to use this web service.
I would prefer the code to be more like:
<Internet>
<Email>
... sub elements go here>
</Email>
<Email>
... sub elements go here>
</Email>
<Email>
... sub elements go here>
</Email>
</Internet>
