What I am looking at is a way to have same method names but different return
types in the java code, generated from the wsdl schema.
So I am looking at a schema structure that allows me to generate a method
getValue, that can return me one of the 2 data types, namely String and user
defined class. Is this possible. How and where does this fit into the
schema. I tried using the xsd:choice but it does not allow same name.

for eg.
<complexType>
  <sequence>
     <element name="name" type="string"/>
     <choice>
        <element name="value" type="string"/>
        <element name="value" type="userDefinedClass"/>
     </choice>
  </sequence>
</complexType>


So what this generates is a getValue1 and a getValue2. Can I have getValue
in both the cases.


--
Thanks and Regards
Hemant

Reply via email to