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 "Adam Crume (JIRA)" <ji...@apache.org> on 2008/05/29 23:55:46 UTC
[jira] Created: (AXIS2-3830) wsdl2java not mapping nillable
elements to wrapper classes
wsdl2java not mapping nillable elements to wrapper classes
----------------------------------------------------------
Key: AXIS2-3830
URL: https://issues.apache.org/jira/browse/AXIS2-3830
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: codegen
Affects Versions: 1.4
Reporter: Adam Crume
I have a WSDL which contains (in part):
<element name="searchLogs">
<complexType>
<sequence>
<element name="tableID" nillable="true" type="xsd:int"/>
....
</sequence>
</complexType>
</element>
<wsdl:message name="searchLogsRequest">
<wsdl:part element="intf:searchLogs" name="parameters"/>
</wsdl:message>
<wsdl:operation name="searchLogs">
<wsdl:input message="intf:searchLogsRequest" name="searchLogsRequest"/>
<wsdl:output message="intf:searchLogsResponse" name="searchLogsResponse"/>
</wsdl:operation>
and the generated ADB code uses an int for the parameter rather than an Integer. This happens for both wrapped and unwrapped.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3830) wsdl2java not mapping nillable
elements to wrapper classes
Posted by "Yoav Naveh (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667122#action_12667122 ]
Yoav Naveh commented on AXIS2-3830:
-----------------------------------
Is there any way to add the parameter (-Euwc) to the automatic GUI wizard for code generation?
> wsdl2java not mapping nillable elements to wrapper classes
> ----------------------------------------------------------
>
> Key: AXIS2-3830
> URL: https://issues.apache.org/jira/browse/AXIS2-3830
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Adam Crume
> Attachments: autoboxing-patch.txt
>
>
> I have a WSDL which contains (in part):
> <element name="searchLogs">
> <complexType>
> <sequence>
> <element name="tableID" nillable="true" type="xsd:int"/>
> ....
> </sequence>
> </complexType>
> </element>
> <wsdl:message name="searchLogsRequest">
> <wsdl:part element="intf:searchLogs" name="parameters"/>
> </wsdl:message>
> <wsdl:operation name="searchLogs">
> <wsdl:input message="intf:searchLogsRequest" name="searchLogsRequest"/>
> <wsdl:output message="intf:searchLogsResponse" name="searchLogsResponse"/>
> </wsdl:operation>
> and the generated ADB code uses an int for the parameter rather than an Integer. This happens for both wrapped and unwrapped.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AXIS2-3830) wsdl2java not mapping nillable
elements to wrapper classes
Posted by "Adam Crume (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602004#action_12602004 ]
Adam Crume commented on AXIS2-3830:
-----------------------------------
I found out (after looking through the Axis2 source code) that wsdl2java will use wrapper classes if you pass the undocumented parameter -Euwc. I believe the default should be to use wrapper classes.
Also, the generated code relies on autoboxing (introduced in Java 1.5), but Axis2 supposedly only requires Java 1.4 (which is actually a requirement for us): http://ws.apache.org/axis2/1_4/quickstartguide.html
I also recommend a way to view options for the -E parameter.
> wsdl2java not mapping nillable elements to wrapper classes
> ----------------------------------------------------------
>
> Key: AXIS2-3830
> URL: https://issues.apache.org/jira/browse/AXIS2-3830
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Adam Crume
>
> I have a WSDL which contains (in part):
> <element name="searchLogs">
> <complexType>
> <sequence>
> <element name="tableID" nillable="true" type="xsd:int"/>
> ....
> </sequence>
> </complexType>
> </element>
> <wsdl:message name="searchLogsRequest">
> <wsdl:part element="intf:searchLogs" name="parameters"/>
> </wsdl:message>
> <wsdl:operation name="searchLogs">
> <wsdl:input message="intf:searchLogsRequest" name="searchLogsRequest"/>
> <wsdl:output message="intf:searchLogsResponse" name="searchLogsResponse"/>
> </wsdl:operation>
> and the generated ADB code uses an int for the parameter rather than an Integer. This happens for both wrapped and unwrapped.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS2-3830) wsdl2java not mapping nillable
elements to wrapper classes
Posted by "Adam Crume (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Crume updated AXIS2-3830:
------------------------------
Attachment: autoboxing-patch.txt
I attached a patch which manually wraps primitives rather than relying on autoboxing. I doubt I managed to cover all cases, but I got the ones that affect us.
> wsdl2java not mapping nillable elements to wrapper classes
> ----------------------------------------------------------
>
> Key: AXIS2-3830
> URL: https://issues.apache.org/jira/browse/AXIS2-3830
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.4
> Reporter: Adam Crume
> Attachments: autoboxing-patch.txt
>
>
> I have a WSDL which contains (in part):
> <element name="searchLogs">
> <complexType>
> <sequence>
> <element name="tableID" nillable="true" type="xsd:int"/>
> ....
> </sequence>
> </complexType>
> </element>
> <wsdl:message name="searchLogsRequest">
> <wsdl:part element="intf:searchLogs" name="parameters"/>
> </wsdl:message>
> <wsdl:operation name="searchLogs">
> <wsdl:input message="intf:searchLogsRequest" name="searchLogsRequest"/>
> <wsdl:output message="intf:searchLogsResponse" name="searchLogsResponse"/>
> </wsdl:operation>
> and the generated ADB code uses an int for the parameter rather than an Integer. This happens for both wrapped and unwrapped.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org