Package org.apache.axis.wsdl.toJava

Examples of org.apache.axis.wsdl.toJava.Namespaces


      // only generate if the server side code is to be generated
      if ( emitter.isServerSide(  ) )
      {
         String     wsResourceClassName = ConcreteWSResourceClassWriter.getWsResourceClassName( emitter, sEntry );
         String     fileName        = Utils.getJavaLocalName( wsResourceClassName ) + ".java";
         Namespaces namespaces      = emitter.getNamespaces(  );
         String     namespace       = sEntry.getQName(  ).getNamespaceURI(  );
         String     packageNamePath = namespaces.toDir( emitter.getPackage( namespace ) );
         File       fullFileName    = new File( packageNamePath + fileName );

         if ( fullFileName.exists(  ) )
         {
            if ( !emitter.isQuiet(  ) )
View Full Code Here


        // TODO: Should the class generation depend on Axis?
        if (packageName == null) {
            packageName = Utils.makePackageName(wsm.getWsTargetNamespace());
        }
        if (serviceName != null && packageName != null) {
            File subDir = new File(mOutputDir, new Namespaces(null)
                    .toDir(packageName));
            subDir.mkdirs();
            if (subDir.isDirectory()) {
                File jcx = new File(subDir, serviceName + ".jcx");
                PrintWriter jcxWriter = new PrintWriter(jcx, "UTF-8");
View Full Code Here

     * @param wsdlURL
     * @return
     */
    private boolean bindingsAreGenerated(String namespace, String serviceName) {
        try {
            Namespaces namespaces = new Namespaces(this.sourcePath);
            String packageName = Utils.makePackageName(namespace);
            namespaces.put(namespace, packageName);
            String fileName = Utils.capitalizeFirstChar(serviceName) + ".java";
            return Utils.fileExists(fileName, namespace, namespaces);
        } catch (IOException e) {
            logger.error("Error checking for binding class for service: "
                    + serviceName);
View Full Code Here

TOP

Related Classes of org.apache.axis.wsdl.toJava.Namespaces

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.