Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Optional element in WSDL

462785Apr 15 2008
I am using the bottom-up web service generation in JDeveloper to create a WSDL for methods in a SessionBean. Is there any was to tell JDeveloper to make a WSDL element optional for one of my SessionBean's method parameters?

For example, if I have the following method,

public void getData(String param, String optParam)

How can I get the WSDL to be generated with the following element definitions?

<element name="getData">
<complexType>
<sequence>
<element name="param" type="string" nillable="true"/>
<element name="optParam" type="string" nillable="true" minOccurs="0"/>
</sequence>
</complexType>
</element>:

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2008
Added on Apr 15 2008
0 comments
470 views