Hi List,
I need to retrieve the value of some attribute defined in an xsd:element from
the XML Schema section of a WSDL 2.0 file. I used the
elementDeclaration.getContent() method but now I'm stuck with a
XmlSchemaElement instance that I don't know how to use. I've read the API for
XmlSchemaElement from ws-commons but that didn't give me any usefull
information.
So my question is: How to obtain the value of a named attribute (with is QName
for example) from a XmlSchemaElement instance ?
For example, in the following schema I would like to obtain the value of the
"sawsdl:modelReference" attribute from the "OrderRequest" XmlSchemaElement
instance.
<wsdl:types>
<xs:schema targetNamespace="http://example.org/order#"
elementFormDefault="qualified">
<xs:element name="OrderRequest"
sawsdl:modelReference="http://www.w3.org/2002/ws/sawsdl/spec/ontology/purchaseorder#OrderRequest"
sawsdl:liftingSchemaMapping="http://www.w3.org/2002/ws/sawsdl/spec/mapping/Request2Ont.xslt">
<xs:complexType>
Feel free to point me to other locations if it's not the right place to ask for
help on the subject.
Thanks !
--
Pierre Chatel
THALES COMMUNICATIONS FRANCE
SC2 - Software Core for Computer-based systems
1-5, Avenue Carnot / BC4
91883 Massy CEDEX
Tel 01 69 75 30 57
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]