Package org.reficio.ws

Examples of org.reficio.ws.SoapException


            Map<String, String> baseURIwsdlNameMap = new HashMap<String, String>();
            // add the initial definition to the map
            baseURIwsdlNameMap.put(definition.getDocumentBaseURI(), name + ".wsdl");
            writeWSDL(definition, name + ".wsdl", new HashMap<String, String>(), baseURIwsdlNameMap);
        } catch (Exception e) {
            throw new SoapException("WSDL writing failed!", e);
        }
    }
View Full Code Here


                DOM2Writer.serializeAsXML(schema.getElement(), definition.getNamespaces(), writer);
                writer.flush();
                writer.close();
            }
        } catch (Exception ex) {
            throw new SoapException("Unexpected error", ex);
        }

    }
View Full Code Here

            DocumentBuilder db = dbf.newDocumentBuilder();
            Document dom = db.parse(src);
            Source xmlSource = new javax.xml.transform.dom.DOMSource(dom);
            return xmlSource;
        } catch (ParserConfigurationException ex) {
            throw new SoapException(ex);
        } catch (SAXException ex) {
            throw new SoapException(ex);
        } catch (IOException ex) {
            throw new SoapException(ex);
        }
    }
View Full Code Here

            transformer.setOutputProperty(OutputKeys.INDENT, "yes");
            StringWriter writer = new StringWriter();
            transformer.transform(xmlSource, new StreamResult(writer));
            return writer.toString();
        } catch (TransformerConfigurationException e) {
            throw new SoapException("Error during XML transformer configuration", e);
        } catch (TransformerException e) {
            throw new SoapException("Error during XML source transformation", e);
        }
    }
View Full Code Here

            transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
            transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "4");
            transformer.transform(new DOMSource(document), new StreamResult(out));
            return out.toString();
        } catch (TransformerConfigurationException e) {
            throw new SoapException("Failed to serialize: ", e);
        } catch (TransformerException e) {
            throw new SoapException("Failed to serialize: ", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.reficio.ws.SoapException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.