Package org.codehaus.xfire

Examples of org.codehaus.xfire.XFireRuntimeException


                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


                          properties,
                          new ResourceWSDL(wsdlUrl));
        }
        catch (WSDLException e)
        {
            throw new XFireRuntimeException("Could not load WSDL.", e);
        }
        catch (IOException e)
        {
            throw new XFireRuntimeException("Could not load WSDL.", e);
        }
    }
View Full Code Here

        catch (Exception e)
        {
            if (e instanceof XFireRuntimeException)
                throw (XFireRuntimeException) e;
           
            throw new XFireRuntimeException("Couldn't configure service.", e);
        }
       
        for (Iterator itr = service.getBindings().iterator(); itr.hasNext();)
        {
            Binding b = (Binding) itr.next();
View Full Code Here

               
                if (isOutParam(method, j))
                {
                    MessagePartInfo part = outHeaders.getMessagePart(q);
                    if (part == null)
                        throw new XFireRuntimeException("Could not find header " + q + " in wsdl for operation " + op.getName());
                   
                    part.setTypeClass(paramClasses[j]);
                    part.setIndex(j);
                    part.setSchemaType(null);
                }

                if (isInParam(method, j))
                {
                    MessagePartInfo part = inHeaders.getMessagePart(q);
                    if (part == null)
                        throw new XFireRuntimeException("Could not find header " + q + " in wsdl for operation " + op.getName());
                   
                    part.setTypeClass(paramClasses[j]);
                    part.setIndex(j);
                    part.setSchemaType(null);
                }
View Full Code Here

            endpoint.setBindingProvider(provider);
        }
        catch (Exception e)
        {
            if(e instanceof XFireRuntimeException) throw (XFireRuntimeException)e;
            throw new XFireRuntimeException("Couldn't load provider.", e);
        }

        registerHandlers(endpoint);

        return endpoint;
View Full Code Here

            {
                createSoap11Binding(service, null, bindingId);
            }
            else if (t == null)
            {
                throw new XFireRuntimeException("Could not find binding " + bindingId );  
            }
            else
            {
                throw new XFireRuntimeException("Binding " + bindingId + " is not a SoapTransport!");           
            }
        }
       
        for (Iterator itr = s12.iterator(); itr.hasNext();)
        {
            String bindingId = (String) itr.next();
            Transport t = transportManager.getTransport(bindingId);

            if (t instanceof SoapTransport)
            {
                createSoap12Binding(service, null, bindingId);
            }
            else if (t == null)
            {
                throw new XFireRuntimeException("Could not find binding " + bindingId );  
            }
            else
            {
                throw new XFireRuntimeException("Binding " + bindingId + " is not a SoapTransport!");           
            }
        }
    }
View Full Code Here

                method = exClass.getMethod("getFaultInfo", new Class[0]);
                beanClass = method.getReturnType();
            }
            catch (SecurityException e)
            {
                throw new XFireRuntimeException("Couldn't access getFaultInfo method.", e);
            }
            catch (NoSuchMethodException e)
            {
                beanClass = exClass;
            }
View Full Code Here

            message.setContent(mimeMP);
          message.writeTo(out, filter);
        }
        catch( MessagingException e )
        {
            throw new XFireRuntimeException("Couldn't create message.", e);
        }
    }
View Full Code Here

        }
        catch (IOException e)
        {
            String error = "Error accessing mapping file '" + mappingFile + "'.";
            log.error(error, e);
            throw new XFireRuntimeException(error, e);
        }
        catch (MappingException e)
        {
            String error = "Error processing mapping file '" + mappingFile + "'.";
            log.error(error, e);
            throw new XFireRuntimeException(error, e);
        }
    }
View Full Code Here

            }
            catch (MappingException e)
            {
                String error = "Error getting resolver from mapping";
                log.error(error, e);
                throw new XFireRuntimeException(error, e);
            }
        }
        // If it has an accompanying auto-generated XML Descriptor
        // class, it is a castor type
        try
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.