| Summary: | DBWS should support optional argument queries | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Mike Norman <michael.norman> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | david.twelves, eclipselink.dbws-inbox | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | 339905 | ||||||||
| Bug Blocks: | |||||||||
| Attachments: |
|
||||||||
|
Description
Mike Norman
Created attachment 211346 [details]
Proposed fix.
Created attachment 211347 [details]
Supporting test cases.
The fix provides support for optional scalar, PL/SQL scalar, VArray, Object and ObjectTable arguments. Optional attribute in generated service xml:
<query>
<name>OptionalArgTest4</name>
<parameter optional="true">
<name>X</name>
<type>ns1:dbws_phonetype_tableType</type>
</parameter>
<result>
<type>xsd:string</type>
<simple-xml-format/>
</result>
</query>
Snippet from generated WSDL showing minOccurs for optional argument 'X':
<xsd:complexType name="OptionalArgTest4RequestType">
<xsd:sequence>
<xsd:element minOccurs="0" name="X" type="ns1:dbws_phonetype_tableType"/>
</xsd:sequence>
</xsd:complexType>
Reviewed by: michael.norman@oracle.com Tests: all unit tests pass as expected; optionalarguments/OptionalArgumentTestSuite Revision: 10886 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |