Hi Pradeep,

> I want to retrieve extensibility elements from my WSDL. specifically
> speaking I want to retrieve the "policy " element from the WSDL given
> below. I want to retrieve the type & the id of the given extensibility

> Element. I refer the user guide, but couldn't work it out.
> please help me to get over this.

In Woden's Element API each  Element implements AttributeExtensible
and ElementExtensible interfaces , so you could use any of the
methods define  on above two interfaces.

As a example to lists all  extensible Elements under a Description
Element  you could use

                        Description descComp=...
                        DescriptionElement descElem = descComp.toElement();     
                
                        ExtensionElement[] 
extEls=descElem.getExtensionElements();
                        for(int i=0;i<extEls.length;i++){
                                System.out.println(" Extension Type :"+ 
extEls[i].getExtensionType());
                        }

Also please refer [1] and [2]  to see how you can work with Extensions.



> further more given a woden Element how can I convert it to a DOM element.
> any utility methods available in WODEN ?

Woden use XMLElement to represent  both DOM and OMElemtnts , some of
the Woden components use XMLElement  to keep their Contents such as
DocumentationElement but not all .   AFAIK  generally there is no
utility to do this conversion.


[1] - http://wiki.apache.org/ws/FrontPage/Woden/WSDLExtensions
[2] - http://wiki.apache.org/ws/FrontPage/Woden/WSDLExtensionChanges


Thanks ,


-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to