Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6EF71112AD for ; Mon, 7 Jul 2014 17:22:35 +0000 (UTC) Received: (qmail 53277 invoked by uid 500); 7 Jul 2014 17:22:34 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 53062 invoked by uid 500); 7 Jul 2014 17:22:34 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 52798 invoked by uid 99); 7 Jul 2014 17:22:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2014 17:22:34 +0000 Date: Mon, 7 Jul 2014 17:22:34 +0000 (UTC) From: "Sagara Gunathunga (JIRA)" To: dev@ws.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (WODEN-236) Woden WSDLReader returns invalid WSDL Description when multiple "style" tags are present MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WODEN-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sagara Gunathunga resolved WODEN-236. -------------------------------------- Resolution: Fixed Fix Version/s: 1.0 Fixed in r1608516. > 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