Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1645

XSD2JavaGenerator failed to gen on the wsdl files with only <xsd:import> element in <xsd:schema>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SDO-1.0
    • Java-SDO-1.1
    • Java SDO Tools
    • None
    • WinXP

    Description

      NullPointerException was thrown when a WSDL with XSD definition like below was used by the XSD2JavaGenerator. In this case, there is no targetNamespace was specified in the <xsd:schema>

      <types>
      <xsd:schema>
      <xsd:import namespace="http://test/" schemaLocation="EchoService_schema1.xsd"/>
      </xsd:schema>
      </types>

      This problem was derived from SCA JIRA TUSCANY-544 and related to SDO JIRA TUSCANY-1327.

      Attachments

        1. TUSCANY-544.wsdl
          1 kB
          Fuhwei Lwo
        2. EchoService_schema1.xsd
          0.6 kB
          Fuhwei Lwo
        3. 1645.patch
          1 kB
          Fuhwei Lwo
        4. 1645.patch
          44 kB
          Fuhwei Lwo

        Activity

          People

            Unassigned Unassigned
            fuhwei Fuhwei Lwo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: