I am new to Glass fish. i am planning to develop a simple web service in Glass Fish. i have tried with JAX-WS. but the problem is i am not not able to see the exact names of input params in wsdl, Say web method is public String get Name(String MyName), i am expecting the WSDl to show Inputas MY name rather tham param1. i was not able to set any kind of style here and i think this is causing problem.
Any kind of help is greatly appreciated
posted 6 years ago
Strictly speaking, not setting a name for a parameter of a web service method should not cause any problems, if the web service is correctly developed.
In the case that you want to customize the element name that appears in the WSDL corresponding to a parameter of your web service method, I suggest taking a look at the @WebParam annotation.