Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3543

wsdl2js creates javascript that does not parse Arrays in Soap response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.3.4
    • Invalid
    • JavaScript Client
    • None
    • generic

    • Unknown

    Description

      <xsd:complexType name="ArrayOfServiceProviders">
      <xsd:complexContent>
      <xsd:restriction base="soapenc:Array">
      <xsd:attribute ref="soapenc:arrayType"
      wsdl:arrayType="tns:ServiceProvider[]" />
      </xsd:restriction>
      </xsd:complexContent>
      </xsd:complexType>

      creates the following javascript code

      function urn_AppointmentService_ArrayOfServiceProviders_deserialize (cxfjsutils, element) {
      var newobject = new urn_AppointmentService_ArrayOfServiceProviders();
      cxfjsutils.trace('element: ' + cxfjsutils.traceElementName(element));
      var curElement = cxfjsutils.getFirstElementChild(element);
      var item;
      return newobject;
      }

      Note that this method is incomplete, it doesn't even try to parse the element, just returns the new object. Is this intentional? Are we supposed to fill in the blanks? or is this a but.

      Attachments

        1. AppointmentServiceService.js
          96 kB
          Alamgir Farouk
        2. AppointmentService.wsdl
          11 kB
          Alamgir Farouk

        Activity

          People

            dkulp Daniel Kulp
            afarouk Alamgir Farouk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: