XML Attributes and WSDL

dmcreynolds's picture

Kind of an odd question, but I'm playing around with Data Services. The result element allows one to define attributes as well as elements. In the case below, I defined both:



<result rowName="Foo" element="FooRow" defaultNamespace="http://foo/bar">


  <element column="x" name="x" xsdType="STRING"/>


  <attribute column="bar" name="bar" xsdType="STRING"/>


</result>




The WSDL that Data Services generates omits the attribute:



<xs:complexType name="Foo">


  <xs:sequence>


    <xs:element minOccurs="0" name="x" nillable="true" type="xs:string"/>


  </xs:sequence>


</xs:complexType>



Is there any way to get the attribute to be generated in the WSDL? Obviously, the workaround is to only use elements, but I'm kind of curious.

kalpanie's picture

Hi dmcreynolds, Thanks for

Hi dmcreynolds, Thanks for trying Data Services.The bug you have mentioned( https://wso2.org/jira/browse/DS-487 ) will be fixed in our next release. Kalpanie.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)