xsom
  1. xsom
  2. XSOM-3

Getting error when importing inline xsd

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3

      Description

      Hi,

      I got following problem when parsing wsdl using WOM and XSOM api.
      I have used apache CXF stack to generate the wsdl file.

      The schemas in the wsdl are defined in following way

      <wsdl:types>
      <xs:schema xmlns:ns1="http://schemas.hwec.altair.com/definitions">
      <xs:import
      namespace="http://schemas.hwec.altair.com/definitions"/>
      <xs:element name="abc" type=ns1:abcCType/>
      </xs:schema>
      <xs:schema targetNamespace="http://schemas.hwec.altair.com/definitions">
      <xs:complextype name="abcCType">
      <xs:sequence>
      :
      :
      </xs:sequence>
      </xs:complextype>
      <xs:schema>
      </wsdl:types>

      The special thing here is that the first schema defined in wsdl:types is
      importing
      xsd which is just defined below it.
      As the imported xsd is inlined, hence there is no schemaLocation attribute
      defined
      for it.
      The XSOM parser calls the NGCCRunTimeEx.importSchema() method.
      This in turn uses the schemaLocation attribute.
      As schemaLocation is null, it is not able to find the InputSource for this
      inline xsd.
      and hence it gives error saying "not able to find ns1:abcCType"

      Please provide information to tackle this issue.

      With Regards
      Harbeer Kadian

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            xsom-issues
            Reporter:
            harbeerkadian
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: