• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

SOAP response not as per the WSDL Mapping

Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello ,

I have developed web service as per the WSDL ( contract First approach).

I have created Java artifacts , as per the WSDL using wsimport. Due to some work requirement, I have to add few more properties in the response , which are not part of the WSDL.

But now I want to have SOAP response as per the WSDL schema..

But due to some unknown reason, added properties in response is also coming in SOAP response.

How can I restrict the behaviour??

thanks in advance.

Ranch Hand
Posts: 2198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, manually adding "properties" to a SOAP message starting from generated artifacts may cause maintenance problems later on.
If you have additional information that need to be enclosed with a request or response that is not part of the SOAP message, I would suggest using SOAP headers for that information.
This way, you can still pass the information but do not need to modify the generated artifacts. You will also adhere to the WSDL, which also is a good thing.
Best wishes!
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic