Package org.codehaus.xfire

Examples of org.codehaus.xfire.XFireRuntimeException


                logger.warn("Unknown type for serialization: " + value.getClass());
            }
        }
        catch (XMLStreamException e)
        {
            throw new XFireRuntimeException("Couldn't write to stream.", e);
        }
    }
View Full Code Here


    public Object[] invoke(String name, XMLStreamReader reader) throws Exception
    {
        Invocation call = new Invocation(this);
        OperationInfo op = service.getServiceInfo().getOperation(name);
        if (op == null)
            throw new XFireRuntimeException("Could not find operation with name " + name);
        try
        {
            invocations.add(call);
           
            return call.invoke(op, reader);
View Full Code Here

   
    public Object[] invoke(String name, Object[] params) throws Exception
    {
        OperationInfo op = service.getServiceInfo().getOperation(name);
        if (op == null)
            throw new XFireRuntimeException("Could not find operation with name " + name);
       
        return invoke(op, params);
    }
View Full Code Here

            catch (Exception e)
            {
                if (e instanceof XFireRuntimeException)
                    throw (XFireRuntimeException) e;
               
                throw new XFireRuntimeException("Could not receive fault.", e);
            }
        }
    }
View Full Code Here

            else
                outChannel = getTransport().createChannel(uri);
        }
        catch (Exception e)
        {
            throw new XFireRuntimeException("Couldn't open channel.", e);
        }

        outChannel.setEndpoint(this);
       
        return outChannel;
View Full Code Here

            catch (NoSuchMethodException e)
            {
            }
            catch (Exception e)
            {
                throw new XFireRuntimeException("Couldn't access getFaultName method.", e);
            }
        }
       
        String name = ServiceUtils.makeServiceNameFromClassName(beanClass);
        return new QName(service.getTargetNamespace(), name);
View Full Code Here

            throws MalformedURLException
    {
        Collection transports = xfire.getTransportManager().getTransportsForUri(url);

        if (transports.size() == 0)
            throw new XFireRuntimeException("No Transport is available for url " + url);
       
        Binding binding = null;
        Transport transport = null;
        for (Iterator itr = transports.iterator(); itr.hasNext() && binding == null;)
        {
View Full Code Here

        Binding binding = endpoint.getBinding();
        Transport t = xfire.getTransportManager().getTransport(binding.getBindingId());
       
        if (t == null)
        {
            throw new XFireRuntimeException("Could not find transport for binding " +
                                            binding.getBindingId());
        }
       
        return create(new Client(t, endpoint));
    }
View Full Code Here

    {
        Transport t = xfire.getTransportManager().getTransport(binding.getBindingId());
       
        if (t == null)
        {
            throw new XFireRuntimeException("Could not find transport for binding " +
                                            binding.getBindingId());
        }
       
        Client client = new Client(t, binding, address);
        return create(client);
View Full Code Here

        {
            dr.next();
        }
        catch (XMLStreamException e)
        {
            throw new XFireRuntimeException("Couldn't parse stream.", e);
        }
    }
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.