Package javax.xml.ws

Examples of javax.xml.ws.WebServiceException


        URL routerConfigFileUrl = RouterServer.class.getResource("router_config.xml");
        System.setProperty("celtix.config.file", routerConfigFileUrl.toString());
        try {
            bus = Bus.init(args);
        } catch (BusException be) {
            throw new WebServiceException("Could not initialize bus", be);
        }
    }
View Full Code Here


                       
                        anyList.add(node);
                    }
                }
            } catch (TransformerException te) {
                throw new WebServiceException("Populating metadata in EPR failed", te);
            }
        }
    }
View Full Code Here

            Class<?> seiClazz = null;
            try {
                seiClazz = Class.forName(className);
            } catch (ClassNotFoundException cnfe) {
                LOG.log(Level.SEVERE, "SEI_LOAD_FAILURE_MSG", cnfe);
                throw new WebServiceException("endpointInterface element in WebService annotation invalid",
                                              cnfe);
            }
           
            if (!seiClazz.isInterface()) {
                throw new WebServiceException("endpointInterface element does not refer to a java interface");
            }
           
            WebService seiws = seiClazz.getAnnotation(WebService.class);
            if (null == seiws) {
                throw new WebServiceException("SEI should have a WebService Annotation");
            }

            if ("".equals(url)) {
                url = seiws.wsdlLocation();
            }
View Full Code Here

   @PostConstruct
   public void init()
   {
      if(null == wsCtx)
         throw new WebServiceException("WebService context is null @PostConstruct");
   }
View Full Code Here

         ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/" + getClass().getName() + "/port3"));
      }
      catch (Exception ex)
      {
         log.error("Cannot add port", ex);
         throw new WebServiceException(ex);
      }

      for (TestEndpoint port : ports)
      {
         String outStr = port.echo(inStr);
         if (inStr.equals(outStr) == false)
            throw new WebServiceException("Invalid echo return: " + inStr);
      }

      return inStr;
   }
View Full Code Here

         ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/" + getClass().getName() + "/port3"));
      }
      catch (Exception ex)
      {
         log.error("Cannot add port", ex);
         throw new WebServiceException(ex);
      }
     
      for (TestEndpoint port : ports)
      {
         String outStr = port.echo(inStr);
         if (inStr.equals(outStr) == false)
            throw new WebServiceException("Invalid echo return: " + inStr);
      }
     
      res.getWriter().print(inStr);
   }
View Full Code Here

         ports.add((TestEndpoint)iniCtx.lookup("java:comp/env/" + ApplicationClient.class.getName() + "/port3"));
      }
      catch (Exception ex)
      {
         log.error("Cannot add port", ex);
         throw new WebServiceException(ex);
      }
     
      for (TestEndpoint port : ports)
      {
         String outStr = port.echo(inStr);
         if (inStr.equals(outStr) == false)
            throw new WebServiceException("Invalid echo return: " + inStr);
      }
   }
View Full Code Here

      if (ejb3ContainerNotInitialized)
      {
         this.serviceEndpointContainer = this.iocContainer.getBean(this.containerName, ServiceEndpointContainer.class);
         if (this.serviceEndpointContainer == null)
         {
            throw new WebServiceException("Cannot find service endpoint target: " + this.containerName);
         }
      }

      return this.serviceEndpointContainer;
   }
View Full Code Here

      final EJBArchiveMetaData ejbArchiveMD = WSHelper.getRequiredAttachment(dep, EJBArchiveMetaData.class);
      final EJBMetaData ejbMD = (EJBMetaData) ejbArchiveMD.getBeanByEjbName(ejbName);

      if (ejbMD == null)
      {
         throw new WebServiceException("Cannot obtain ejb meta data for: " + ejbName);
      }

      // get the bean's JNDI name
      this.jndiName = ejbMD.getContainerObjectNameJndiName();

      if (this.jndiName == null)
      {
         throw new WebServiceException("Cannot obtain JNDI name for: " + ejbName);
      }
   }
View Full Code Here

      is = Vfs.openRead(wsdlLocation);

      return parse(is);
    }
    catch (IOException e) {
      throw new WebServiceException(L.l("Unable to download WSDL: {0}",
                                        wsdlLocation), e);
    }
    catch (JAXBException e) {
      throw new WebServiceException(L.l("Unable to parse WSDL: {0}",
                                        wsdlLocation), e);
    }
    finally {
      try {
        if (is != null)
View Full Code Here

TOP

Related Classes of javax.xml.ws.WebServiceException

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.