Package org.jboss.ws.tools

Examples of org.jboss.ws.tools.WebservicesXMLCreatorImpl


      }

      //Generate the webservices.xml file
      if (j2wc.wsxmlFileNeeded)
      {
         WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
         wscr.setTargetNamespace(j2wc.targetNamespace);
         //wscr.setLocation(new File(outDir).toURL());
         wscr.setSeiName(j2wc.endpointName);
         wscr.setServiceName(j2wc.serviceName);
         //Get the portname from wsdl definitions
         WSDLService wsdlService = wsdl.getService(j2wc.serviceName);
         String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
         //wscr.setPortName(j2wc.serviceName + "Port");
         wscr.setPortName(portName);
         //wscr.setMappingFileName(j2wc.mappingFileName);
         if (j2wc.servletLink != null)
         {
            wscr.setMappingFile("WEB-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("WEB-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setServletLink(j2wc.servletLink);
         }
         else
         {
            wscr.setMappingFile("META-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("META-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setEjbLink(j2wc.ejbLink);
         }
         wscr.setAppend(j2wc.wsxmlFileAppend);
         wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
      }
   }
View Full Code Here


            {
               String seiPackage = getPackageName(wsdl, glc);
               seiName = seiPackage + "." + wsdlToJava.getServiceEndpointInterfaceName(wsdl.getInterfaces()[0]);
            }

            WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
            wscr.setTargetNamespace(wsdl.getTargetNamespace());
            wscr.setSeiName(seiName);
            wscr.setServiceName(serviceName);
            WSDLService wsdlService = wsdl.getService(serviceName);
            String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
            wscr.setPortName(portName);

            String wsdlShortName = wsdlURL.getPath();
            wsdlShortName = wsdlShortName.substring(wsdlShortName.lastIndexOf("/"));

            if (w2jc.servletLink != null)
            {
               wscr.setMappingFile("WEB-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("WEB-INF/wsdl" + wsdlShortName);
               wscr.setServletLink(w2jc.servletLink);
            }
            else
            {
               wscr.setMappingFile("META-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("META-INF/wsdl" + wsdlShortName);
               wscr.setEjbLink(w2jc.ejbLink);
            }
            wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
         }
      }
      catch (RuntimeException rte)
      {
         throw rte;
View Full Code Here

      }

      //Generate the webservices.xml file
      if (j2wc.wsxmlFileNeeded)
      {
         WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
         wscr.setTargetNamespace(j2wc.targetNamespace);
         //wscr.setLocation(new File(outDir).toURL());
         wscr.setSeiName(j2wc.endpointName);
         wscr.setServiceName(j2wc.serviceName);
         //Get the portname from wsdl definitions
         WSDLService wsdlService = wsdl.getService(j2wc.serviceName);
         String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
         //wscr.setPortName(j2wc.serviceName + "Port");
         wscr.setPortName(portName);
         //wscr.setMappingFileName(j2wc.mappingFileName);
         if (j2wc.servletLink != null)
         {
            wscr.setMappingFile("WEB-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("WEB-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setServletLink(j2wc.servletLink);
         }
         else
         {
            wscr.setMappingFile("META-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("META-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setEjbLink(j2wc.ejbLink);
         }
         wscr.setAppend(j2wc.wsxmlFileAppend);
         wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
      }
   }
View Full Code Here

            {
               String seiPackage = getPackageName(wsdl, glc);
               seiName = seiPackage + "." + wsdlToJava.getServiceEndpointInterfaceName(wsdl.getInterfaces()[0]);
            }

            WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
            wscr.setTargetNamespace(wsdl.getTargetNamespace());
            wscr.setSeiName(seiName);
            wscr.setServiceName(serviceName);
            WSDLService wsdlService = wsdl.getService(serviceName);
            String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
            wscr.setPortName(portName);

            String wsdlShortName = wsdlURL.getPath();
            wsdlShortName = wsdlShortName.substring(wsdlShortName.lastIndexOf("/"));

            if (w2jc.servletLink != null)
            {
               wscr.setMappingFile("WEB-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("WEB-INF/wsdl" + wsdlShortName);
               wscr.setServletLink(w2jc.servletLink);
            }
            else
            {
               wscr.setMappingFile("META-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("META-INF/wsdl" + wsdlShortName);
               wscr.setEjbLink(w2jc.ejbLink);
            }
            wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
         }
      }
      catch (RuntimeException rte)
      {
         throw rte;
View Full Code Here

      }

      //Generate the webservices.xml file
      if (j2wc.wsxmlFileNeeded)
      {
         WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
         wscr.setTargetNamespace(j2wc.targetNamespace);
         //wscr.setLocation(new File(outDir).toURL());
         wscr.setSeiName(j2wc.endpointName);
         wscr.setServiceName(j2wc.serviceName);
         //Get the portname from wsdl definitions
         WSDLService wsdlService = wsdl.getService(j2wc.serviceName);
         String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
         //wscr.setPortName(j2wc.serviceName + "Port");
         wscr.setPortName(portName);
         //wscr.setMappingFileName(j2wc.mappingFileName);
         if (j2wc.servletLink != null)
         {
            wscr.setMappingFile("WEB-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("WEB-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setServletLink(j2wc.servletLink);
         }
         else
         {
            wscr.setMappingFile("META-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("META-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setEjbLink(j2wc.ejbLink);
         }
         wscr.setAppend(j2wc.wsxmlFileAppend);
         wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
      }
   }
View Full Code Here

            {
               String seiPackage = getPackageName(wsdl, glc);
               seiName = seiPackage + "." + wsdlToJava.getServiceEndpointInterfaceName(wsdl.getInterfaces()[0]);
            }

            WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
            wscr.setTargetNamespace(wsdl.getTargetNamespace());
            wscr.setSeiName(seiName);
            wscr.setServiceName(serviceName);
            WSDLService wsdlService = wsdl.getService(serviceName);
            String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
            wscr.setPortName(portName);

            String wsdlShortName = wsdlURL.getPath();
            wsdlShortName = wsdlShortName.substring(wsdlShortName.lastIndexOf("/"));

            if (w2jc.servletLink != null)
            {
               wscr.setMappingFile("WEB-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("WEB-INF/wsdl" + wsdlShortName);
               wscr.setServletLink(w2jc.servletLink);
            }
            else
            {
               wscr.setMappingFile("META-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("META-INF/wsdl" + wsdlShortName);
               wscr.setEjbLink(w2jc.ejbLink);
            }
            wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
         }
      }
      catch (RuntimeException rte)
      {
         throw rte;
View Full Code Here

      }

      //Generate the webservices.xml file
      if (j2wc.wsxmlFileNeeded)
      {
         WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
         wscr.setTargetNamespace(j2wc.targetNamespace);
         //wscr.setLocation(new File(outDir).toURL());
         wscr.setSeiName(j2wc.endpointName);
         wscr.setServiceName(j2wc.serviceName);
         //Get the portname from wsdl definitions
         WSDLService wsdlService = wsdl.getService(j2wc.serviceName);
         String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
         //wscr.setPortName(j2wc.serviceName + "Port");
         wscr.setPortName(portName);
         //wscr.setMappingFileName(j2wc.mappingFileName);
         if (j2wc.servletLink != null)
         {
            wscr.setMappingFile("WEB-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("WEB-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setServletLink(j2wc.servletLink);
         }
         else
         {
            wscr.setMappingFile("META-INF/" + j2wc.mappingFileName);
            wscr.setWsdlFile("META-INF/wsdl/" + j2wc.serviceName + ".wsdl");
            wscr.setEjbLink(j2wc.ejbLink);
         }
         wscr.setAppend(j2wc.wsxmlFileAppend);
         wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
      }
   }
View Full Code Here

            {
               String seiPackage = getPackageName(wsdl, glc);
               seiName = seiPackage + "." + wsdlToJava.getServiceEndpointInterfaceName(wsdl.getInterfaces()[0]);
            }

            WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
            wscr.setTargetNamespace(wsdl.getTargetNamespace());
            wscr.setSeiName(seiName);
            wscr.setServiceName(serviceName);
            WSDLService wsdlService = wsdl.getService(serviceName);
            String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
            wscr.setPortName(portName);

            String wsdlShortName = wsdlURL.getPath();
            wsdlShortName = wsdlShortName.substring(wsdlShortName.lastIndexOf("/"));

            if (w2jc.servletLink != null)
            {
               wscr.setMappingFile("WEB-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("WEB-INF/wsdl" + wsdlShortName);
               wscr.setServletLink(w2jc.servletLink);
            }
            else
            {
               wscr.setMappingFile("META-INF/" + w2jc.mappingFileName);
               wscr.setWsdlFile("META-INF/wsdl" + wsdlShortName);
               wscr.setEjbLink(w2jc.ejbLink);
            }
            wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
         }
      }
      catch (RuntimeException rte)
      {
         throw rte;
View Full Code Here

/* 140 */       writer.close();
/*     */     }
/*     */
/* 144 */     if (j2wc.wsxmlFileNeeded)
/*     */     {
/* 146 */       WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
/* 147 */       wscr.setTargetNamespace(j2wc.targetNamespace);
/*     */
/* 149 */       wscr.setSeiName(j2wc.endpointName);
/* 150 */       wscr.setServiceName(j2wc.serviceName);
/*     */
/* 152 */       WSDLService wsdlService = wsdl.getService(j2wc.serviceName);
/* 153 */       String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
/*     */
/* 155 */       wscr.setPortName(portName);
/*     */
/* 157 */       if (j2wc.servletLink != null)
/*     */       {
/* 159 */         wscr.setMappingFile("WEB-INF/" + j2wc.mappingFileName);
/* 160 */         wscr.setWsdlFile("WEB-INF/wsdl/" + j2wc.serviceName + ".wsdl");
/* 161 */         wscr.setServletLink(j2wc.servletLink);
/*     */       }
/*     */       else
/*     */       {
/* 165 */         wscr.setMappingFile("META-INF/" + j2wc.mappingFileName);
/* 166 */         wscr.setWsdlFile("META-INF/wsdl/" + j2wc.serviceName + ".wsdl");
/* 167 */         wscr.setEjbLink(j2wc.ejbLink);
/*     */       }
/* 169 */       wscr.setAppend(j2wc.wsxmlFileAppend);
/* 170 */       wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
/*     */     }
/*     */   }
View Full Code Here

/*     */         {
/* 333 */           String seiPackage = getPackageName(wsdl, glc);
/* 334 */           seiName = seiPackage + "." + wsdlToJava.getServiceEndpointInterfaceName(wsdl.getInterfaces()[0]);
/*     */         }
/*     */
/* 337 */         WebservicesXMLCreator wscr = new WebservicesXMLCreatorImpl();
/* 338 */         wscr.setTargetNamespace(wsdl.getTargetNamespace());
/* 339 */         wscr.setSeiName(seiName);
/* 340 */         wscr.setServiceName(serviceName);
/* 341 */         WSDLService wsdlService = wsdl.getService(serviceName);
/* 342 */         String portName = wsdlService.getEndpoints()[0].getName().getLocalPart();
/* 343 */         wscr.setPortName(portName);
/*     */
/* 345 */         String wsdlShortName = wsdlURL.getPath();
/* 346 */         wsdlShortName = wsdlShortName.substring(wsdlShortName.lastIndexOf("/"));
/*     */
/* 348 */         if (w2jc.servletLink != null)
/*     */         {
/* 350 */           wscr.setMappingFile("WEB-INF/" + w2jc.mappingFileName);
/* 351 */           wscr.setWsdlFile("WEB-INF/wsdl" + wsdlShortName);
/* 352 */           wscr.setServletLink(w2jc.servletLink);
/*     */         }
/*     */         else
/*     */         {
/* 356 */           wscr.setMappingFile("META-INF/" + w2jc.mappingFileName);
/* 357 */           wscr.setWsdlFile("META-INF/wsdl" + wsdlShortName);
/* 358 */           wscr.setEjbLink(w2jc.ejbLink);
/*     */         }
/* 360 */         wscr.generateWSXMLDescriptor(new File(outDir + "/webservices.xml"));
/*     */       }
/*     */     }
/*     */     catch (RuntimeException rte)
/*     */     {
/* 365 */       throw rte;
View Full Code Here

TOP

Related Classes of org.jboss.ws.tools.WebservicesXMLCreatorImpl

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.