axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacobo Sánchez López (JIRA) <axis-...@ws.apache.org>
Subject [jira] [Updated] (AXIS-2902) WSDL2Java generated code does not compile
Date Thu, 29 May 2014 11:17:01 GMT

     [ https://issues.apache.org/jira/browse/AXIS-2902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacobo Sánchez López updated AXIS-2902:
---------------------------------------

    Description: 
I have a WSDL document that generates a code that does not compile
Im attaching a sample WSDL to reproduce the bug
Using SoapUI to generate the code. It passes the following parameters to axis:
     command: java, -cp, <jars>, org.apache.axis.wsdl.WSDL2Java, -v, -T, 1.2, -o, <outdir>,
<wsdldir>
Errors found in .java files:

*HRBindingStub.java:*  ';' expected
> Method throwing an array at line 257: 
   bq. public url.com.Acc_RefsRootType fnd_Acc(url.com.Acc_FndType body) throws java.rmi.RemoteException,
url.com.Prt_FaultType, *url.com.Val_ErrorType[]* \{

*Acc_RefsRootType.java:*
{quote}

public class Acc_RefsRootType  implements java.io.Serializable \{
    private java.lang.String version;  // attribute

    private url.com.Acc_Ref_WWSType[] acc_RefsType;  // attribute

    public Acc_RefsRootType() \{
    \}

    public Acc_RefsRootType(
           java.util.Date As_Of_Date,
           url.com.Acc_Ref_WWSType[] param1,
           java.lang.String version) \{
        super(
            As_Of_Date);
        this.param1 = param1;
        this.version = version;
    \}

{quote}
> call to super(As_Of_Date) when there is no super class (just implements Serializable)
> this.param1 = param1; assignation in constructor when variable has been defined as acc_RefsType


> WSDL2Java generated code does not compile
> -----------------------------------------
>
>                 Key: AXIS-2902
>                 URL: https://issues.apache.org/jira/browse/AXIS-2902
>             Project: Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>            Reporter: Jacobo Sánchez López
>
> I have a WSDL document that generates a code that does not compile
> Im attaching a sample WSDL to reproduce the bug
> Using SoapUI to generate the code. It passes the following parameters to axis:
>      command: java, -cp, <jars>, org.apache.axis.wsdl.WSDL2Java, -v, -T, 1.2, -o,
<outdir>, <wsdldir>
> Errors found in .java files:
> *HRBindingStub.java:*  ';' expected
> > Method throwing an array at line 257: 
>    bq. public url.com.Acc_RefsRootType fnd_Acc(url.com.Acc_FndType body) throws java.rmi.RemoteException,
url.com.Prt_FaultType, *url.com.Val_ErrorType[]* \{
> *Acc_RefsRootType.java:*
> {quote}
> public class Acc_RefsRootType  implements java.io.Serializable \{
>     private java.lang.String version;  // attribute
>     private url.com.Acc_Ref_WWSType[] acc_RefsType;  // attribute
>     public Acc_RefsRootType() \{
>     \}
>     public Acc_RefsRootType(
>            java.util.Date As_Of_Date,
>            url.com.Acc_Ref_WWSType[] param1,
>            java.lang.String version) \{
>         super(
>             As_Of_Date);
>         this.param1 = param1;
>         this.version = version;
>     \}
> {quote}
> > call to super(As_Of_Date) when there is no super class (just implements Serializable)
> > this.param1 = param1; assignation in constructor when variable has been defined
as acc_RefsType



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message