Package com.eviware.soapui.support.types

Examples of com.eviware.soapui.support.types.StringToStringMap.keySet()


        }
        else
        {
          String msg = "<html><body>Returned values:<br>";

          for( String name : values.keySet() )
          {
            msg += XmlUtils.entitize( name ) + " : " + XmlUtils.entitize( values.get( name ) ) + "<br>";
          }

          msg += "</body></html>";
View Full Code Here


  public String createScriptAssertionForExists( XPathData xpathData )
  {
    String script = "var holder = new com.eviware.soapui.support.XmlHolder( messageExchange.responseContentAsXml );\n";

    StringToStringMap nsMap = xpathData.getNamespaceMap();
    for( String ns : nsMap.keySet() )
    {
      script += "holder.namespaces.put(\"" + nsMap.get( ns ) + "\", \"" + ns + "\" );\n";
    }

    script += "var node = holder.getDomNode( \"" + xpathData.getPath() + "\" );\n";
View Full Code Here

      Response response = ( Response )submitContext.getProperty( BaseHttpRequestTransport.RESPONSE );
      StringToStringMap responseProperties = ( StringToStringMap )submitContext
          .getProperty( BaseHttpRequestTransport.RESPONSE_PROPERTIES );

      for( String key : responseProperties.keySet() )
      {
        response.setProperty( key, responseProperties.get( key ) );
      }

      if( httpMethod != null )
View Full Code Here

        WsdlDefinitionExporter exporter = new WsdlDefinitionExporter( ( WsdlInterface )iface );

        String wsdlPrefix = getInterfacePrefix( iface ).substring( 1 );
        StringToStringMap parts = exporter.createFilesForExport( "/" + wsdlPrefix + "&part=" );

        for( String key : parts.keySet() )
        {
          if( key.toLowerCase().endsWith( ".wsdl" ) )
          {
            InputSource inputSource = new InputSource( new StringReader( parts.get( key ) ) );
            String content = WsdlUtils.replacePortEndpoint( ( WsdlInterface )iface, inputSource,
View Full Code Here

    {
      changedParams = new StringToStringMap();
    }
    StringBuilder changedParamsInfo = new StringBuilder();
    changedParamsInfo.append( "[" );
    Iterator<String> keys = changedParams.keySet().iterator();
    while( keys.hasNext() )
    {
      String param = ( String )keys.next();
      String value = changedParams.get( param );
      if( value.length() > SecurityScanResult.MAX_SECURITY_CHANGED_PARAMETERS_LENGTH )
View Full Code Here

            Response response = (Response) submitContext.getProperty(BaseHttpRequestTransport.RESPONSE);
            StringToStringMap responseProperties = (StringToStringMap) submitContext
                    .getProperty(BaseHttpRequestTransport.RESPONSE_PROPERTIES);

            for (String key : responseProperties.keySet()) {
                response.setProperty(key, responseProperties.get(key));
            }

            if (createdContext) {
                submitContext.setProperty(SubmitContext.HTTP_STATE_PROPERTY, null);
View Full Code Here

        } else {
            changedParams = new StringToStringMap();
        }
        StringBuilder changedParamsInfo = new StringBuilder();
        changedParamsInfo.append("[");
        Iterator<String> keys = changedParams.keySet().iterator();
        while (keys.hasNext()) {
            String param = (String) keys.next();
            String value = changedParams.get(param);
            if (value.length() > SecurityScanResult.MAX_SECURITY_CHANGED_PARAMETERS_LENGTH) {
                value = value.substring(0, SecurityScanResult.MAX_SECURITY_CHANGED_PARAMETERS_LENGTH);
View Full Code Here

        ArgumentBuilder builder = new ArgumentBuilder(values);

        builder.startScript("wsdl2java");
        StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
        String packages = values.get(PACKAGE).trim();
        for (String key : nsMappings.keySet()) {
            packages += " " + key + "=" + nsMappings.get(key);
        }

        if (packages.length() > 0) {
            builder.addBoolean(NAMESPACE_MAPPING, "-p", null, packages);
View Full Code Here

        builder.addBoolean(IMPL_STUBS, "-impl");
        builder.addBoolean(GENERATE_ALL, "-all");
        builder.addBoolean(ANT_FILE, "-ant");

        StringToStringMap excludes = StringToStringMap.fromXml(values.get(EXCLUDE_NAMESPACES));
        for (String key : excludes.keySet()) {
            String value = excludes.get(key);
            if (value.equals("-")) {
                builder.addArgs("-b", key);
            } else {
                builder.addArgs("-b", key + "=" + value);
View Full Code Here

        try {
            StringToStringMap nsMappings = StringToStringMap.fromXml(values.get(NAMESPACE_MAPPING));
            if (!nsMappings.isEmpty()) {
                NamespaceMappingRegistryType nsMappingRegistry = wsdl.addNewNamespaceMappingRegistry();

                for (String namespace : nsMappings.keySet()) {
                    String packageName = nsMappings.get(namespace);

                    NamespaceMappingType newMapping = nsMappingRegistry.addNewNamespaceMapping();
                    newMapping.setNamespace(namespace);
                    newMapping.setPackageName(packageName);
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.