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

Examples of com.eviware.soapui.impl.support.definition.export.WsdlDefinitionExporter


        null ) : new File( location );

    if( folderName == null )
      return null;

    WsdlDefinitionExporter exporter = new WsdlDefinitionExporter( iface );
    return exporter.export( folderName.getAbsolutePath() );
  }
View Full Code Here


    transformer.setParameter( "output.dir", reportDirAbsolutePath );

    String reportFile = reportDirAbsolutePath + File.separatorChar + "wsdl-report.html";
    StreamResult result = new StreamResult( new FileWriter( reportFile ) );

    WsdlDefinitionExporter exporter = new WsdlDefinitionExporter( target );
    String infile = exporter.export( reportDirAbsolutePath );

    transformer.transform( new StreamSource( new FileReader( infile ) ), result );

    String reportUrl = new File( reportFile ).toURI().toURL().toString();
    return reportUrl;
View Full Code Here

    project.getSettings().setBoolean( WsdlSettings.CACHE_WSDLS, true );
    WsdlInterface wsdlInterface = WsdlImporter.importWsdl( project, wsdlUrl )[0];

    assertTrue( wsdlInterface.isCached() );

    WsdlDefinitionExporter exporter = new WsdlDefinitionExporter( wsdlInterface );

    String root = exporter.export( "test" + File.separatorChar + "output" );

    WsdlProject project2 = new WsdlProject();
    WsdlInterface wsdl2 = WsdlImporter.importWsdl( project2, new File( root ).toURI().toURL().toString() )[0];

    assertEquals( wsdlInterface.getBindingName(), wsdl2.getBindingName() );
View Full Code Here

      if( !iface.getInterfaceType().equals( WsdlInterfaceFactory.WSDL_TYPE ) )
        continue;

      try
      {
        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" ) )
          {
View Full Code Here

    return getInterface() == null ? soapVersion : getInterface().getSoapVersion();
  }

  public String export( String path ) throws Exception
  {
    return new WsdlDefinitionExporter( getInterface() ).export( path );
  }
View Full Code Here

        project.getSettings().setBoolean(WsdlSettings.CACHE_WSDLS, true);
        WsdlInterface wsdlInterface = WsdlImporter.importWsdl(project, wsdlUrl)[0];

        assertTrue(wsdlInterface.isCached());

        WsdlDefinitionExporter exporter = new WsdlDefinitionExporter(wsdlInterface);

        String root = exporter.export(OUTPUT_FOLDER_BASE_PATH + "test" + File.separatorChar + "output");

        WsdlProject project2 = new WsdlProject();
        WsdlInterface wsdl2 = WsdlImporter.importWsdl(project2, new File(root).toURI().toURL().toString())[0];

        assertEquals(wsdlInterface.getBindingName(), wsdl2.getBindingName());
View Full Code Here

        transformer.setParameter("output.dir", reportDirAbsolutePath);

        String reportFile = reportDirAbsolutePath + File.separatorChar + "wsdl-report.html";
        StreamResult result = new StreamResult(new FileWriter(reportFile));

        WsdlDefinitionExporter exporter = new WsdlDefinitionExporter(target);
        String infile = exporter.export(reportDirAbsolutePath);

        transformer.transform(new StreamSource(new FileReader(infile)), result);

        String reportUrl = new File(reportFile).toURI().toURL().toString();
        return reportUrl;
View Full Code Here

            if (!iface.getInterfaceType().equals(WsdlInterfaceFactory.WSDL_TYPE)) {
                continue;
            }

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

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

                for (Map.Entry<String, String> partEntry : parts.entrySet()) {
                    if (partEntry.getKey().toLowerCase().endsWith(".wsdl")) {
                        InputSource inputSource = new InputSource(new StringReader(partEntry.getValue()));
                        String content = WsdlUtils.replacePortEndpoint((WsdlInterface) iface, inputSource,
View Full Code Here

    public SoapVersion getSoapVersion() {
        return getInterface() == null ? soapVersion : getInterface().getSoapVersion();
    }

    public String export(String path) throws Exception {
        return new WsdlDefinitionExporter(getInterface()).export(path);
    }
View Full Code Here

        if (folderName == null) {
            return null;
        }

        WsdlDefinitionExporter exporter = new WsdlDefinitionExporter(iface);
        return exporter.export(folderName.getAbsolutePath());
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.support.definition.export.WsdlDefinitionExporter

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.