I'm going ahead with the current solutions I have. I'm blocked on #5. So wont be able to provide the feature for creating a GAR starting from a schema.
Also added the missed schema includes in wsdl as well. Saminda On Thu, Mar 31, 2011 at 10:31 AM, Saminda Wijeratne <[email protected]>wrote: > I'm in the process of implementing $subject and I hit a few bumps on the > way. Need a little help in solving them. > > When creating a GAR we package WSDL or a Schema and their imports (which > can be wsdls, schemas and/or policies). > > I'm using WSDLFactory.newInstance().newWSDLReader().readWSDL which parseses > the WSDL and gives me the model object. > > 1. Retreving the schemas imported in the wsdl model seems pretty > indirect. > *(*wsdlDefinition.getTypes().getExtensibilityElements().get(i).getImports.get(j) > ???*). *Is there a better way? > 2. Even if I use the above method to get the SchemaImport objects, > later on when I change their location uri (the relative path for that > schemas - since i'll be saving the schema file in a relative location > inside > the archive) and serialize the wsdlDefinition object the location uri is > still the original value. (But WSDL imports location uri changes are > serialized correctly) > 3. Same goes for modifying schemaImports in Schema objects as well. It > may be the case where my method of serializing the Schema objects > (javax.wsdl.extensions.schema.Schema) is incorrect. (I get the Element from > of the Schema object, convert in to an OMElement and serialize) > 4. To retrieve policies references of a wsdl I > use > wsdlDefinition.getBindings().values(i).getExtensibilityElements().get(j) > (there are checks to see if the element retrieved has the localname as > "PolicyReference"). Is there a better method to do this & is this the only > location where policy references will be defined? > 5. When creating a GAR starting from a schema I could not find a way to > read schema files to a model object. How to do this? > > > Thanks in advance, > Saminda >
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
