Package org.jboss.wsf.spi.metadata.webservices

Examples of org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData


   //PRIVATE METHODS

   private WebservicesMetaData constructWSMetaData()
   {
      WebservicesMetaData wm = new WebservicesMetaData();
      WebserviceDescriptionMetaData wsdm = new WebserviceDescriptionMetaData(wm);
      populateWebserviceDescriptionMetaData(wsdm);
      wm.addWebserviceDescription(wsdm);
      return wm;
   }
View Full Code Here


    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        final JBossWebMetaData jbossWebMD = getJBossWebMetaData(unit);
        final WebservicesMetaData webservicesMD = getOptionalAttachment(unit, WEBSERVICES_METADATA_KEY);
        if (jbossWebMD != null && webservicesMD != null) {
            createJaxrpcDeployment(unit, webservicesMD, jbossWebMD);
        }
    }
View Full Code Here

    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        final EjbJarMetaData ejbJarMD = getOptionalAttachment(unit, EjbDeploymentAttachmentKeys.EJB_JAR_METADATA);
        final WebservicesMetaData webservicesMD = getOptionalAttachment(unit, WEBSERVICES_METADATA_KEY);
        if (ejbJarMD != null && webservicesMD != null) {
            final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
            createJaxrpcDeployment(unit, webservicesMD, moduleDescription);
        }
    }
View Full Code Here

{
   public void testWebServicesMetaDataRead() throws Exception
   {
      URL webservicesURL = new File("resources/tools/metadatafixture/webservices.xml").toURL();
      // Unmarshall webservices.xml
      WebservicesMetaData webservices = null;
      InputStream is = webservicesURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         ObjectModelFactory factory = new WebservicesFactory(webservicesURL);
View Full Code Here

  
   public void testWebServicesMetaDataWrite() throws Exception
   {
      URL webservicesURL = new File("resources/tools/metadatafixture/webservices.xml").toURL();
      // Unmarshall webservices.xml
      WebservicesMetaData webservices = constructWSMetaData();
      assertNotNull("WebServicesMetaData is null?",webservices);
      String wmdata = webservices.serialize();
      Element exp = DOMUtils.parse(webservicesURL.openStream());
      Element act = DOMUtils.parse(wmdata);
      assertEquals(exp,act);
   }
View Full Code Here

      assertEquals(exp,act);
   }
  
   private WebservicesMetaData constructWSMetaData()
   {
      WebservicesMetaData wm = new WebservicesMetaData(null);
      WebserviceDescriptionMetaData wsdm = new WebserviceDescriptionMetaData(wm);
      populateWebserviceDescriptionMetaData(wsdm);
      wm.addWebserviceDescription(wsdm);
      return wm;
   }
View Full Code Here

   public void testJAXWSElementParsing() throws Exception
   {
      URL webservicesURL = new File("resources/jaxws/wsdd/webservices.xml").toURL();
      // Unmarshall webservices.xml
      WebservicesMetaData webservices = null;
      InputStream is = webservicesURL.openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         ObjectModelFactory factory = new WebservicesFactory(webservicesURL);
         webservices = (WebservicesMetaData)unmarshaller.unmarshal(is, factory, null);
      }
      finally
      {
         is.close();
      }

      assertNotNull(webservices);

      WebserviceDescriptionMetaData wsDesc = webservices.getWebserviceDescriptions()[0];
      assertNotNull(wsDesc);
      assertTrue(wsDesc.getPortComponents().length==1);

      PortComponentMetaData portComp = wsDesc.getPortComponents()[0];
      assertNotNull(portComp);
View Full Code Here

    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        if (isJaxwsEjbDeployment(unit)) return;
        final EjbJarMetaData ejbJarMD = getOptionalAttachment(unit, EjbDeploymentAttachmentKeys.EJB_JAR_METADATA);
        final WebservicesMetaData webservicesMD = getOptionalAttachment(unit, WEBSERVICES_METADATA_KEY);
        if (ejbJarMD != null && webservicesMD != null) {
            final EEModuleDescription moduleDescription = getRequiredAttachment(unit, EE_MODULE_DESCRIPTION);
            createJaxrpcDeployment(unit, webservicesMD, moduleDescription);
        }
    }
View Full Code Here

    @Override
    public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit unit = phaseContext.getDeploymentUnit();
        if (isJaxwsPojoDeployment(unit)) return;
        final JBossWebMetaData jbossWebMD = getJBossWebMetaData(unit);
        final WebservicesMetaData webservicesMD = getOptionalAttachment(unit, WEBSERVICES_METADATA_KEY);
        if (jbossWebMD != null && webservicesMD != null) {
            createJaxrpcDeployment(unit, webservicesMD, jbossWebMD);
        }
    }
View Full Code Here

    protected void build(final Deployment dep, final DeploymentUnit unit) {
        final JBossWebMetaData webMetaData = ASHelper.getJBossWebMetaData(unit);
        if (webMetaData != null) {
            dep.addAttachment(JBossWebMetaData.class, webMetaData);
        }
        final WebservicesMetaData wsMetaData = ASHelper.getOptionalAttachment(unit, WSAttachmentKeys.WEBSERVICES_METADATA_KEY);
        if (wsMetaData != null) {
            dep.addAttachment(WebservicesMetaData.class, wsMetaData);
        }

        this.log.debug("Creating JAXRPC JSE endpoints meta data model");
        for (WebserviceDescriptionMetaData wsd : wsMetaData.getWebserviceDescriptions()) {
            for (PortComponentMetaData pcmd : wsd.getPortComponents()) {
                final String servletName = pcmd.getServletLink();
                this.log.debug("JSE name: " + servletName);
                final ServletMetaData servletMD = ASHelper.getServletForName(webMetaData, servletName);
                final String servletClass = ASHelper.getEndpointName(servletMD);
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.metadata.webservices.WebservicesMetaData

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.