RE: [ACFUG Discuss] CF 10 webservice complex type within complex type

2013-09-17 Thread Charlie Arehart
I often see people trying to make XML processing work in one way when there are far better ways, just not well understood. I would always recommend to anyone doing XML processing in CFML that they take 30 minutes to look over what I think is a classic on this topic, by Nate Weiss, "Utilizing XML an

Re: [ACFUG Discuss] CF 10 webservice complex type within complex type

2013-09-17 Thread Ajas Mohammed
Ok makes sense. I was checking it the wrong way, i.e. isArray(benefits[1]) which is wrong. Per your code, it should be #isArray(benefits)# Thanks a lot. iUseDropbox(http://db.tt/63Lvone9) http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, fin

RE: [ACFUG Discuss] CF 10 webservice complex type within complex type

2013-09-17 Thread Bill Beers
I think I used cfloop. Basically Benefits[i].benefitType . etc. then you can do the same loop for the #arraylen(benefit[i].medcert)# From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed Sent: Tuesday, September 17, 2013 12:43 PM To: discussion@acfug.org Subject: Re:

Re: [ACFUG Discuss] CF 10 webservice complex type within complex type

2013-09-17 Thread Ajas Mohammed
Bill, Great suggestion. So lets say there are 3 benefits sent in webservice, can you think of how I could loop through them? I can get no of elements in benefits struct via StructCount is : #StructCount(benefits[1])# , which in this case gives me 3 because,#StructKeyList(benefits[1])# StructKeyL

RE: [ACFUG Discuss] CF 10 webservice complex type within complex type

2013-09-17 Thread Bill Beers
You should be able to access it as you expected. ComplexObj.benefits[x].medcert[i]."certfield" I did a similar service for products and skus. Regards, Bill From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed Sent: Tuesday, September 17, 2013 12:12 PM To: discussio