Examples of WsdlContext


Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  public synchronized WsdlContext getWsdlContext()
  {
    if( wsdlContext == null )
    {
      wsdlContext = new WsdlContext( PathUtils.expandPath( getDefinition(), this ), this );
    }

    return wsdlContext;
  }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  public boolean updateDefinition( String url, boolean createRequests ) throws Exception
  {
    WsdlContext.uncache( url );

    WsdlContext newContext = new WsdlContext( url, ( WsdlInterface )null );
    if( !newContext.load() )
    {
      return false;
    }

    BindingTuple tuple = findBinding( newContext );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

    }
  }

  public BindingTuple prepareUpdateDefinition( String url ) throws Exception
  {
    WsdlContext newContext = new WsdlContext( url, getSoapVersion() );
    if( !newContext.load() )
    {
      return null;
    }

    BindingTuple tuple = findBinding( newContext );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

    {
      WsdlOperation operation = mockResponse.getMockOperation().getOperation();
      if( operation != null )
      {
        WsdlInterface iface = operation.getInterface();
        WsdlContext wsdlContext = iface.getWsdlContext();
        return wsdlContext.getSchemaTypeSystem();
      }
    }
    catch( Exception e1 )
    {
      SoapUI.logError( e1 );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

    {
      WsdlOperation operation = mockResponse.getMockOperation().getOperation();
      if( operation != null )
      {
        WsdlInterface iface = operation.getInterface();
        WsdlContext wsdlContext = iface.getWsdlContext();
        return wsdlContext.getSchemaTypeSystem();
      }
    }
    catch( Exception e1 )
    {
      SoapUI.logError( e1 );
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

    }
  }

  public String getStyle()
  {
    WsdlContext wsdlContext = iface.getWsdlContext();
    if( !wsdlContext.isLoaded() )
      return "<not loaded>";

    try
    {
      Definition definition = wsdlContext.getDefinition();
      BindingOperation bindingOperation = findBindingOperation( definition );

      if( bindingOperation == null )
        return "<missing bindingOperation>";
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  {
    try
    {
      // init
      List<MessagePart> result = new ArrayList<MessagePart>();
      WsdlContext wsdlContext = getInterface().getWsdlContext();
      BindingOperation bindingOperation = findBindingOperation( wsdlContext.getDefinition() );

      if( bindingOperation == null )
        return new MessagePart[0];

      // header parts
      BindingInput bindingInput = bindingOperation.getBindingInput();
      if( bindingInput == null )
        return new MessagePart[0];

      List<SoapHeader> headers = WsdlUtils.getSoapHeaders( bindingInput.getExtensibilityElements() );

      for( int i = 0; i < headers.size(); i++ )
      {
        SoapHeader header = headers.get( i );

        Message message = wsdlContext.getDefinition().getMessage( header.getMessage() );
        if( message == null )
        {
          log.error( "Missing message for header: " + header.getMessage() );
          continue;
        }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  {
    try
    {
      // init
      List<MessagePart> result = new ArrayList<MessagePart>();
      WsdlContext wsdlContext = getInterface().getWsdlContext();
      BindingOperation bindingOperation = findBindingOperation( wsdlContext.getDefinition() );

      if( bindingOperation == null )
        return new MessagePart[0];

      // header parts
      BindingOutput bindingOutput = bindingOperation.getBindingOutput();
      if( bindingOutput == null )
        return new MessagePart[0];

      List<SoapHeader> headers = WsdlUtils.getSoapHeaders( bindingOutput.getExtensibilityElements() );

      for( int i = 0; i < headers.size(); i++ )
      {
        SoapHeader header = headers.get( i );

        Message message = wsdlContext.getDefinition().getMessage( header.getMessage() );
        if( message == null )
        {
          log.error( "Missing message for header: " + header.getMessage() );
          continue;
        }
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  }

  public SchemaTypeSystem getTypeSystem()
  {
    WsdlInterface iface = ( WsdlInterface )request.getOperation().getInterface();
    WsdlContext wsdlContext = iface.getWsdlContext();
    try
    {
      return wsdlContext.getSchemaTypeSystem();
    }
    catch( Exception e1 )
    {
      SoapUI.logError( e1 );
      return XmlBeans.getBuiltinTypeSystem();
View Full Code Here

Examples of com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext

  }

  public SchemaTypeSystem getTypeSystem()
  {
    WsdlInterface iface = ( WsdlInterface )request.getOperation().getInterface();
    WsdlContext wsdlContext = iface.getWsdlContext();
    try
    {
      return wsdlContext.getSchemaTypeSystem();
    }
    catch( Exception e1 )
    {
      SoapUI.logError( e1 );
      return XmlBeans.getBuiltinTypeSystem();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.