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

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


        return false;
    }

    private PortComponentMetaData buildPortComponent(boolean isEJB, String endpointClass, QName portQname, UnifiedHandlerChainsMetaData unifiedHandlerChainsMetaData) {
        return new PortComponentMetaData(null, portQname, endpointClass, isEJB ? getClassName(endpointClass) : null, isEJB ? null : endpointClass, null, null, null, null, unifiedHandlerChainsMetaData);
    }
View Full Code Here


   {
      checkEssentials();
      wsdm.setWebserviceDescriptionName(this.serviceName);
      wsdm.setWsdlFile(this.wsdlFile);
      wsdm.setJaxrpcMappingFile(this.mappingFile);
      PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
      pm1.setPortComponentName(portName);
      pm1.setWsdlPort(new QName(this.targetNamespace, portName, "portNS"));
      pm1.setServiceEndpointInterface(seiName);
      if (this.servletLink != null && this.servletLink.length() > 0)
         pm1.setServletLink(this.servletLink);
      else pm1.setEjbLink(this.ejbLink);
      wsdm.addPortComponent(pm1);
   }
View Full Code Here

   {
      wsdm.setWebserviceDescriptionName("HelloWsService");
      wsdm.setWsdlFile("WEB-INF/wsdl/HelloService.wsdl");
      wsdm.setJaxrpcMappingFile("WEB-INF/jaxrpc-mapping.xml");
      //create 1 of 4 PortComponents
      PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
      pm1.setPortComponentName("ValidURL");
      pm1.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "ValidURLPort","impl") );
      pm1.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm1.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm1);

      //create 2 of 4 PortComponents
      PortComponentMetaData pm2 = new PortComponentMetaData(wsdm);
      pm2.setPortComponentName("InvalidURL");
      pm2.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "InvalidURLPort","impl") );
      pm2.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm2.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm2);
     
      //create 3 of 4 PortComponents
      PortComponentMetaData pm3 = new PortComponentMetaData(wsdm);
      pm3.setPortComponentName("ValidSecureURL");
      pm3.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "ValidSecureURLPort","impl") );
      pm3.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm3.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm3);
     
      //    create 4 of 4 PortComponents
      PortComponentMetaData pm4 = new PortComponentMetaData(wsdm);
      pm4.setPortComponentName("InvalidSecureURL");
      pm4.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "InvalidSecureURLPort","impl") );
      pm4.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm4.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm4);
   }
View Full Code Here

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

      PortComponentMetaData portComp = wsDesc.getPortComponents()[0];
      assertNotNull(portComp);
      assertTrue(portComp.getHandlerChains().getHandlerChains().size()>0);

      // wsdlService
      assertTrue(portComp.getWsdlService().getLocalPart().equals("HelloService"));

      // mtom
      assertTrue(portComp.isEnableMtom());

      // handler chains
      UnifiedHandlerChainMetaData handlerChain = portComp.getHandlerChains().getHandlerChains().get(0);
      assertNotNull(handlerChain);
      assertTrue( ((UnifiedHandlerMetaData)handlerChain.getHandlers().get(0)).getHandlerName().equals("ServerHandler1"));

   }
View Full Code Here

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

      PortComponentMetaData portComp = wsDesc.getPortComponents()[0];
      assertNotNull(portComp);
      assertTrue(portComp.getHandlerChains().getHandlerChains().size() > 0);

      // wsdlService
      assertTrue(portComp.getWsdlService().getLocalPart().equals("WSDDEndpointImplService"));

      // mtom
      assertTrue(portComp.isEnableMtom());

      // handler chains
      UnifiedHandlerChainMetaData handlerChain = portComp.getHandlerChains().getHandlerChains().get(0);
      assertNotNull(handlerChain);
      assertTrue(((UnifiedHandlerMetaData)handlerChain.getHandlers().get(0)).getHandlerName().equals("CustomHandler"));

   }
View Full Code Here

   {
      wsdm.setWebserviceDescriptionName("HelloWsService");
      wsdm.setWsdlFile("WEB-INF/wsdl/HelloService.wsdl");
      wsdm.setJaxrpcMappingFile("WEB-INF/jaxrpc-mapping.xml");
      //create 1 of 4 PortComponents
      PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
      pm1.setPortComponentName("ValidURL");
      pm1.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "ValidURLPort","impl") );
      pm1.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm1.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm1);

      //create 2 of 4 PortComponents
      PortComponentMetaData pm2 = new PortComponentMetaData(wsdm);
      pm2.setPortComponentName("InvalidURL");
      pm2.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "InvalidURLPort","impl") );
      pm2.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm2.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm2);
     
      //create 3 of 4 PortComponents
      PortComponentMetaData pm3 = new PortComponentMetaData(wsdm);
      pm3.setPortComponentName("ValidSecureURL");
      pm3.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "ValidSecureURLPort","impl") );
      pm3.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm3.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm3);
     
      //    create 4 of 4 PortComponents
      PortComponentMetaData pm4 = new PortComponentMetaData(wsdm);
      pm4.setPortComponentName("InvalidSecureURL");
      pm4.setWsdlPort(new QName("http://test.jboss.org/ws4eesimple",
            "InvalidSecureURLPort","impl") );
      pm4.setServiceEndpointInterface("org.jboss.test.webservice.ws4eesimple.HelloWs");
      pm4.setServletLink("HelloJavaBean");
      wsdm.addPortComponent(pm4);
   }
View Full Code Here

   {
      checkEssentials();
      wsdm.setWebserviceDescriptionName(this.serviceName);
      wsdm.setWsdlFile(this.wsdlFile);
      wsdm.setJaxrpcMappingFile(this.mappingFile);
      PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
      pm1.setPortComponentName(portName);
      pm1.setWsdlPort(new QName(this.targetNamespace, portName, "portNS"));
      pm1.setServiceEndpointInterface(seiName);
      if (this.servletLink != null && this.servletLink.length() > 0)
         pm1.setServletLink(this.servletLink);
      else pm1.setEjbLink(this.ejbLink);
      wsdm.addPortComponent(pm1);
   }
View Full Code Here

/*     */   {
/* 175 */     checkEssentials();
/* 176 */     wsdm.setWebserviceDescriptionName(this.serviceName);
/* 177 */     wsdm.setWsdlFile(this.wsdlFile);
/* 178 */     wsdm.setJaxrpcMappingFile(this.mappingFile);
/* 179 */     PortComponentMetaData pm1 = new PortComponentMetaData(wsdm);
/* 180 */     pm1.setPortComponentName(this.portName);
/* 181 */     pm1.setWsdlPort(new QName(this.targetNamespace, this.portName, "portNS"));
/* 182 */     pm1.setServiceEndpointInterface(this.seiName);
/* 183 */     if ((this.servletLink != null) && (this.servletLink.length() > 0))
/* 184 */       pm1.setServletLink(this.servletLink);
/* 185 */     else pm1.setEjbLink(this.ejbLink);
/* 186 */     wsdm.addPortComponent(pm1);
/*     */   }
View Full Code Here

TOP

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

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.