WSDL2 JAVA , generated code has an error when schema has "xsd:anySimpleType"

Jasintha Dasanayaka <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAP3k8oRZ=D1h6yjqu-m9v27wDJDw_JB5pUkhy3E0YfS_7TxgVQ@mail.gmail.com>
 I am trying to generate java code(using wsdl2java tool) by pointing  a
WSDL file. That WSDL file contains a schema import, that schema has
following complex element .

-------------------------------------------------
<xsd:element name="QuerySampleResultRow" type="tns:QueryResultRowType"/>
  <xsd:complexType name="QuerySampleResultRowType">
    <xsd:annotation>
      <xsd:documentation>A Sample result.</xsd:documentation>
    </xsd:annotation>
    <xsd:sequence>
      <xsd:element name="value" type="xsd:anySimpleType" nillable="true"
maxOccurs="unbounded" >
        <xsd:annotation>
          <xsd:documentation>A value in a row. </xsd:documentation>
        </xsd:annotation>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
-------------------------------------------------

There is a compilation error in the generate code. I came across that is
due to  "xsd:anySimpleType" element , If use "xsd:string" instead of having
this "xsd:anySimpleType" there are no errors in the generated codes , But
unfortunately i cannot modify the schema . Can you please suggest a way to
 do this without changing the schema.


Thanks and Regards
/Jasintha

-- 



*Thanks & RegardsJasintha Dasanayake*

mobile +94 (0)71 624 1368 ,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.