Hi Saminda,

Did you check the handlers in Registry Extensions (inside the Registry
Component)? I believe that most of these concerns have been addressed in
that.

Thanks,
Senaka.

On Fri, Apr 1, 2011 at 5:16 PM, Saminda Wijeratne <[email protected]> wrote:

> 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
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2, Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://www.linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to