Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Using @WebMethod to override the web service operation name

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use @WebMethod(operationName="some_method_name") to override the default web service method name in WSDL.
But its showing the same method name in generated WSDL as inherited by the SEI
Below is the code
SEI


SIB



WSDL

 
Ranch Foreman
Posts: 1905
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is because your SIB is annotated with @WebService (endpointinterface="....")
Try to take away the endpointinterface and see the difference.
 
Mahtab Alam
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Himai, it was due to endpointInterface property. I just removed the endpointInterface property from the SIB and WebMethod annotation worked.
So does it means we can not rename or customize the web service opeartion name If we use endpointInterface property.
 
Himai Minh
Ranch Foreman
Posts: 1905
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When you declare endpointinterface attribute in @WebService, the WSDL is generated based on the name of the methods defined in that interface.
 
    Bookmark Topic Watch Topic
  • New Topic