|
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. <?xml version="1.0" encoding="utf-8"?>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 |
- Re: Axis 1.0 throws an exception while providing WSDL Sébastien Arod
- Re: Axis 1.0 throws an exception while providing WSD... Davanum Srinivas
- Re: Axis 1.0 throws an exception while providing... Sébastien Arod
