Package com.eviware.soapui.impl.wsdl.mock

Examples of com.eviware.soapui.impl.wsdl.mock.DispatchException


        if( wsdlMockRunners != null )
        {
          try
          {
            DispatchException ex = null;
            MockResult result = null;

            for( MockRunner wsdlMockRunner : wsdlMockRunners )
            {
              if( !wsdlMockRunner.isRunning() )
View Full Code Here


{

  public MockResult dispatchGetRequest( HttpServletRequest request, HttpServletResponse response )
      throws DispatchException
  {
    throw new DispatchException( "Unsupported HTTP Method: GET" );
  }
View Full Code Here

  }

  public MockResult dispatchPostRequest( HttpServletRequest request, HttpServletResponse response )
      throws DispatchException
  {
    throw new DispatchException( "Unsupported HTTP Method: POST" );
  }
View Full Code Here

  }

  public MockResult dispatchHeadRequest( HttpServletRequest request, HttpServletResponse response )
      throws DispatchException
  {
    throw new DispatchException( "Unsupported HTTP Method: HEAD" );
  }
View Full Code Here

  }

  public MockResult dispatchPutRequest( HttpServletRequest request, HttpServletResponse response )
      throws DispatchException
  {
    throw new DispatchException( "Unsupported HTTP Method: PUT" );
  }
View Full Code Here

  }

  public MockResult dispatchDeleteRequest( HttpServletRequest request, HttpServletResponse response )
      throws DispatchException
  {
    throw new DispatchException( "Unsupported HTTP Method: DELETE" );
  }
View Full Code Here

    else if( method.equals( "PUT" ) )
      return dispatchPutRequest( request, response );
    else if( method.equals( "DELETE" ) )
      return dispatchDeleteRequest( request, response );

    throw new DispatchException( "Unsupported HTTP Method: " + method );
  }
View Full Code Here

    {
      xmlObject = request.getRequestXmlObject();
    }
    catch( XmlException e )
    {
      throw new DispatchException( "Error getting XmlObject for request: " + e );
    }

    String path = getMockOperation().getDispatchPath();
    if( StringUtils.isNullOrEmpty( path ) )
      throw new DispatchException( "Missing dispatch XPath expression" );

    String[] values = XmlUtils.selectNodeValues( xmlObject, path );
    for( String value : values )
    {
      WsdlMockResponse mockResponse = getMockOperation().getMockResponseByName( value );
View Full Code Here

      return null;
    }
    catch( Throwable e )
    {
      throw new DispatchException( e );
    }
    finally
    {
      for( XmlCursor cursor : cursorCache.values() )
      {
View Full Code Here

        return getMockOperation().getMockResponseByName( String.valueOf( retVal ) );
      }
      catch( Throwable e )
      {
        SoapUI.logError( e );
        throw new DispatchException( "Failed to dispatch using script; " + e );
      }
      finally
      {
        scriptEnginePool.returnScriptEngine( scriptEngine );
      }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.mock.DispatchException

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.