2008/7/11 Yoav Naveh <[EMAIL PROTECTED]>:
> However, when I need to update my web service (add new function / parameter
> to an existing function) - is it possible to only update the WSDL and then
> synchronize the code against it?
The code generator won't modify existing code, it'll only overwrite AFAIK.
> Updating the code is inconvenient and regenerating the entire skeleton as
> new from the WSDL would (obviously) overwrite the class and require me to
> re-enter all the functions already implemented.
The recommended approach to this is to write classes implementing the
service interfaces yourself, in a different package, and leave the
auto-generated skeleton implementations alone. (Obviously you can copy
these as a place to start...) That way none of your code will get
overwritten. You also have to change the references to the skeletons
in services.xml to point to your own implementation classes. I do this
in an ant task like this:
<replace file="${codegen.dir}/resources/services.xml">
<replacetoken>info.cathdb.ws.grid.RetrieveSkeleton</replacetoken>
<replacevalue>info.cathdb.grid.axis2bridge.RetrieveImplementer</replacevalue>
</replace>
Let me know if that doesn't make sense and I'll attempt to explain better.
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]