• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL and client generation  RSS feed

 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have WSDL URL of a webservice and have to incorporate web service client code. I am using IBM RAD and hopefully through a wizard it will use WSDL2Java tool and get me the necessary java code required.

I am thinking to create a jar of this java code and use it for my application.

But then, if the wsdl changes then I will have to repeat this process again. Is there any better way to handle this?
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't create jar each time.
Include the generated client files as part of your project.

If you're using Maven, go for CXF codegen plugin, so each time you update wsdl file in your project, the build process takes care of regenerating the client code.
 
Akhilesh Trivedi
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not on Maven.
 
Niiraj Patel
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Akhilesh, It is necessary to generate new stubs and I believe when wsdl changes, you may have to observe new changes and you might required to change some business logic.
So, it is better to generate new classes by your self.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!