This content has been marked as final. Show 3 replies
I knew I've seen a similar issue with someone else having a hard time consuming enumerated value types on this forum, but it took me FOREVER to find it with the Adobe forum search interface. ug.
Anyway, I think the answer to your problem can be found in this thread in the house of fusion forums:
Thanks, for the response, but my question really is: What if the application doesn't know the domain of enumerated values (e.g. 'USD' and 'GBP')? How can it possibly pass in a valid enumeration option?
I think I've come up with a work-around (which basically involves side-stepping CF's native webservice support), but it's messy.
I think my problem would be solved if CF's version of Axis/WSDL2Java* were to add a method to the class (i.e. the one representing the particular WSDL enumeration) which returns a list or array of enumeration values (e.g. 'AFA, ALL, DZD...'), so that I could use that to select the desired enumeration object and then pass it along to the web method.
* This might be the problem:
UPDATE - nevermind my last post, I just went back and reread the original post.
Assuming you are collecting the data on your end before passing it to the webservice, wouldn't you have to perform data mapping from your data to the enumeration values anyway? In that case, why would it matter that your application can't see the enumerated values (which, by the way, you CAN do with a combination of CFHTTP and XMLParse())?