Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 36137 invoked from network); 9 May 2006 07:19:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 07:19:22 -0000 Received: (qmail 4884 invoked by uid 500); 9 May 2006 07:19:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 4565 invoked by uid 500); 9 May 2006 07:19:13 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 4554 invoked by uid 99); 9 May 2006 07:19:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 00:19:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.41.126.131] (HELO smtpauth00.csee.siteprotect.com) (64.41.126.131) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 00:19:12 -0700 Received: from [192.168.0.106] (LNeuilly-152-23-77-40.w217-128.abo.wanadoo.fr [217.128.193.40]) by smtpauth00.csee.siteprotect.com (Postfix) with ESMTP id E0C6532C02F for ; Tue, 9 May 2006 02:18:51 -0500 (CDT) Message-ID: <44604254.4050202@sunopsis.com> Date: Tue, 09 May 2006 09:18:44 +0200 From: =?ISO-8859-1?Q?S=E9bastien_Arod?= User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Axis 1.0 throws an exception while providing WSDL References: <445B3308.60307@sunopsis.com> <36358.194.203.201.92.1146830317.squirrel@mail.formicary.net> <445B3FA5.4070806@sunopsis.com> <19e0530f0605051148g3c8c1692v4cda005ba4a5a63e@mail.gmail.com> In-Reply-To: <19e0530f0605051148g3c8c1692v4cda005ba4a5a63e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bug reported http://issues.apache.org/jira/browse/AXIS2-676 Davanum Srinivas a �crit : > Please log a bug report (http://issues.apache.org/jira/) and upload > your wsdl. > > thanks, > dims > > On 5/5/06, S�bastien Arod wrote: >> Steve Barham a �crit : >> I create my WSDL with JAXP/DOM : Here is the java code to write DOM >> document to file >> >> Transformer xformer = >> TransformerFactory.newInstance().newTransformer(); >> xformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); //$NON-NLS-1$ >> OutputStream os = new FileOutputStream(getWSDLFile()); >> Writer writer = new OutputStreamWriter(os, "UTF8"); >> //$NON-NLS-1$ >> xformer.transform(new DOMSource(mDocument), new StreamResult(writer)); >> os.close(); >> >> Furthermore I check the generated XML file with XML Schema Validator >> (http://www.w3.org/2001/03/webdata/xsv) that doesn't find >> any errors. >> I can send you the WSDL if it can help. >> >> Seb >> >> >> Do you have an XML encoding declaration at the top of your WSDL? >> >> eg. >> >> Chances are that you are missing an encoding declaration (so the parser >> defaults to UTF-8 encoding), and are using a non-UTF-8 encoding (eg. >> ISO-8859-*). >> >> UTF-8 uses between 1 and 4 bytes to encode a character, and uses the >> high >> order bit of the first byte to indicate multibyte characters. So if your >> actual encoding is a single byte per character, and uses characters >> beyond >> 127, then you will run into this problem. >> >> What editor and environment did you use to produce the WSDL? >> >> steve >> >> >> >> >> >> >> I coded an axis2 service that I put in the Axis2 webapp. >> >> The WSDL (UTF-8 encoded) in the aar contains accents (e.g. >> "prénom") in the XSD element annotations. >> When I try to get WSDL from deployed service (MyService?wsdl) an >> Exception is thrown : >> javax.servlet.ServletException: >> com.ctc.wstx.exc.WstxIOException: Invalid >> UTF-8 middle byte 0x6e (at char #1999, byte #-1); nested exception is: >> org.apache.axiom.om.OMException: >> com.ctc.wstx.exc.WstxIOException: >> Invalid UTF-8 middle byte 0x6e (at char #1999, byte #-1) >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:111) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> cause mère org.apache.axis2.AxisFault: >> com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte >> 0x6e (at char >> #1999, byte #-1); nested exception is: org.apache.axiom.om.OMException: >> com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte >> 0x6e (at char >> #1999, byte #-1) >> org.apache.axis2.description.AxisService.getWSDL(AxisService.java:558) >> org.apache.axis2.description.AxisService.printWSDL(AxisService.java:533) >> org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:144) >> >> org.apache.axis2.transport.http.ListingAgent.handle(ListingAgent.java:89) >> >> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:109) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:689) >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> It's seems >> to me that's a bug cause my WSDL is a valid XML file. >> >> >> >> >> > > > -- > Davanum Srinivas : http://wso2.com/blogs/ >