• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Webservice evolution - need to a parameter to an existing WebMethod.

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello;
I dont do a lot of webservice work so sorry for my novice understanding.

I have an existing web service that is used by lots of clients.




Foo[] methodA(@WebParam(name = "param1") Engine engine, @WebParam(name = "date") Date date);




In a specific client (flash web app) I need to pass an additional param.




Foo[] methodA(@WebParam(name = "param1") Engine engine, @WebParam(name = "date") Date date, @WebParam(name = "clientTimeZoneOffset"), Long clientTimeZoneOffset);




of course method A is called by a diverse variety of clients, only 1 needs to pass in the timezone offset.
In my study of webservices, I recollect some issue with parameters for methods exposed by webservices but cannot remember the full details. WHAT ARE THE RULES???

I am getting the following
main ]|2013-09-25 12:02:09,584|ERROR||| ContextLoader:307|Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: An operation with name [{http://mycompany.com/}methodA] already exists in this service

I have found documentation that says I can methods where the type varies, but not the number of args. Can I???



 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic