RWMostert / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Fail when element names are equals to tipenames #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. .NET web service with method: GetFriendResponse GetFriend()
2. you see wsdl like:
<s:element name="GetFriendResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="GetFriendResult" 
type="tns:GetFriendResponse"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="GetFriendResponse">
<s:complexContent mixed="false">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FirstName" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="LastName" type="s:string"/>
</s:sequence>
</s:complexContent>
</s:complexType>

What is the expected output?
@interface GetFriendResult: NSObject
{
    NSString *firstName;
    NSString *lastName;
}
@end
@interface GetFriendResponse: NSObject
{
  GetFriendResult *getFriendResult;
}
@end
What do you see instead?
@interface GetFriendResponse: NSObject
{
  GetFriendResponse* getFriendResult;
}
@end

What version of the product are you using? On what operating system?
0.6
Mac OS 10.6.7

Original issue reported on code.google.com by Su.chAn....@gmail.com on 24 Aug 2011 at 11:20