Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating JAX-WS Webservices in Glass Fish

 
vamsee krishna reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

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

Thank YOu
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic