arishanapalli / wsdl2objc

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

Compile errors when using the generated .h/.m files: expected specifier-qualifier-list before 'IDREF' #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate .h/.m files using the tool
2. Follow the import instructions
3. Import the files into an Xcode project
4. Compile
5. Build errors

What is the expected output?
A successful compilaton

What do you see instead?
The build results console is full of compile errors like
"/Users/nameghino/src/iWCFTest/tns3.h:56:0
/Users/nameghino/src/iWCFTest/tns3.h:56: error: expected
specifier-qualifier-list before 'IDREF'"
Usual suspects: missing typedef or library

What version of the product are you using? On what operating system?
- wsdl2objc -r141 compiled from svn source
- Snow Leopard 10.6.1
- Xcode 3.2 64 bits (Component versions: Xcode IDE: 1610.0, Xcode Core:
1608.0, ToolSupport: 1591.0)
- iPhone SDK 3.0

Please provide any additional information below.

I tried both downloading the .app file and compiling from svn source, but
both created the same code.

I'm using the tool to generate code for a WCF service.
Can't provide the wsdl due to enterprise policy issues, but will try to get
it for you.

The documents say that there should be a pair of .h/.m files for each
namespace, but I also find a lot of extra .h/.m files:

IPhoneService.h
IPhoneService.m
NSDate+ISO8601Parsing.h
NSDate+ISO8601Parsing.m
NSDate+ISO8601Unparsing.h
NSDate+ISO8601Unparsing.m
USAdditions.h
USAdditions.m
USGlobals.h
USGlobals.m
ns1.h
ns1.m
tns1.h
tns1.m
tns2.h
tns2.m
tns3.h
tns3.m
tns4.h
tns4.m
xs.h
xs.m

Original issue reported on code.google.com by nicolas....@gmail.com on 28 Sep 2009 at 6:52

GoogleCodeExporter commented 9 years ago
It's worth noting that I'm using the generated files for an iPhone project

Original comment by nicolas....@gmail.com on 28 Sep 2009 at 6:57

GoogleCodeExporter commented 9 years ago
Those extra files are fine, they're for each namespace.
Can you post a file where one of these errors occurs?
For example: /Users/nameghino/src/iWCFTest/tns3.h:56: error: expected 
specifier-qualifier-list before 'IDREF'"

Original comment by hasse...@gmail.com on 28 Sep 2009 at 8:53

GoogleCodeExporter commented 9 years ago
Here are the .h/.m files for tns3

Original comment by nicolas....@gmail.com on 29 Sep 2009 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
Ok try revision 142. I added support for IDREF.

Original comment by hasse...@gmail.com on 29 Sep 2009 at 4:19

GoogleCodeExporter commented 9 years ago
Project now compiles successfully, thanks for the quick work!

Original comment by nicolas....@gmail.com on 29 Sep 2009 at 4:29

GoogleCodeExporter commented 9 years ago

Original comment by hasse...@gmail.com on 29 Sep 2009 at 5:03