Package org.apache.axis2.jaxws.catalog.impl

Examples of org.apache.axis2.jaxws.catalog.impl.OASISCatalogManager


     * Service.create(QName) with a composite that specifies a CatalogManager override
     */
    public void test1ArgServiceOverrideCatalogManager() {
        QName serviceQName = new QName(namespaceURI, svcLocalPart);
        DescriptionBuilderComposite composite = new DescriptionBuilderComposite();
        OASISCatalogManager catalogManager = new OASISCatalogManager();
        catalogManager.setCatalogFiles(getCatalogLocation(uniqueCatalog));
        composite.setCatalogManager(catalogManager);
        // Use the proprietary SPI to create a service with additional metadata specified
        ServiceDelegate.setServiceMetadata(composite);
        Service service = Service.create(serviceQName);
       
View Full Code Here


     */
    public void test2ArgServiceOverrideCatalogManager() {
        QName serviceQName = new QName(namespaceURI, svcLocalPart);
        URL wsdlUrl = getWsdlURL(otherWsdl);
        DescriptionBuilderComposite composite = new DescriptionBuilderComposite();
        OASISCatalogManager catalogManager = new OASISCatalogManager();
        catalogManager.setCatalogFiles(getCatalogLocation(uniqueCatalog));
        composite.setCatalogManager(catalogManager);
        // Use the proprietary SPI to create a service with additional metadata specified
        ServiceDelegate.setServiceMetadata(composite);
        Service service = Service.create(wsdlUrl, serviceQName);
       
View Full Code Here

    /**
     * Generated service constructor() with a composite that specifies a CatalogManager override
     */
    public void testNoArgGeneratedServiceOverrideCatalogManager() {
        DescriptionBuilderComposite composite = new DescriptionBuilderComposite();
        OASISCatalogManager catalogManager = new OASISCatalogManager();
        catalogManager.setCatalogFiles(getCatalogLocation(uniqueCatalog));
        composite.setCatalogManager(catalogManager);
        ServiceDelegate.setServiceMetadata(composite);

        Service service = new ClientMetadataGeneratedService();

View Full Code Here

     * Generated service constructor(URL, QName) with a composite that specifies a
     * Catalog Manager override. 
     */
    public void test2ArgGeneratedServiceOverrideCatalogManager() {
        DescriptionBuilderComposite composite = new DescriptionBuilderComposite();
        OASISCatalogManager catalogManager = new OASISCatalogManager();
        catalogManager.setCatalogFiles(getCatalogLocation(uniqueCatalog));
        composite.setCatalogManager(catalogManager);
        ServiceDelegate.setServiceMetadata(composite);

        Service service = new ClientMetadataGeneratedService(getWsdlURL(otherWsdl),
                                                             new QName(namespaceURI, svcLocalPart));
View Full Code Here

     
      if (sparseComposite != null) {
          catalogManager = sparseComposite.getCatalogManager();
        }
      if (catalogManager == null) {
        catalogManager = new OASISCatalogManager();
        }
     
        if (serviceQName == null) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("serviceDescErr0"));
        }
View Full Code Here

        }
     
      if (sparseComposite != null)
          catalogManager = sparseComposite.getCatalogManager();
      else
        catalogManager = new OASISCatalogManager();
     
        if (serviceQName == null) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("serviceDescErr0"));
        }
        if (serviceClass == null) {
View Full Code Here

     
      if (sparseComposite != null) {
          catalogManager = sparseComposite.getCatalogManager();
        }
      if (catalogManager == null) {
        catalogManager = new OASISCatalogManager();
        }
     
        if (serviceQName == null) {
            throw ExceptionFactory.makeWebServiceException(Messages.getMessage("serviceDescErr0"));
        }
View Full Code Here

                        OASISCatalogManager.DEFAULT_CATALOG_EJB);
                if (catalogURL != null) {
                    if (log.isDebugEnabled()) {
                        log.debug("Found JAX-WS catalog in EJB file");
                    }
                    returnCatalogManager = new OASISCatalogManager(cl);
                    returnCatalogManager.getCatalog().parseCatalog(catalogURL);
                }
            } else {
                if (log.isDebugEnabled()) {
                    log.debug("Found JAX-WS catalog in WAR file");
                }
                returnCatalogManager = new OASISCatalogManager(cl);
                returnCatalogManager.getCatalog().parseCatalog(catalogURL);
            }
        } catch (Exception e) {
            if (log.isDebugEnabled()) {
                log.debug("ServiceDescriptionImpl caught exception from parseCatalog ",e);
View Full Code Here

   */
  private void verifySuccess(String wsdlLocation, String catalogFile) {
      URL url = getURLFromLocation(wsdlLocation);
     
      try{
      OASISCatalogManager catalogManager = new OASISCatalogManager();
      catalogManager.setCatalogFiles(getURLFromLocation(catalogFile).toString());
            WSDL4JWrapper w4j = new WSDL4JWrapper(url, catalogManager, false, 0);
        Definition wsdlDef = w4j.getDefinition();
        assertNotNull(wsdlDef);  
        QName portTypeName = new QName("http://www.example.com/test/calculator",
                                   "CalculatorService",
View Full Code Here

   */
  private void verifyFailure(String wsdlLocation, String catalogFile) {
      URL url = getURLFromLocation(wsdlLocation);
     
      try{
      OASISCatalogManager catalogManager = new OASISCatalogManager();
            catalogManager.setCatalogFiles(getURLFromLocation(catalogFile).toString());
        WSDL4JWrapper w4j = new WSDL4JWrapper(url, catalogManager, false, 0);
        w4j.getDefinition();
        fail("Should have received a WSDLException due to the invalid WSDL location "
              + "not redirected by the catalog.");
      } catch(WSDLException e) {
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.catalog.impl.OASISCatalogManager

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.