• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

update response with mock

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I need to overwrite the mock response dynamically on any webservice. I am the client application which consumes the webservice. How do I do that; the stub has been generated using  apache cxf.

Thanks,
Cecilia
 
Sheriff
Posts: 17644
300
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the purpose of doing that?

If it's for testing purposes, I suggest looking at Consumer-Driven Contracts (CDC) using a tool like Pact or Spring Cloud Contract. That way, you can better manage synchronization of  both sides of the conversation. If you don't go that far, you could just stub out the service yourself and have it return whatever it is you need for testing purposes. But CDC is still a better way to go.
 
reply
    Bookmark Topic Watch Topic
  • New Topic