Uploaded image for project: 'Woden'
  1. Woden
  2. WODEN-236

Woden WSDLReader returns invalid WSDL Description when multiple "style" tags are present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • M9
    • M10
    • Parser
    • None

    Description

      After reading a wsdl from a url like below ;

      writer.writeWSDL(wsdlDefinition.toElement(), byteArrayOutputStream);

      and converting the byteArrayOutputStream object to a string,

      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      DocumentBuilder builder;
      try

      { builder = factory.newDocumentBuilder(); Document document = builder.parse( new InputSource(new StringReader( wsdldocString))); wsdldoc = document.getFirstChild().toString(); }

      catch (Exception e)

      { e.printStackTrace(); }

      when multiple style definitions are present in the WSDL, like below;

      style="http://www.w3.org/ns/wsdl/style/rpc http://www.w3.org/ns/wsdl/style/iri http://www.w3.org/ns/wsdl/style/multipart"

      In the resultant XML, it appears as

      style="http://www.w3.org/ns/wsdl/style/rpc" style="http://www.w3.org/ns/wsdl/style/iri" style="http://www.w3.org/ns/wsdl/style/multipart"

      when this happens there is a parsing error when trying to build a document from said string.

      Attachments

        Activity

          People

            sagara Sagara Gunathunga
            ruwan.yatawara Ruwan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: