[ 
https://issues.apache.org/jira/browse/AXIS2-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13013736#comment-13013736
 ] 

liz commented on AXIS2-3495:
----------------------------

This issue can be solved by implementing the code in another way.

        
(1) When you use wsdl2code tag to generate your code, supply 
serversideinterface="true" as an attribute. Therefore, 
XXXSkeletonInterface.java will be generated

      <wsdl2code wsdlfilename="wsdl/${name}/${name}.wsdl"
                 serverside="true"
                 generateservicexml="true"
                 skipbuildxml="true"
                 serversideinterface="true"

      ...

(2) In stead of adding any customed code into the Skeleton class, put the  code 
into a Skeleton impl class which implement the XXXSkeletonInterface. The class 
defination will be like below:

public class XXXImpl implements XXXSkeletonInterface
{
   //interface method implemention defined here with custom code
}

(3) Then, in your service.xml, sepcify your Impl class as the ServiceClass      
<parameter name="ServiceClass">
    com.ws.XXXImpl
</parameter>

By doing so, you have freedom to regenerate your Skeleton based on your WSDL 
file change without losing your custom code.

> WSDL2Java can not modify the "Skeleton" code in order to generate changes 
> according to the WSDL
> -----------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3495
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3495
>             Project: Axis2
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK 1.6
>            Reporter: Joseph Nguyen
>            Assignee: Amila Chinthaka Suriarachchi
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Code generator from Apache Axis2 does not properly modify the 'Skeleton' code 
> in order to add changes according to the 'wsdl'.
> 1. If the 'Skeleton' code is used or modified by a programmer, the Code 
> Generator cannot modify it.  In order
>     to obtain the changes according to the WSDL, a programmer has to save his 
> 'Skeleton' code and remove
>     it from the directory before running the Code Generator.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to