bulldog2011/mwsc

[-pico] Element begins with init*

Closed this issue · 0 comments

The webservice I'm targeting is getting one element begins with init* :

<s:element name="XXX">
    <s:complexType>
        <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="initCode" type="s:string"/>
        </s:sequence>
    </s:complexType>
</s:element>

mwsc does his work and generates the related property like this :
@property (nonatomic, retain) NSString *initCode;

The problem is that the objective-c convention reserves "init*" methods for instance initialization.
xCode returns the following error : Init methods must return a type related to the receiver type on this property.
Is there a work around or do I have to modify the generated code ?