Hi everybody, my question of the week is almost described in the title. I have a web service, generated with axis2 : wsdl2java... from my wsdl/xsd files.
It working, deployed on application servers (jboss and axis2 in tomcat) Now, I want to add new services and request for this web service. For that, I modify my wsdl file, and maybe create some new types in the related xsd files. If I use wsdl2java and specify the new services I've created in my wsdl, it will generate : the stub,skeleton,skeletoninterface,callbackhandler and messagereceiverInOut for the service, here it's ok. It will generate also : the request/response files with all the method to get,set, parse the datas... here it's still ok. my problem is : some types used by the old requests have been modified. Axis will generate all the types used by the new requests, and so overwrite the modified types. Is there a solution to explain to axis (wsdl2java) to generate only the new types that are not already created ? like checking if the "usertype.java" already exist ? For now, my solution is to generate the files in a new folder, and copy just the new files.. but it's not a very good solution.. the other should be to protect the old files by blocking the writing permission... not so good too... So I'm just looking for a solution to explain to axis that it just have to generate the files not already created. any ideas ? thanks guys.
