You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/11/01 15:31:36 UTC
[jira] Resolved: (AXIS-1602) Stub file from wsdl2java makes something wrong in J2SE5.0
[ http://nagoya.apache.org/jira/browse/AXIS-1602?page=history ]
Davanum Srinivas resolved AXIS-1602:
------------------------------------
Resolution: Fixed
Use org.apache.axis.constants package. Also note that all generated stubs (using WSDL2Java) now use the org.apache.axis.constants package.
-- dims
> Stub file from wsdl2java makes something wrong in J2SE5.0
> ---------------------------------------------------------
>
> Key: AXIS-1602
> URL: http://nagoya.apache.org/jira/browse/AXIS-1602
> Project: Axis
> Type: Bug
> Versions: 1.2RC1
> Environment: Axis1.2RC1 with windows 2000 professinal/J2SE5.0/Eclipse3.1
> Reporter: BMK
> Priority: Blocker
> Attachments: RFIDServerSoapBindingStub.java, rfid.wsdl
>
> 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...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.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