You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/07/07 22:12:35 UTC

[jira] [Commented] (WODEN-236) Woden WSDLReader returns invalid WSDL Description when multiple "style" tags are present

    [ https://issues.apache.org/jira/browse/WODEN-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054147#comment-14054147 ] 

Hudson commented on WODEN-236:
------------------------------

SUCCESS: Integrated in woden-trunk #1171 (See [https://builds.apache.org/job/woden-trunk/1171/])
Fixed WODEN-236 (sagara: rev 1608516)
* /webservices/woden/trunk/java/woden-core/src/main/java/org/apache/woden/internal/DOMWSDLWriter.java
* /webservices/woden/trunk/java/woden-core/src/test/java/org/apache/woden/DOMWSDLWriterTest.java
* /webservices/woden/trunk/java/woden-core/src/test/resources/org/apache/woden/echo.wsdl


> Woden WSDLReader returns invalid WSDL Description when multiple "style" tags are present
> ----------------------------------------------------------------------------------------
>
>                 Key: WODEN-236
>                 URL: https://issues.apache.org/jira/browse/WODEN-236
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: M9
>            Reporter: Ruwan
>            Assignee: Sagara Gunathunga 
>             Fix For: 1.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org