Is it possible to control the "name" of a WCF return element? For example, I have a WCF method PerformAction which returns an ActionResponse. The ActionResponse type looks like this in the WSDL:
<xs:element name="ActionResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="PerformActionResult" nillable="true" type="q10:ActionResponse" xmlns:q10="http://www.mywcfnamespace.com/2010/06/DataContracts" />
</xs:sequence>
</xs:complexType>
</xs:element>
Is it possible to modify the name="PerformActionResult"
name that gets applied to this element? I would like it to read name="ActionResponse"
.