Can't do one arg with xml type if using a CFC as a web
service, it won't create the WSDL correctly if you want ColdFusion
to do it automatically and any consumer will not know what to pass
into it unless you publish documentation saying exactly what you
need.
You need to use CFCs as Web service types here:
http://www.adobe.com/go/tn_19169
has an example.
For you, the rough structure for one way to do it would be
(assuming your actual web service would be called WebService.cfc)
- WebService.cfc
- InsuranceQuotes.cfc
- InsuranceQuoteType01.cfc
- InsuranceQuoteType02.cfc
....
- InsuranceQuiteType10.cfc
Then, you would do the following as seen in the attached
code.
Note the type of [] on the InsuranceQuotes.cfc, this means an
array of the CFC web service types.
That is the rough answer, harder to give more details without
hard code examples. You might be able to get rid of the
intermediate InsuranceQuotes.cfc but at the moment this is the way
I would do it.