I have created a SOAP service which has some optional method arguments. I have found some issues:
- While calling the web service I always need to pass all the arguments irrespective of whether they are optional or not.
- I found that in ColdFusion we can omit the optional arguments by adding
omit=true
incfinvokeargument
. But still we need to addcfinvokeargument
for each argument. It doesn't solve much problem. - Since a web service is meant to be accessible from any platform or language, the
omit=true
hack may not be available in other languages.
So my question is, how to deal with the issues. Is there any way to get rid of optional arguments while calling a web service?