XML : how to acces element attributes using SoapUI api (with java)

This is an xml example from a wsdl :

   <s:complexType name="Relation">     <s:sequence>        <s:element minOccurs="0" maxOccurs="1" name="RelationName" type="s:string"/>        <s:element minOccurs="0" maxOccurs="1" name="InternetAddress" type="s:string"/>        <s:element minOccurs="0" maxOccurs="1" name="E_mail" type="s:string"/>        <s:element minOccurs="1" maxOccurs="1" name="Obsolete" type="s:boolean"/>     </s:sequence>  </s:complexType>    

The listing above is an operation's input of a webservice. I need to print its attribute like : Element

  • name
  • type
  • minOccur
  • maxOccur
  • or any other attributes

Is there any way to get Element attributes from wsdl description using soapUI api (I am working with 4.0.1 version) and java ??

we can get that using element.getAttributes() with dom or jdom api but I must do it with SoapUI api

No comments:

Post a Comment