Package com.eviware.soapui.impl.support.definition.support

Examples of com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException


    XmlObject obj = loader.loadXmlObject( loader.getBaseURI(), null );
    applicationDocument = ( ApplicationDocument )obj.changeType( ApplicationDocument.type );
    }
    catch( Exception e )
    {
      throw new InvalidDefinitionException( e );
    }

    if( !loader.isAborted() )
    {
      super.loadSchemaTypes( loader );
View Full Code Here


    {
    definition = wsdlReader.readWSDL( loader );
    }
    catch( WSDLException e )
    {
      throw new InvalidDefinitionException( e );
    }

    if( !loader.isAborted() )
    {
      super.loadSchemaTypes( loader );
View Full Code Here

      if( e instanceof XmlException )
      {
        XmlError error = ( ( XmlException )e ).getError();
        if( error != null )
        {
          InvalidDefinitionException ex = new InvalidDefinitionException( ( XmlException )e );
          ex.setMessage( "Error loading [" + url + "]" );
          throw ex;
        }
      }

      log.error( "Failed to load url [" + url + "]" );
      throw new InvalidDefinitionException( "Error loading [" + url + "]: " + e );
    }
  }
View Full Code Here

    public WadlInterfaceDefinition load(DefinitionLoader loader) throws Exception {
        try {
            XmlObject obj = loader.loadXmlObject(loader.getBaseURI(), null);
            applicationDocument = (ApplicationDocument) obj.changeType(ApplicationDocument.type);
        } catch (Exception e) {
            throw new InvalidDefinitionException(e);
        }

        if (!loader.isAborted()) {
            super.loadSchemaTypes(loader);
        } else {
View Full Code Here

        log.debug("Loading WSDL: " + loader.getBaseURI());
        try {
            definition = wsdlReader.readWSDL(loader);
        } catch (WSDLException e) {
            throw new InvalidDefinitionException(e);
        }

        if (!loader.isAborted()) {
            super.loadSchemaTypes(loader);
        } else {
View Full Code Here

            options.setLoadLineNumbers();
            return XmlUtils.createXmlObject(readCleanWsdlFrom(url), options);
        } catch (XmlException e) {
            XmlError error = e.getError();
            if (error != null) {
                InvalidDefinitionException ex = new InvalidDefinitionException(e);
                ex.setMessage("Error loading [" + url + "]");
                throw ex;
            } else {
                throw makeInvalidDefinitionException(url, e);
            }
        } catch (Exception e) {
View Full Code Here

    }

    private InvalidDefinitionException makeInvalidDefinitionException(String url, Exception e) throws InvalidDefinitionException {
        e.printStackTrace();
        log.error("Failed to load url [" + url + "]");
        return new InvalidDefinitionException("Error loading [" + url + "]: " + e);
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException

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.