Package org.codehaus.xfire

Examples of org.codehaus.xfire.XFireRuntimeException


                pw.close();
                writer.writeCData(sw.toString());
                writer.writeEndElement(); // stack
            }
        } catch (XMLStreamException e) {
            throw new XFireRuntimeException("Couldn't create fault.", e);
        }
    }
View Full Code Here


                writer.writeCData(sw.toString());
                writer.writeEndElement(); // stack
            }
            writer.writeEndElement(); // fault
        } catch (XMLStreamException e) {
            throw new XFireRuntimeException("Couldn't create fault.", e);
        }
    }
View Full Code Here

        {
            echoMethod = echoClass.getMethod("echo", new Class[]{String.class});
        }
        catch (NoSuchMethodException e)
        {
            throw new XFireRuntimeException("Could not find echo method on Echo class", e);
        }
        ServiceInfo serviceInfo = new ServiceInfo(new QName("http://test.xfire.codehaus.org", "EchoPortType"),
                                                  echoClass);
        OperationInfo operation = serviceInfo.addOperation("echo", echoMethod);
        MessageInfo inputMessage = operation.createMessage(new QName("echoRequest"));
View Full Code Here

                bindingProvider = (BindingProvider) ClassLoaderUtils
                        .loadClass("org.codehaus.xfire.aegis.AegisBindingProvider", getClass()).newInstance();
            }
            catch (Exception e)
            {
                throw new XFireRuntimeException("Couldn't find a binding provider!", e);
            }
        }

        return bindingProvider;
    }
View Full Code Here

                       
                        types.put(resolvedLocation, iDef.getTypes());
                    }
                    catch (URISyntaxException e)
                    {
                        throw new XFireRuntimeException("Couldn't resolve location " + i.getLocationURI(), e);
                    }
                   
                    definitions.add(iDef);
                    portTypes.addAll(iDef.getPortTypes().values());
                    wsdlServices.addAll(iDef.getServices().values());
View Full Code Here

        XmlSchemaElement reqSchemaEl = schemas.getElementByQName(inElementName);
        XmlSchemaElement resSchemaEl = null;
        if (hasOutput) resSchemaEl = schemas.getElementByQName(outElementName);

        if (reqSchemaEl == null)
            throw new XFireRuntimeException("Couldn't find schema part: " + inElementName);

        if (hasOutput && resSchemaEl == null)
            throw new XFireRuntimeException("Couldn't find schema part: " + outElementName);

        // Now lets see if we have any attributes...
        // This should probably look at the restricted and substitute types too.
        if (reqSchemaEl.getSchemaType() instanceof XmlSchemaComplexType)
        {
View Full Code Here

                Method method = cause.getClass().getMethod("getFaultInfo", new Class[0]);
                return method.invoke(cause, new Object[0]);
            }
            catch (InvocationTargetException e)
            {
                throw new XFireRuntimeException("Couldn't invoke getFaultInfo method.", e);
            }
            catch (NoSuchMethodException e)
            {
                throw new XFireRuntimeException("Custom faults need a getFaultInfo method.", e);
            }
            catch (Exception e)
            {
                throw new XFireRuntimeException("Couldn't access getFaultInfo method.", e);
            }
        }
        return cause;
    }
View Full Code Here

        {
            builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
        }
        catch (ParserConfigurationException e)
        {
            throw new XFireRuntimeException("Couldn't create DocumentBuilder.", e);
        }
    }
View Full Code Here

        String localName = value.substring(index + 1);
        String ns = reader.getNamespaceURI(prefix);

        if (ns == null || localName == null)
        {
            throw new XFireRuntimeException("Invalid QName in mapping: " + value);
        }

        return new QName(ns, localName, prefix);
    }
View Full Code Here

        String prefix = value.substring(0, index);
        String localName = value.substring(index + 1);
        String ns = e.getNamespace(prefix).getURI();

        if (ns == null || localName == null)
            throw new XFireRuntimeException("Invalid QName in mapping: " + value);

        return new QName(ns, localName, prefix);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.XFireRuntimeException

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.