axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Commented: (AXIS-1602) Stub file from wsdl2java makes something wrong in J2SE5.0
Date Tue, 12 Oct 2004 07:24:53 GMT
The following comment has been added to this issue:

     Author: Steve Loughran
    Created: Tue, 12 Oct 2004 12:23 AM
       Body:
We know there are issues w/ Axis on 1.5; enum is only part of the problem, merely a more visible
one (i.e, sun added a new reserved word without warning). The other issue is the XML parser
and DOM3 changes, which are equally fundamental.

As it stands, Axis1.2 will not compile on java1.5; there is development version in the subversion
repository which fixes up the enum naming issue, but is still to be actively worked on. This
also means that Axis1.2 will not work on Java1.5

I know this isn't a good solution for you; it isn't ideal for us either. We were unfortunate
to have used enum in a public package name, at a time when it wasnt even a 'we may use this
in future' reserved word, leading to compatibility problems all round. Note that when C++
versions add new reserved words, the tendency is to use __ underscore prefixes to avoid such
problems, but no, Sun don't care about developers that much.

DOM3 is another issue.


---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1602?page=comments#action_53924

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1602

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1602
    Summary: Stub file from wsdl2java makes something wrong in J2SE5.0
       Type: Bug

     Status: Unassigned
   Priority: Blocker

    Project: Axis
   Versions:
             1.2RC1

   Assignee: 
   Reporter: BMK

    Created: Mon, 11 Oct 2004 6:45 PM
    Updated: Tue, 12 Oct 2004 12:23 AM
Environment: Axis1.2RC1 with windows 2000 professinal/J2SE5.0/Eclipse3.1

Description:
Dear all..

Stub file from running wsdl2java on J2SE5.0 makes some compile-time errors against J2SE5.0
scheme.. with "enum". 


e.g. 
generated STUB file from attached WSDL.. is ..

........

public class RFIDServerSoapBindingStub extends org.apache.axis.client.Stub implements test.skcc.rfid.serverdriver.RFIDServerServiceDriverInterface
{
	...........

    private static void _initOperationDesc1(){
        org.apache.axis.description.OperationDesc oper;
        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("getAllReaderInformation");
        oper.setReturnType(new javax.xml.namespace.QName("urn:test.skcc.rfid.serverdriver",
"ArrayOfReaderInformation"));
        oper.setReturnClass(test.skcc.rfid.serverdriver.ReaderInformation[].class);
        oper.setReturnQName(new javax.xml.namespace.QName("", "getAllReaderInformationReturn"));
        oper.setStyle(org.apache.axis.enum.Style.RPC);  // <- org.apache.axis package name
is compile-time error in J2SE5.0
        oper.setUse(org.apache.axis.enum.Use.ENCODED); // <- org.apache.axis package name
is compile-time error in J2SE5.0
        _operations[0] = oper;

        oper = new org.apache.axis.description.OperationDesc();
        oper.setName("getReaderInformation");
        oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("urn:test.skcc.rfid.serverdriver",
"ReaderSearchCondition"), test.skcc.rfid.serverdriver.ReaderSearchCondition.class, org.apache.axis.description.ParameterDesc.IN,
false, false);
        oper.setReturnType(new javax.xml.namespace.QName("urn:test.skcc.rfid.serverdriver",
"ArrayOfReaderInformation"));
        oper.setReturnClass(test.skcc.rfid.serverdriver.ReaderInformation[].class);
        oper.setReturnQName(new javax.xml.namespace.QName("", "getReaderInformationReturn"));
        oper.setStyle(org.apache.axis.enum.Style.RPC);
        oper.setUse(org.apache.axis.enum.Use.ENCODED);
        _operations[1] = oper;

    }

	........
}

Thank you...



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message