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

wsdl2js creates javascript that does not parse Arrays in Soap response

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment