Thursday, April 16, 2009

Top down Web Service Re-generation using JDeveloper

You may have noticed (or got burnt!) that JDeveloper overwrites your server side Java implementation class with a skeleton whenever you have to re-generate a web service due to changes to WSDL or Schemas?

Here is a way around this issue.

Your application server container will find your implementation class, if you do the following.

  • Write your own service implementation class with appropriate operations and make it extend JDeveloper generated server skeleton class.
  • Locate element <servlet> in /public_html/WEB-INF/web.xml
  • Modify <servlet>/<servlet-class>element to refer to your class (package.classname) instead of JDeveloper generated class.

No comments: