arishanapalli / wsdl2objc

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

enumFromString and stringFromEnum do not handle spaces correctly #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate classes from 
http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl
2. compile
3. enum item names do not escape spaces correctly and create invalid objective 
C 

What is the expected output?
typedef enum {
    typens_formatType_none = 0,
    typens_formatType_24_hourly,
    typens_formatType_12_hourly,
} typens_formatType;

What do you see instead?
typedef enum {
    typens_formatType_none = 0,
    typens_formatType_24 hourly,
    typens_formatType_12 hourly,
} typens_formatType;

What version of the product are you using? On what operating system?
URL: http://wsdl2objc.googlecode.com/svn/trunk
Repository Root: http://wsdl2objc.googlecode.com/svn
Repository UUID: 639f78d5-f54e-0410-a9bb-231162db69cc
Revision: 159

Please provide any additional information below.
I think its pretty self explanatory.  Need to have an escape routine for 
strings that get converted 
to code

Original issue reported on code.google.com by rustyza...@gmail.com on 30 Apr 2010 at 1:23

GoogleCodeExporter commented 9 years ago
Fixed in r163

Original comment by hasse...@gmail.com on 3 May 2010 at 12:05

GoogleCodeExporter commented 9 years ago
will report new defect as this fix created a different issue (but close to 
working)

Original comment by rustyza...@gmail.com on 4 May 2010 at 1:17

GoogleCodeExporter commented 9 years ago
This issue didn't fixed.i got same problem today....i just replaced 
"typens_formatType_24 hourly"  by  "typens_formatType_24_hourly"

Original comment by sijo...@gmail.com on 21 Jun 2010 at 9:00