R
Ren
Hello all,
I am trying to localize some of the web methods in my web service so
I've created an enum in my web service of the allowed languages:
public enum Language
english
french
end enum
The first parameter in my new web methods is of the type "language".
On my client side if I pass either "english" or "french" everything is
fine, however if I leave the parameter blank I receive the error:
Cannot convert to WebService.Service+Language.
Parameter name: type --> Must specify valid information for parsing in
the string.
Is there anyway that I can accept either a blank (null) or an enum
value for this parameter without throwing this error if the value is
blank? I'd like to be able to default the language to english if no
language is specified.
thanks for you help
Ren
I am trying to localize some of the web methods in my web service so
I've created an enum in my web service of the allowed languages:
public enum Language
english
french
end enum
The first parameter in my new web methods is of the type "language".
On my client side if I pass either "english" or "french" everything is
fine, however if I leave the parameter blank I receive the error:
Cannot convert to WebService.Service+Language.
Parameter name: type --> Must specify valid information for parsing in
the string.
Is there anyway that I can accept either a blank (null) or an enum
value for this parameter without throwing this error if the value is
blank? I'd like to be able to default the language to english if no
language is specified.
thanks for you help
Ren