Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SOAP response not as per the WSDL Mapping  RSS feed

 
ashirvad jain
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • 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.

 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!