JoeyJAL / wsdl2objc

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

Error generating code from WCF WSDL #61

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate code from the WCF WSDL (noted below)
2. Add code to iPhone project
3. Compile

What is the expected output?
Successful compilation.

What do you see instead?
Errors in generated code due to templates not being filled, such as:
@property (%«part.element.type.assignOrRetain» *** ERROR: undefined key 
*** ) %«part.element.type.classNameWithPtr» *** ERROR: undefined key ***  
parameters;
- (id)initWithBinding:(BasicHttpBinding_TrackService *)aBinding 
delegate:(id<BasicHttpBinding_TrackServiceResponseDelegate>)aDelegate
    parameters:(%«part.element.type.classNameWithPtr» *** ERROR: 
undefined key *** )aParameters;

and errors in types:
- (BasicHttpBinding_TrackServiceResponse 
*)GetSessionVariableUsingParameters:((null))aParameters ;

What version of the product are you using? On what operating system?
WSDL2OBJC -r151 from svn
Mac OS X Snow Leopard 10.6.2
Xcode 3.2.1 - 64-bit
Component versions
Xcode IDE: 1613.0
Xcode Core: 1614.0
ToolSupport: 1591.0

Please provide any additional information below.

WCF WSDL:
http://200.61.174.171/SeamTrackServices/SeamTrack.Service.TrackServic
e.svc?wsdl

Original issue reported on code.google.com by nicolas....@gmail.com on 26 Nov 2009 at 6:26

GoogleCodeExporter commented 8 years ago
Hi all,

I have same issue. during compile it gives error 
%«part.element.type.assignOrRetain» *** ERROR: undefined key *** 

Original comment by dbkant...@gmail.com on 18 May 2011 at 6:53

GoogleCodeExporter commented 8 years ago
The steps that I had to go through was to use Microsoft's version of the 
parsing of the wsdl file from VS to down load the xsd file.  I had used several 
others and even though they were the same name they didn't work.  At that point 
I altered, hard code the wsdl2obc source to pickup that xsd file since the 
application or the wsdl file didn't reference it. This got rid of the 
unresolved references It worked great.

Original comment by cbellis...@gmail.com on 19 May 2011 at 1:08

GoogleCodeExporter commented 8 years ago
can you send me this hard code updated wsdl2obc source.

Original comment by dbkant...@gmail.com on 19 May 2011 at 10:04

GoogleCodeExporter commented 8 years ago
The file is USParser.m and these are the lines that I had to change.  The 
problem is the scheme file wasn't part of xml from the wsdl file so I hard 
coded the reference.  It needed to be here to resolve attribute types for each 
element.

USParser.m

- (void)processImportElement:(NSXMLElement *)el wsdl:(USWSDL *)wsdl
{
    //NSString *schemaLocation = [[el attributeForName:@"schemaLocation"] stringValue];
    NSString *schemaLocation = @"schemeFilename.xsd";

    if (schemaLocation != nil) 
    {
......

This should get you close.

Original comment by cbellis...@gmail.com on 19 May 2011 at 11:46