Hi devs, 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.
further more given a woden Element how can I convert it to a DOM element. any utility methods available in WODEN ? Thanks in advance, Pradeep Fernando. my WSDL: <wsdl2:description xmlns:wsdl2="http://www.w3.org/ns/wsdl" xmlns:tns=" http://service.rampart.tutorial" xmlns:wsoap="http://www.w3.org/ns/wsdl/soap" xmlns:wrpc="http://www.w3.org/ns/wsdl/rpc" xmlns:ns1=" http://org.apache.axis2/xsd" xmlns:wsaw=" http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdlx=" http://www.w3.org/ns/wsdl-extensions" xmlns:ns=" http://service.rampart.tutorial" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:whttp="http://www.w3.org/ns/wsdl/http" targetNamespace=" http://service.rampart.tutorial"> <wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu=" http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameTokenOverHTTPS"> <wsp:ExactlyOne> <wsp:All> <sp:TransportBinding xmlns:sp=" http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:TransportToken> <wsp:Policy> <sp:HttpsToken RequireClientCertificate="false"/> </wsp:Policy> </sp:TransportToken> <sp:AlgorithmSuite> <wsp:Policy> <sp:Basic256/> </wsp:Policy> </sp:AlgorithmSuite> <sp:Layout> <wsp:Policy> <sp:Lax/> </wsp:Policy> </sp:Layout> <sp:IncludeTimestamp/> </wsp:Policy> </sp:TransportBinding> <sp:SignedSupportingTokens xmlns:sp=" http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> <wsp:Policy> <sp:UsernameToken sp:IncludeToken=" http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient "/> </wsp:Policy> </sp:SignedSupportingTokens> </wsp:All> </wsp:ExactlyOne> </wsp:Policy> <wsdl2:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace=" http://service.rampart.tutorial"> <xs:element name="add"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="a" type="xs:int"/> <xs:element minOccurs="0" name="b" type="xs:int"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="addResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:int"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl2:types> <wsdl2:interface name="ServiceInterface"> <wsp:PolicyReference xmlns:wsp=" http://schemas.xmlsoap.org/ws/2004/09/policy" URI="#UsernameTokenOverHTTPS"/> <wsdl2:operation name="add" style=" http://www.w3.org/ns/wsdl/style/rpc" wrpc:signature="a #in b #in return #return " pattern="http://www.w3.org/ns/wsdl/in-out"> <wsdl2:input element="ns:add" wsaw:Action="urn:add"/> <wsdl2:output element="ns:addResponse" wsaw:Action="urn:addResponse"/> </wsdl2:operation> </wsdl2:interface> <wsdl2:binding name="SampleServiceSoap11Binding" interface="tns:ServiceInterface" type="http://www.w3.org/ns/wsdl/soap" wsoap:version="1.1"> <wsdl2:operation ref="tns:add" wsoap:action="urn:add"/> </wsdl2:binding> <wsdl2:binding name="SampleServiceSoap12Binding" interface="tns:ServiceInterface" type="http://www.w3.org/ns/wsdl/soap" wsoap:version="1.2"> <wsdl2:operation ref="tns:add" wsoap:action="urn:add"/> </wsdl2:binding> <wsdl2:binding name="SampleServiceHttpBinding" interface="tns:ServiceInterface" whttp:methodDefault="POST" type=" http://www.w3.org/ns/wsdl/http"> <wsdl2:operation ref="tns:add" whttp:location="add"/> </wsdl2:binding> <wsdl2:service name="SampleService" interface="tns:ServiceInterface"> <wsdl2:endpoint name="SampleServiceHttpSoap12Endpoint" binding="tns:SampleServiceSoap12Binding" address=" http://10.100.1.93:8080/axis2/services/SampleService.SampleServiceHttpSoap12Endpoint/ "/> <wsdl2:endpoint name="SampleServiceHttpSoap11Endpoint" binding="tns:SampleServiceSoap11Binding" address=" http://10.100.1.93:8080/axis2/services/SampleService.SampleServiceHttpSoap11Endpoint/ "/> <wsdl2:endpoint name="SampleServiceHttpEndpoint" binding="tns:SampleServiceHttpBinding" address=" http://10.100.1.93:8080/axis2/services/SampleService.SampleServiceHttpEndpoint/ "/> </wsdl2:service> </wsdl2:description>
