I need to write a webservice method that takes optional parameters.
i want a method that will take a parameter, do some stuff based on the parameter entered. I also want the same method to be able to execute if no parameter is entered
e.g myMethod(myParam) or myMethod()
Is someone able to show me an example or tuorial?
Thanks for any help
Tim West
Ranch Hand
Joined: Mar 15, 2004
Posts: 539
posted
0
WSDL1.1 identifies operations by name only (not message/parameter type) so Java-style method overloading is not possible.
The best you can do, AFAIK, is to allow for a null parameter (i.e., nillable="true") in your XML Schema.
-Tim
subject: web service method with optional parameters