Umaid1 / wsdl2objc

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

Duplicate Properties and Line Encodings #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Point to WSDL: 
https://technet.rapaport.com/webservices/prices/rapaportprices.asmx?wsdl
2. Generate Code

What is the expected output?

The generated code duplicates the declaration of 
RapaportPrices_AuthenticationTicketHeader in multiple places.  I haven't 
determined why based on the WSDL.

@interface RapaportPricesSoap_GetPriceChangesTest : RapaportPricesSoapOperation 
{
    RapaportPrices_GetPriceChangesTest * parameters;
    RapaportPrices_AuthenticationTicketHeader * AuthenticationTicketHeader;
    RapaportPrices_AuthenticationTicketHeader * AuthenticationTicketHeader;
}
@property (retain) RapaportPrices_GetPriceChangesTest * parameters;
@property (retain) RapaportPrices_AuthenticationTicketHeader * 
AuthenticationTicketHeader;
@property (retain) RapaportPrices_AuthenticationTicketHeader * 
AuthenticationTicketHeader;
- (id)initWithBinding:(RapaportPricesSoap *)aBinding 
delegate:(id<RapaportPricesSoapResponseDelegate>)aDelegate
    parameters:(RapaportPrices_GetPriceChangesTest *)aParameters
    AuthenticationTicketHeader:(RapaportPrices_AuthenticationTicketHeader *)aAuthenticationTicketHeader
    AuthenticationTicketHeader:(RapaportPrices_AuthenticationTicketHeader *)aAuthenticationTicketHeader
;
@end

The app refuses to compile do to this and also Xcode 4 preview 5 (running Lion 
but also tested on Snow Leopard with Xcode 4) gives the following error that 
appear to be do to injected line encodings:

@property (%«element.type.assignOrRetain» *** ERROR: undefined key *** ) 
%«element.type.classNameWithPtr» *** ERROR: undefined key ***  
%«element.name» *** ERROR: undefined key *** ;

This appears to be an error resulting from the code generation.

What version of the product are you using? On what operating system?

I've tried both the current release and the 0.7 pre-release.  I've tested on 
Mac OS X Lion Preview 3 and the most recent build of Snow Lepoard.  I'm 
compiling to the iOs 4.3

Original issue reported on code.google.com by ja...@smartameba.com on 19 May 2011 at 4:38

GoogleCodeExporter commented 8 years ago
Looks like it's due to a duplicate binding type for soap12

Original comment by badana...@gmail.com on 3 Nov 2011 at 11:27