Package com.eviware.soapui.model.propertyexpansion

Examples of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext


  public static WsdlInterface[] importWsdl( WsdlProject project, String url, boolean createRequests,
      QName bindingName, WsdlLoader wsdlLoader ) throws SoapUIException
  {
    WsdlInterface[] result;

    PropertyExpansionContext context = new DefaultPropertyExpansionContext( project.getModelItem() );
    url = PropertyExpander.expandProperties( context, url );
    try
    {
      result = WsdlImporter.importWsdl( project, url, bindingName, wsdlLoader );
    }
View Full Code Here


    try
    {
      SoapVersion soapVersion = mockResponse.getOperation().getInterface().getSoapVersion();
      String content = mockResponse.getResponseContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, mockResponse.getOperation(),
          new DefaultPropertyExpansionContext( mockResponse ) );
      content = wsaUtils.addWSAddressingMockResponse( mockResponse );
      mockResponse.setResponseContent( content );
    }
    catch( Exception e1 )
    {
View Full Code Here

    try
    {
      UISupport.setHourglassCursor();
      Document dom = XmlUtils.parseXml( req );
      outgoing.processOutgoing( dom, new DefaultPropertyExpansionContext( mockResponse ) );
      StringWriter writer = new StringWriter();
      XmlUtils.serialize( dom, writer );
      mockResponse.setResponseContent( writer.toString() );
    }
    catch( Exception e1 )
View Full Code Here

    try
    {
      SoapVersion soapVersion = mockResponse.getOperation().getInterface().getSoapVersion();
      String content = mockResponse.getResponseContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, mockResponse.getOperation(),
          new DefaultPropertyExpansionContext( mockResponse ) );
      content = wsaUtils.removeWSAddressing( mockResponse );
      mockResponse.setResponseContent( content );
    }
    catch( Exception e1 )
    {
View Full Code Here

    try
    {
      UISupport.setHourglassCursor();
      Document dom = XmlUtils.parseXml( req );
      outgoing.processOutgoing( dom, new DefaultPropertyExpansionContext( request ) );
      StringWriter writer = new StringWriter();
      XmlUtils.serialize( dom, writer );
      request.setRequestContent( writer.toString() );
    }
    catch( Exception e1 )
View Full Code Here

    try
    {
      SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
      String content = request.getRequestContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, request.getOperation(),
          new DefaultPropertyExpansionContext( request ) );
      content = wsaUtils.addWSAddressingRequest( request );
      request.setRequestContent( content );
    }
    catch( Exception e1 )
    {
View Full Code Here

        Settings soapuiSettings = SoapUI.getSettings();

        HttpClientSupport.applyHttpSettings( getMethod, soapuiSettings );
        HostConfiguration hostConfiguration = ProxyUtils.initProxySettings( soapuiSettings, state,
            new HostConfiguration(), getMethod.getURI().toString(), contextModelItem == null ? null
                : new DefaultPropertyExpansionContext( contextModelItem ) );

        httpClient.executeMethod( hostConfiguration, getMethod, state );
      }
      catch( Exception e )
      {
View Full Code Here

  {
    if( path == null || modelItem == null )
      return path;

    path = PathUtils.denormalizePath( path );
    path = PropertyExpander.expandProperties( new DefaultPropertyExpansionContext( modelItem ), path );

    String prefix = "";

    if( path.startsWith( "file:" ) )
    {
View Full Code Here

    return mockService.getMockRunner();
  }

  public void reset()
  {
    properties = ( DefaultPropertyExpansionContext )( context == null ? new DefaultPropertyExpansionContext(
        mockService ) : context.getProperties() );
  }
View Full Code Here

    private void processResponseWss(IncomingWss responseWss) throws IOException {
        if (responseWss != null) {
            Document dom = XmlUtils.parseXml(responseContent);
            try {
                responseWssResult = responseWss.processIncoming(dom, new DefaultPropertyExpansionContext(project));
                if (responseWssResult != null && responseWssResult.size() > 0) {
                    StringWriter writer = new StringWriter();
                    XmlUtils.serialize(dom, writer);
                    responseContent = writer.toString();
                }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.propertyexpansion.DefaultPropertyExpansionContext

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.