Package javax.wsdl.xml

Examples of javax.wsdl.xml.WSDLWriter.writeWSDL()


        ExtensionRegistry extReg = new ExtensionRegistry();
        addExtensions(extReg);
        reader.setExtensionRegistry(extReg);
        Definition wsdlDefn = reader.readWSDL(defnFile.toString());
        WSDLWriter wsdlWriter = factory.newWSDLWriter();
        wsdlWriter.writeWSDL(wsdlDefn, writer);
        writer.close();
        writer = null;
        reader = null;
        return bkFile;
    }
View Full Code Here


        try {
            for (WSDLInfo wsdlInfo : wsdls.values()) {
                Definition wsdlDefinition = wsdlInfo.getWSDLDefinition();
                WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                wsdlWriter.writeWSDL(wsdlDefinition, byteArrayOutputStream);
                byte[] wsdlResourceContent = byteArrayOutputStream.toByteArray();

                // create a resource this wsdlResourceContent and put it to the registry with the name
                // importedResourceName (in some path)
                String wsdlPath = wsdlInfo.getProposedRegistryURL();
View Full Code Here

        String importedResourceName =
                (String)processedWSDLMap.get(wsdlDefinition.getDocumentBaseURI());
        try {
            WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
            ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
            wsdlWriter.writeWSDL(wsdlDefinition, byteArrayOutputStream);
            byte[] wsdlResourceContent = byteArrayOutputStream.toByteArray();

            // create a resource this wsdlResourceContent and put it to the registry with the name
            // importedResourceName (in some path)
View Full Code Here

    if (!wsdlImportLocationAdjusted) {
      changeImportAndIncludeLocations(definition);
      wsdlImportLocationAdjusted = true;
    }
    WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
    writer.writeWSDL(definition, out);
  }

  public void printUserWSDL(OutputStream out, String wsdlName)
      throws AxisFault {
      printUserWSDL(out, wsdlName, null);
View Full Code Here

                    "WfMOpenInstance", "WfMOpenInstanceService");

            addWsdlService(request, definition, "WfXmlActivity",
                    "WfMOpenActivity", "WfMOpenActivityService");
           
            writer.writeWSDL(definition, response.getOutputStream());
        } catch (WSDLException e) {
            throw new IOException(e.getMessage());
        }
    }
View Full Code Here

        response.setStatus( HttpServletResponse.SC_OK );
        response.setContentType( "text/xml" );
        response.setCharacterEncoding( "UTF-8" );

        WSDLWriter writer = wsdlFactory.newWSDLWriter();
        writer.writeWSDL( def, response.getWriter() );
      }
      catch( Exception e )
      {
        SoapUI.logError( e );
        throw new IOException( "Failed to create combined WSDL" );
View Full Code Here

    if (!wsdlImportLocationAdjusted) {
      changeImportAndIncludeLocations(definition);
      wsdlImportLocationAdjusted = true;
    }
    WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
    writer.writeWSDL(definition, out);
  }

  public void printUserWSDL(OutputStream out, String wsdlName)
      throws AxisFault {
    Definition definition = null;
View Full Code Here

        }
        //the wsdl definition is present. then we can ditectly utilize the wsdl writer.
        if (wsdlWrapper.getDefinition() != null) {
            try {
                WSDLWriter writer = WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(wsdlWrapper.getDefinition(), out);
            } catch (WSDLException e) {
                throw new WriterException(e);
            }
            //wsdl description is present but not the definition. So start writing
        } else if (wsdlWrapper.getDescription() != null) {
View Full Code Here

        // for debugging
        if (printWSDL) {
            try {
                System.out.println("Generated WSDL for " + component.getName() + "/" + contractName);
                WSDLWriter writer =  javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
                writer.writeWSDL(def, System.out);
            } catch (WSDLException e) {
                throw new WSDLGenerationException(e);
            }
        }
View Full Code Here

                                 File file = new File(filename);
                                 file.createNewFile();
                                 FileOutputStream stream = new FileOutputStream(file);
                                 System.out.println("Generated WSDL for " + component.getName() + "/" + service.getName());
                                 WSDLWriter writer =  javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
                                 writer.writeWSDL(bindingWS.getWSDLDefinition().getDefinition(),stream);
                             } catch (Exception e) {
                                 throw new WSDLGenerationException(e);
                             }
                         } else {
                             System.out.println("  No binding.ws" );
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.