Package org.jboss.ws.tools.wsdl

Examples of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory


   }

   public void testConfidentialSecuredWSDLAccess() throws Exception
   {
      URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxrpc-samples-ejb/ConfidentialSecured?wsdl");
      WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
      WSDLDefinitions wsdl = factory.parse(wsdlURL);
      assertNotNull("Expect unsecured wsdl access", wsdl);
   }
View Full Code Here


   {
      PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
      try
      {
         WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
         if (wsdlLocation != null)
         {
            //we can no longer use the user provided wsdl without parsing it right now, since we
            //need to look for policies and eventually choose the supported policy alternatives
            WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
            //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
            //the supported alternatives and so on, since we need to publish the file the user provided
            serviceMetaData.setWsdlLocation(wsdlLocation);
         }
View Full Code Here

    * @see org.jboss.ws.tools.WSDLToJavaIntf#convertWSDL2Java(java.net.URL)
    */
   public WSDLDefinitions convertWSDL2Java(URL wsdlfileurl) throws WSDLException
   {
      checkTypeMapping();
      WSDLDefinitionsFactory wsdlFactory = WSDLDefinitionsFactory.newInstance();
      wsdl = wsdlFactory.parse(wsdlfileurl);

      return wsdl;
   }
View Full Code Here

    * @see org.jboss.ws.tools.WSDLToJavaIntf#convertWSDL2Java(java.net.URL)
    */
   public WSDLDefinitions convertWSDL2Java(URL wsdlfileurl) throws WSDLException
   {
      checkTypeMapping();
      WSDLDefinitionsFactory wsdlFactory = WSDLDefinitionsFactory.newInstance();
      wsdl = wsdlFactory.parse(wsdlfileurl);

      return wsdl;
   }
View Full Code Here

            wsdlCacheKey = "#" + (wsdlLocation != null ? wsdlLocation : wsdlFile);
        
         wsdlDefinitions = (WSDLDefinitions)wsMetaData.getWsdlDefinition(wsdlCacheKey);
         if (wsdlDefinitions == null)
         {
            WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
            wsdlDefinitions = factory.parse(wsdlURL);
            wsMetaData.addWsdlDefinition(wsdlCacheKey, wsdlDefinitions);
         }
      }
      return wsdlDefinitions;
   }
View Full Code Here

   {
      PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
      try
      {
         WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
         if (wsdlLocation != null)
         {
            //we can no longer use the user provided wsdl without parsing it right now, since we
            //need to look for policies and eventually choose the supported policy alternatives
            WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
            //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
            //the supported alternatives and so on, since we need to publish the file the user provided
            serviceMetaData.setWsdlLocation(wsdlLocation);
         }
View Full Code Here

/*     */   {
/* 364 */     PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(this.toolMode);
/*     */     try
/*     */     {
/* 367 */       WSDLGenerator generator = new JAXBWSDLGenerator(this.jaxbCtx);
/* 368 */       WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
/* 369 */       if (wsdlLocation != null)
/*     */       {
/* 373 */         WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
/* 374 */         policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
/*     */
/* 377 */         serviceMetaData.setWsdlLocation(wsdlLocation);
/*     */       }
/*     */       else
View Full Code Here

/*     */
/*     */   public WSDLDefinitions convertWSDL2Java(URL wsdlfileurl)
/*     */     throws WSDLException
/*     */   {
/* 118 */     checkTypeMapping();
/* 119 */     WSDLDefinitionsFactory wsdlFactory = WSDLDefinitionsFactory.newInstance();
/* 120 */     this.wsdl = wsdlFactory.parse(wsdlfileurl);
/*     */
/* 122 */     return this.wsdl;
/*     */   }
View Full Code Here

/* 315 */         this.wsdlCacheKey = ("#" + (this.wsdlLocation != null ? this.wsdlLocation : this.wsdlFile));
/*     */       }
/* 317 */       wsdlDefinitions = this.wsMetaData.getWsdlDefinition(this.wsdlCacheKey);
/* 318 */       if (wsdlDefinitions == null)
/*     */       {
/* 320 */         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
/* 321 */         wsdlDefinitions = factory.parse(wsdlURL);
/* 322 */         this.wsMetaData.addWsdlDefinition(this.wsdlCacheKey, wsdlDefinitions);
/*     */       }
/*     */     }
/* 325 */     return wsdlDefinitions;
/*     */   }
View Full Code Here

   {
      PolicyMetaDataBuilder policyBuilder = PolicyMetaDataBuilder.getServerSidePolicyMetaDataBuilder(toolMode);
      try
      {
         WSDLGenerator generator = new JAXBWSDLGenerator(jaxbCtx);
         WSDLDefinitionsFactory factory = WSDLDefinitionsFactory.newInstance();
         if (wsdlLocation != null)
         {
            //we can no longer use the user provided wsdl without parsing it right now, since we
            //need to look for policies and eventually choose the supported policy alternatives
            WSDLDefinitions wsdlDefinitions = factory.parse(wsdlLocation);
            policyBuilder.processPolicyExtensions(epMetaData, wsdlDefinitions);
            //now we have the UMDM containing policy data; anyway we can't write a new wsdl file with
            //the supported alternatives and so on, since we need to publish the file the user provided
            serviceMetaData.setWsdlLocation(wsdlLocation);
         }
View Full Code Here

TOP

Related Classes of org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory

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.