Coder Social home page Coder Social logo

wsdl2objc's People

Contributors

ericberman avatar

wsdl2objc's Issues

Always sends elements for int, long, double, BOOL types

What steps will reproduce the problem?
1. Submit a SOAP request using a complex type that has an int, long,
double, or BOOL property without explicitly setting the property

What is the expected output?
Only explicitly set properties will be included in the request

What do you see instead?
The property(ies) that wasn't/weren't explicitly set will still be included
with a 0 or false value


Original issue reported on code.google.com by [email protected] on 11 Sep 2008 at 10:37

Memory leaks in WSDL2Objc v0.5 iPhone

What steps will reproduce the problem?
1. running simple and very similar code as the example code in the wiki
2.
3.

--------------------------------
What is the expected output?
Getting soap response without memory leaks

------------------------------
What do you see instead?

Soap response is recieved successfully but with
memory leaks resulted by generated code.

I used Leaks and found that there are 
Memory leaks that seems to be caused by generated code.

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

iPhone OS 3.0 SDK , libxml2.2, WSDL2objc v0.5 iPhone

Please provide any additional information below.

my email is [email protected] 

mail me if you have any question regarding this issue


Original issue reported on code.google.com by [email protected] on 24 Aug 2009 at 7:44

Soap and Soap 1.2 operation parameter generation fails.


What steps will reproduce the problem?

   1. Point at this URL: http://ws.cdyne.com/WeatherWS/Weather.asmx?WSDL
   2. Generate the code.
   3. Soap 1.x and Soap 1.2 operation parameter generation fails...

What is the expected output?

    Prolly should be the not present or have the input param

What do you see instead?

Something like this for Soap and Soap 1.2 operations. Http Get/Set look fine 
thus far....

@interface WeatherSoap12_GetWeatherInformation : NSOperation {
    WeatherSoap12 *binding;
    WeatherSoap12Response *response;

    %«part.element.type.classNameWithPtr» *** ERROR: undefined key ***  parameters;
}
@property (retain) WeatherSoap12 *binding;
@property (readonly) WeatherSoap12Response *response;
@property (retain) %«part.element.type.classNameWithPtr» *** ERROR: undefined 
key ***  parameters;
- (id)initWithBinding:(WeatherSoap12 *)aBinding
    parameters:(%«part.element.type.classNameWithPtr» *** ERROR: undefined key *** )aParameters
;
@end


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

    Mac OS X 10.5.5, Xcode 3.1.1, iPhone SDK 2.1

Please provide any additional information below.

    Just found this codebase and it aligns well with some features I need for some projects. I started playing with the 0.3 release but using 
MGTemplateEngine (because of commerical friendly license) and an expansion of 
the GDataXMLNode classes from the GData ObjC APIs, which I 
prefer over TouchXML at this point. I build the the XML elements for envelopes 
and body content on the fly in my current SOAP serialization code.  
I have .NET 3.5 WCF based services (and WSSE eventually) to work with and it 
annoys me that the WinMobile dude can do stuff quickly while I need 
to read WSDLs and XSDs and an ever expanding namespace and type flow control in 
my current Soap encoding code. ;)

  I develop native  apps for iPhone and have been doing Cocoa/CF/OS X development full time for the past 5 years. I'd be happy to help with 
iPhone SDK support and/or alternate template engine support. Let me know and 
great work so far...


Original issue reported on code.google.com by davidmorford on 23 Oct 2008 at 11:13

don't understand what do with obtained code

Sorry for my English...

1. get last (v133) source of wsdl2objc from svn.
2. compile it.
3. run. As wsdl-file set url from my local server (there is webservice on 
C#, code in archive). Set output dir. Press "parse WSDL".
4. has endless cycle. Log:

2009-09-16 17:28:12.409 WSDL2ObjC[770:5e0b] Processing definitions import 
at location: http://192.168.1.19:8731/Design_Time_Addresses/
FoodAddsDBService/FoodAddsDBService/?wsdl=wsdl0
2009-09-16 17:28:12.573 WSDL2ObjC[770:5e0b] Processing definitions import 
at location: http://192.168.1.19:8731/Design_Time_Addresses/
FoodAddsDBService/FoodAddsDBService/?wsdl
2009-09-16 17:28:12.580 WSDL2ObjC[770:5e0b] Processing definitions import 
at location: http://192.168.1.19:8731/Design_Time_Addresses/
FoodAddsDBService/FoodAddsDBService/?wsdl=wsdl0
2009-09-16 17:28:12.586 WSDL2ObjC[770:5e0b] Processing definitions import 
at location: http://192.168.1.19:8731/Design_Time_Addresses/
FoodAddsDBService/FoodAddsDBService/?wsdl
2009-09-16 17:28:12.594 WSDL2ObjC[770:5e0b] Processing definitions import 
at location: http://192.168.1.19:8731/Design_Time_Addresses/
FoodAddsDBService/FoodAddsDBService/?wsdl=wsdl0


5. Download wsdl-file, commented out line 

<wsdl:import namespace="http://tempuri.org/"....

6. run wsdl2objc. As wsdl-file set that local file. Set output dir. Press 
"parse WSDL".

7. Got some code, but don't can use it, because, for example, can't found 
method like "GetFoodAdditivesUsingParameters" in class 
WSHttpBinding_IFoodAddsDBService.


C#-client work perfect. Maybe errors in wsdl-file. Can't penetrate %)

oldest version of wsdl2objc (with oldest wsdl-file) give me code, which I 
try use as:

        WSHttpBinding_IFoodAddsDBService *binding = 
[FoodAddsDBService WSHttpBinding_IFoodAddsDBService];
        binding.logXMLInOut = YES;

        FoodAddsDBService_GetFoodAdditives *parameters = 
[[FoodAddsDBService_GetFoodAdditives new] autorelease];
        parameters.language = [NSString stringWithFormat:@"%d",
[settings getDBLanguageID]];
        parameters.query    = queryOfUser;

        WSHttpBinding_IFoodAddsDBServiceResponse *response = 
[binding GetFoodAdditivesUsingParameters:parameters];

        NSArray *responseHeaders = response.headers;
        NSArray *responseBodyParts = response.bodyParts;

But response.headers's  and response.bodyParts's  counts are 0 in result.

Now we change C#-server  and have new wsdl (which I send to you)  and have 
new code from parser-writer. And new problems.

Original issue reported on code.google.com by [email protected] on 16 Sep 2009 at 3:14

Attachments:

Incorrect handling of xsd_decimal

What steps will reproduce the problem?
1. Define property of type "Decimal" on C# Object
2. The above object should be returned in any web method
3. Generate the code

What is the expected output?
decimal is not a class reference, its a value type, so release,
autorelease, alloc etc can not be applied to decimal

What do you see instead?
decimal should be handled as value type... and not should be compared to
nil, and should not be marked as release etc.

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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 28 Mar 2009 at 12:27

Memory Leak

The generated ServiceResponse objects leak ... a dealloc implementation is
required in Binding_M.template for the %«className»Response class:

-(void)dealloc {
    [super dealloc];
    self.headers = nil;
    self.bodyParts = nil;
    self.error = nil;   
}


Original issue reported on code.google.com by [email protected] on 5 Sep 2009 at 9:19

Object name collisions when using multiple generated proxies in a project.

What steps will reproduce the problem?
1. Generate proxy code from two separate web services into two separate
directories.
2. Import both sets of code files into xcode
3. Attempt to compile

There are multiple issues including the file names of the generated classes
all start with tns as well as the USGlobals class will have its namespaces
overridden by the second service to be used.

The solution seems to allow the user to specify a user generated value as a
prefix for the namespace prefixes.  This can be a simple text box in the
user interface that is used instead of the hardcoded value @"tns" in
USParser.h (processDefinitionsElement and processImportElement) 

For the files that are static, it is acceptable to just not include them. 
The problem with USGlobals.h appears that it will be handled correctly if
the prefixes are able to be specified by the user.  

If a fix can not be done in the next couple of days, let me know and I will
work on submitting a patch.

Thank you for this generator!


Original issue reported on code.google.com by tony%[email protected] on 15 Oct 2009 at 11:47

Generated code without elements and attributes.

What steps will reproduce the problem?
1. Generate code from: https://www.smoneybox.com/service/service.wsdl
2. The code is without attributes and elements in sMoneyboxServiceSvc.h\.m

What is the expected output?
I expected list of attributes and elements generated from wsdl file.
e.x. 
In type ServiceUser from this wsdl there are two attributes:
default_account_id and currency_symbol

What do you see instead?
empty definition only comment:
@interface sMoneyboxServiceSvc_ServiceUser : NSObject {

/* elements */
/* attributes */
}

What version of the product are you using? On what operating system?
0.6 on MAC 10.5.8

Please provide any additional information below.
wsdl from https://www.smoneybox.com/service/service.wsdl and
Generated .h file is attached

Original issue reported on code.google.com by [email protected] on 2 Oct 2009 at 1:05

Attachments:

Empty namespaces that aren't written are still included in imports

What steps will reproduce the problem?
1. Parse a WSDL file with an empty namespace that is imported
2. Compile the generated code

What is the expected output?
Compiles without errors or warnings

What do you see instead?
Compiler error about the missing file (wsdl.h, others)

Original issue reported on code.google.com by [email protected] on 11 Sep 2008 at 8:23

SOAP 1.2 require the SOAP Action to be included in Content-Type header

What steps will reproduce the problem?
1. Build a WebService using Asp.Net 3.5
2. Call the WebService from the iPhone

What is the expected output?
"Hello World"

What do you see instead?
"Unable to handle request without a valid action parameter. Please supply a 
valid soap action"

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

Please provide any additional information below.
Adding action=http://tempuri.org/HelloWorld solved the problem.

Original issue reported on code.google.com by [email protected] on 12 Oct 2009 at 2:03

program crashes

I downloaded version 0.5 (on 12 March 2009). I tryed to use it pointing to 
these wsdl (two of the 
web services of www.xmethods.net):
http://www.aswinanand.com/sendsms.php?wsdl
http://www50.brinkster.com/vbfacileinpt/np.asmx?wsdl
but when launched, the program crashes.
Therefore, I downloaded the project code and executed it in debug mode and I 
saw the code 
enters into an infinite recursive loop in the method:
- (void)appendType:(USType *)type toHString:(NSMutableString *)hString 
mString:(NSMutableString 
*)mString

(that is, this method calls recursively itself an infinite number of times, and 
therefore crashes)



Original issue reported on code.google.com by [email protected] on 12 Mar 2009 at 10:27

The console log contains several POTENTIAL ERRORs for the Infinity WSDL

When running the program against the Infinity wsdl, the program detects
several potential problems: 

POTENTIAL ERROR -- Schema http://microsoft.com/wsdl/mime/textMatching/ does
not contain any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/wsdl/mime/ does not
contain any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/wsdl/ does not contain
any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/soap/encoding/ does
not contain any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/wsdl/soap12/ does not
contain any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/wsdl/http/ does not
contain any types!
POTENTIAL ERROR -- Schema http://schemas.xmlsoap.org/wsdl/soap/ does not
contain any types!

These should be examined to see what's going on and if this is okay.
They're all built-in so it's probably fine; it might be worthwhile to add
the necessary types to USParser's -(NSArray*)builtInSchemas.

Original issue reported on code.google.com by [email protected] on 14 Jun 2008 at 3:42

attributes with '-' in the names generate incorrect Objective-C code

What steps will reproduce the problem?
1. Create a WSDL and use '-' in naming things, i.e. temp-status
2. generate Obj-C using Wsdl2Objc 0.6
3. Add to project in XCode and attempt to compile

What is the expected output?
No compilation errors.

What do you see instead?
Lots of errors due to the '-' causing Obj-C to interpret the name as the 
expression temp - 
status, instead of the single name temp-status.

What version of the product are you using? On what operating system?
Wsdl2Objc 0.6, on Mac OS X Version 10.5.8

Please provide any additional information below.
As a workaround, I can manually replace any variable occurances of temp-status 
with 
temp_status and have it work (being careful not to change quoted strings like 
"temp-status".

Original issue reported on code.google.com by [email protected] on 20 Oct 2009 at 5:45

App Crash on run due to an uncaught exception

What steps will reproduce the problem?
1. Download a fresh r112 copy of the app.
2. Run it.
3. Crash.

I managed to fix it for my system with this ugly fix:
1. Downloaded source code via svn and imported into xcode.
2. Edited USParserApplication.m @Line: 94 outURL methode
    from:        return [NSURL URLWithString:pathString];

   to:          if (pathString!=nil)
            return [NSURL URLWithString:pathString];
        else return nil;

Gretz,
Dobo

Original issue reported on code.google.com by [email protected] on 15 Sep 2009 at 12:15

There seems to be no way to interact with this project

Hey rock stars!  :-D

Good stuff.  I'm able to parse one of my WSDLs that are generated from
Apache CXF.  It's a pretty simple one with a single message that takes a
complex type, but it works.  

Since I was about to start on something like this, I'd be interested in
helping if I could.  To do that without being a nuisance, there should be
some more entries in the wiki about what the architectural plans for the
project are.  It appears to me that your parser is building an AST for the
types, that makes using a Visitor pattern the perfect renderer.  

I'm currently more of a Java guy, but this is the kind of project that
would be a great way to get some skill in O-C.  

Anyway, short of creating an issue, there seems to be no way of getting
messages to the two of you guys.  Is there a way to turn on a discussion board?

Brian

Original issue reported on code.google.com by [email protected] on 15 Jun 2008 at 4:49

Generated code causes "Unable to handle request without a valid action parameter. Please supply a valid soap action." error when calling WS

What steps will reproduce the problem?
1. Create WS on .Net 3.5
2. Use wsdl2objc to generate code for the WS
3. Call the WS from an iPhone project using SOAP 1.2

What is the expected output?
"Hello, world"

What do you see instead?
<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><soap:Code><
soap:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text
xml:lang="en">System.Web.Services.Protocols.SoapException: Unable to handle
request without a valid action parameter. Please supply a valid soap action.
   at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
   at
System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage
message)
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type,
HttpContext context, HttpRequest request, HttpResponse response)
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response,
Boolean&amp; abortProcessing)</soap:Text></soap:Reason><soap:Detail
/></soap:Fault></soap:Body></soap:Envelope>


What version of the product are you using? On what operating system?
Snow Leopard 10.6.1
Xcode 3.2.1 64-bit (Component versions: Xcode IDE: 1613.0 - Xcode Core:
1614.0 - ToolSupport: 1591.0)
Latest iPhone SDK as of October 15th, 2009
wsdl2objc -r145 compiled from svn sources

Please provide any additional information below.
This was mentioned in the UsageInstructions comments, the server expects a
given request type and the generated code sends another:

Expected request:
POST /ws/Service1.asmx HTTP/1.1
Host: 172.16.200.114
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <HelloWorld xmlns="http://tempuri.org/" />
  </soap12:Body>
</soap12:Envelope>

Generated request:
{
Soapaction = "http://tempuri.org/HelloWorld";
"Content-Length" = 395;
"Content-Type" = "application/soap+xml; charset=utf-8";
Host = "172.16.200.114";
"User-Agent" = wsdl2objc;
}

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:Service1Svc="http://tempuri.org/" xsl:version="1.0">
  <soap:Body>
    <HelloWorld xsi:type="Service1Svc:HelloWorld"/>
  </soap:Body>
</soap:Envelope>

Original issue reported on code.google.com by [email protected] on 15 Oct 2009 at 8:37

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

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 [email protected] on 28 Sep 2009 at 6:52

date note recognized as type, should it be NSDate?

What steps will reproduce the problem?
1.
2.
3.

What is the expected output?

What do you see instead?


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 15 Feb 2009 at 4:26

after adding the generated code to the project, get all kinds of compiler errors

What steps will reproduce the problem?
1. take the WSDL attached and generate code
2. add all the code to an iphone project
3. follow the instructions on the wiki to make sure everything is setup
correctly
4. build said project

What is the expected output?

no compiler errors

What do you see instead?

~200 compiler errors


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

latest from svn on mac osx 10.5


Please provide any additional information below.
WSDL is attached below

Original issue reported on code.google.com by [email protected] on 1 Oct 2009 at 2:04

Attachments:

Code generated for service with no input parameters does not compile

See the attached WSDL file which is for a web service that returns active
tide/weather stations for which NOAA will return data.  (Web site is
http://opendap.co-ops.nos.noaa.gov/axis/)  The web service does not have
any input parameters.

Misgenerated code from "ActiveStationsService.m":

- (ActiveStationsSoapBindingResponse *)getActiveStationsUsing
{
    return [self
performSynchronousOperation:[[(ActiveStationsSoapBinding_getActiveStations*)[Act
iveStationsSoapBinding_getActiveStations
alloc] initWithBinding:self delegate:self
                                                                                            ] autorelease]];
}
- (void)getActiveStationsAsyncUsing
delegate:(id<ActiveStationsSoapBindingResponseDelegate>)responseDelegate
{
    [self performAsynchronousOperation:
[[(ActiveStationsSoapBinding_getActiveStations*)[ActiveStationsSoapBinding_getAc
tiveStations
alloc] initWithBinding:self delegate:responseDelegate
                                                                                             ] autorelease]];
}

Note the second function is missing a parameter after the first keyword.

Original issue reported on code.google.com by [email protected] on 14 Oct 2009 at 2:00

Attachments:

Application crashes

What steps will reproduce the problem?
1. Using wsdl file from http://api.tradera.com/v2/publicservice.asmx?WSDL
(I've loaded it to disc first)
2. Trying to parse, makes the applikation crash, only the xsd files are
generated
3.

The following crash information is generated:

Process:         WSDL2ObjC [463]
Path:            /Applications/WSDL2ObjC.app/Contents/MacOS/WSDL2ObjC
Identifier:      com.lightspeed-tek.WSDL2ObjC
Version:         ??? (0.5)
Code Type:       X86-64 (Native)
Parent Process:  launchd [74]

Date/Time:       2009-01-24 11:12:05.612 +0100
OS Version:      Mac OS X 10.5.5 (9F33)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000113a5df98
Crashed Thread:  3

Application Specific Information:
objc[463]: garbage collection is ON


Original issue reported on code.google.com by [email protected] on 24 Jan 2009 at 10:17

Does not generate Objective-C code

What steps will reproduce the problem?
1. Run the utility against a valid wsdl file. 

Expected: Objective-C classes that allowed for easy calling to the service
described by the wsdl.

Actual: Nothing


Original issue reported on code.google.com by [email protected] on 6 Jun 2008 at 2:15

provide a complete example with a wsdl file and a sample main file

What steps will reproduce the problem?

Please provide a complete example with a wsdl file and a sample main file.
It can save the user so much time to get started. 



What is the expected output?

What do you see instead?


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


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 21 Jan 2009 at 5:06

XMLMutex Leak in serializedFormUsingHeaderElements...

What steps will reproduce the problem?
1.
2.
3.

What is the expected output?
Parses XML without memory leaks.
What do you see instead?
In leaks when running with the device, I get this leak reported with a size of 
48 bytes.

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

Please provide any additional information below.
I'm not very familiar with libxml2 so I can not suggest a fix.   The method is 
listed below and the 
line that reports the leak is marked with --.
This is the method:
- (NSString *)serializedFormUsingHeaderElements:(NSDictionary *)headerElements 
bodyElements:(NSDictionary *)bodyElements
{
    xmlDocPtr doc;

    doc = xmlNewDoc((const xmlChar*)XML_DEFAULT_VERSION);
    if (doc == NULL) {
        NSLog(@"Error creating the xml document tree");
        return @"";
    }

    xmlNodePtr root = xmlNewDocNode(doc, NULL, (const xmlChar*)"Envelope", NULL);
    xmlDocSetRootElement(doc, root);

    xmlNsPtr soapEnvelopeNs = xmlNewNs(root, (const 
xmlChar*)"http://schemas.xmlsoap.org/soap/envelope/", (const xmlChar*)"soap");
    xmlSetNs(root, soapEnvelopeNs);

    xmlNsPtr xslNs = xmlNewNs(root, (const 
xmlChar*)"http://www.w3.org/1999/XSL/Transform", (const xmlChar*)"xsl");
    xmlNewNs(root, (const xmlChar*)"http://www.w3.org/2001/XMLSchema-instance", (const 
xmlChar*)"xsi");

    xmlNewNsProp(root, xslNs, (const xmlChar*)"version", (const xmlChar*)"1.0");

    xmlNewNs(root, (const xmlChar*)"http://www.w3.org/2001/XMLSchema", (const 
xmlChar*)"xsd");
    xmlNewNs(root, (const xmlChar*)"http://www.wso2.org/php", (const 
xmlChar*)"AlertService-1_0");
    xmlNewNs(root, (const xmlChar*)"http://www.wso2.org/php/xsd", (const xmlChar*)"ns3");

    if((headerElements != nil) && ([headerElements count] > 0)) {
        xmlNodePtr headerNode = xmlNewDocNode(doc, soapEnvelopeNs, (const 
xmlChar*)"Header", NULL);
        xmlAddChild(root, headerNode);

        for(NSString *key in [headerElements allKeys]) {
            id header = [headerElements objectForKey:key];
            xmlAddChild(headerNode, [header xmlNodeForDoc:doc elementName:key]);
        }
    }

    if((bodyElements != nil) && ([bodyElements count] > 0)) {
        xmlNodePtr bodyNode = xmlNewDocNode(doc, soapEnvelopeNs, (const 
xmlChar*)"Body", NULL);
        xmlAddChild(root, bodyNode);

        for(NSString *key in [bodyElements allKeys]) {
            id body = [bodyElements objectForKey:key];
            xmlAddChild(bodyNode, [body xmlNodeForDoc:doc elementName:key]);
        }
    }

    xmlChar *buf;
    int size;
--This Line leaks - Malloc 48 Bytes
    xmlDocDumpFormatMemory(doc, &buf, &size, 1);
--

    NSString *serializedForm = [NSString stringWithCString:(const char*)buf 
encoding:NSUTF8StringEncoding];
    xmlFree(buf);

    xmlFreeDoc(doc);    
    return serializedForm;
}


Original issue reported on code.google.com by [email protected] on 9 Oct 2009 at 7:25

Generated code cannot compile for the iPhone (SDK 2.1)

Code generated using this project cannot compile on the iPhone because 
NSCalendarDate is 
deprecated and does not exist in the SDK. 

The SDK docs state: For calendrical calculations, you should use suitable 
combinations of 
NSCalendar, NSDate, and NSDateComponents, as described in Calendars in Dates 
and Times 
Programming Topics for Cocoa.




Original issue reported on code.google.com by [email protected] on 14 Nov 2008 at 2:44

Application Crashes

I ran the application and the 2 textbox's have no labels giving an indication 
what goes where.

I entered a url in the top one, a path to output in the second one, clicked 
parse and nothing 
happens. No error, no feedback.

I was targetting a wsdl url from a simple hello world WCF basicHttpBinding web 
service. 

I quit the application, and tried to rerun it but now it has an unexpected 
error and will never run 
again. It must be trying to load something invalid or something?

SOAP support on iPhone is very very wanted feature. People are talking about it 
all over the place. Is 
this project still supported?

Original issue reported on code.google.com by [email protected] on 29 Dec 2008 at 5:58

Memory management exception

What steps will reproduce the problem?
1. Choose wsdl file and output directory.
2. Click to generate source from a WSDL file.

What is the expected output?
The generated source code.

What do you see instead?
Application crashes upon because of EXC_BAD_ACCESS at line 1784 of 
STSTemplateEngine.m. 
Unfortunately I cannot share the WSDL file that this happens with.

#0  0x9737b688 in objc_msgSend
#1  0x00008c82 in +[NSString(STSTemplateEngine) valueForDictionary:key:] at 
STSTemplateEngine.m:1784
#2  0x00004b72 in -[NSString(STSTemplateEnginePrivateCategory2) 
stringByExpandingPlaceholdersWithStartTag:andEndTag:usingDictionary:errorsReturn
ed:lineNum
ber:] at STSTemplateEngine.m:315
#3  0x00007e83 in +[NSString(STSTemplateEngine) 
stringByExpandingTemplate:withStartTag:andEndTag:usingDictionary:errorsReturned:
] at 
STSTemplateEngine.m:1501
#4  0x00007c80 in +[NSString(STSTemplateEngine) 
stringByExpandingTemplate:withStartTag:andEndTag:usingDictionary:errorsReturned:
] at 
STSTemplateEngine.m:1456
#5  0x00007c80 in +[NSString(STSTemplateEngine) 
stringByExpandingTemplate:withStartTag:andEndTag:usingDictionary:errorsReturned:
] at 
STSTemplateEngine.m:1456
#6  0x00008b72 in +[NSString(STSTemplateEngine) 
stringByExpandingTemplateAtPath:withStartTag:andEndTag:usingDictionary:encoding:
errorsRetur
ned:] at STSTemplateEngine.m:1770
#7  0x00008196 in +[NSString(STSTemplateEngine) 
stringByExpandingTemplateAtPath:usingDictionary:encoding:errorsReturned:] at 
STSTemplateEngine.m:1568
#8  0x00010959 in -[USWriter appendBinding:toHString:mString:] at USWriter.m:256
#9  0x0000ff2c in -[USWriter doWriteSchema:] at USWriter.m:172
#10 0x0000f280 in -[USWriter writeSchemas] at USWriter.m:83
#11 0x0000f148 in -[USWriter write] at USWriter.m:70
#12 0x0000c760 in -[USParserApplication doParseWSDL] at 
USParserApplication.m:182
#13 0x96bd27ed in -[NSThread main]
#14 0x96bd2394 in __NSThread__main__
#15 0x90f94095 in _pthread_start
#16 0x90f93f52 in thread_start


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

Original issue reported on code.google.com by [email protected] on 11 Mar 2009 at 3:48

WSDL2ObjC-0.6 crashes due to uncaught exception

What steps will reproduce the problem?
1. Run WSDL2ObjC-0.6 against attached WSDL 

What is the expected output?
Generated SOAP stubs

What do you see instead?
Crash report

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

Please provide any additional information below.

Application Specific Information:
objc[36682]: garbage collection is ON
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: 
'[<USPart 
0x10663e0> valueForUndefinedKey:]: this class is not key value coding-compliant 
for the key 
type.'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x944e358a __raiseError + 410
    1   libobjc.A.dylib                     0x9530ff49 objc_exception_throw + 56
    2   CoreFoundation                      0x9452daf1 -[NSException raise] + 17
    3   Foundation                          0x905265dc -[NSObject(NSKeyValueCoding) 
valueForUndefinedKey:] + 279
    4   Foundation                          0x9044779f _NSGetUsingKeyValueGetter + 68
    5   Foundation                          0x90446d0a -[NSObject(NSKeyValueCoding) valueForKey:] + 
413
    6   WSDL2ObjC                           0x00007a82 +[NSString(STSTemplateEngine) 
valueForDictionary:key:] + 292
    7   WSDL2ObjC                           0x00003f7f -[NSString(STSTemplateEnginePrivateCategory2) 
stringByExpandingPlaceholdersWithStartTag:andEndTag:usingDictionary:errorsReturn
ed:lineNum
ber:] + 858
    8   WSDL2ObjC                           0x00006cb7 +[NSString(STSTemplateEngine) 

Original issue reported on code.google.com by [email protected] on 17 Sep 2009 at 7:29

Attachments:

There is no SOAP Fault handling

What steps will reproduce the problem?
1. Submit a SOAP request that generates a fault

What is the expected output?
Some way of finding out what the fault(s) are and handling them appropriately

What do you see instead?
A NULL response is returned, so it's known that a fault occurred, but there
is no way to figure out which fault did occur.

Original issue reported on code.google.com by [email protected] on 12 Sep 2008 at 12:02

compile / run issue

What steps will reproduce the problem?
Good question it i was able to run the app on the first run but on the
second time xcode says "GDB interupted"  

What is the expected output?
a functional app

What do you see instead?

[Session started at 2009-09-03 23:16:23 -0400.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul  3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
Loading program into debugger…
Program loaded.
run
[Switching to process 3425]
Running…
2009-09-03 23:16:24.141 WSDL2ObjC[3425:a0f] An uncaught exception was raised
2009-09-03 23:16:24.145 WSDL2ObjC[3425:a0f] *** -[NSURL
initWithString:relativeToURL:]: nil string parameter
2009-09-03 23:16:24.149 WSDL2ObjC[3425:a0f] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL
initWithString:relativeToURL:]: nil string parameter'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x923f058a __raiseError + 410
    1   libobjc.A.dylib                     0x96287f49 objc_exception_throw + 56
    2   CoreFoundation                      0x923f02b8 +[NSException
raise:format:arguments:] + 136
    3   CoreFoundation                      0x923f022a +[NSException
raise:format:] + 58
    4   Foundation                          0x9303e144 -[NSURL(NSURL)
initWithString:relativeToURL:] + 90
    5   Foundation                          0x9303e0cf +[NSURL(NSURL)
URLWithString:relativeToURL:] + 82
    6   Foundation                          0x9303e077 +[NSURL(NSURL)
URLWithString:] + 49
    7   WSDL2ObjC                           0x0000afaf -[USParserApplication
outURL] + 204
    8   WSDL2ObjC                           0x0000add7 -[USParserApplication
canParseWSDL] + 102
    9   Foundation                          0x9302c237
_NSGetCharValueWithMethod + 95
    10  Foundation                          0x9302679f
_NSGetUsingKeyValueGetter + 68
    11  Foundation                          0x93025d0a
-[NSObject(NSKeyValueCoding) valueForKey:] + 413
    12  Foundation                          0x93029638
-[NSObject(NSKeyValueCoding) valueForKeyPath:] + 204
    13  AppKit                              0x950b8d5e -[NSBinder
_valueForKeyPath:ofObject:mode:raisesForNotApplicableKeys:] + 841
    14  AppKit                              0x950b8989 -[NSBinder
valueForBinding:resolveMarkersToPlaceholders:] + 188
    15  AppKit                              0x95277c11 -[NSEditableBinder
enabledState] + 74
    16  AppKit                              0x9517028e -[NSEditableBinder
_setStatesImmediatelyInObject:mode:triggerRedisplay:] + 348
    17  AppKit                              0x9517012b -[NSEditableBinder
_observeValueForKeyPath:ofObject:context:] + 124
    18  AppKit                              0x950b7b41 -[NSBinder
_performConnectionEstablishedRefresh] + 85
    19  AppKit                              0x950aa248
-[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 721
    20  AppKit                              0x951561df -[NSNibBindingConnector
establishConnection] + 156
    21  AppKit                              0x95085495 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 1249
    22  AppKit                              0x950835aa loadNib + 257
    23  AppKit                              0x950829a4
+[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 228
    24  AppKit                              0x950828b5
+[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 158
    25  AppKit                              0x95082800
+[NSBundle(NSNibLoading) loadNibNamed:owner:] + 383
    26  AppKit                              0x9507f609 NSApplicationMain + 434
    27  WSDL2ObjC                           0x0000e041 main + 30
    28  WSDL2ObjC                           0x00001e62 start + 54
)
sharedlibrary apply-load-rules all
(gdb) 

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

Please provide any additional information below.
I fully admin to be a nube at wsdl, soap, objc, etc. so i may be doing
something stupid. (not completely green to programing)

Original issue reported on code.google.com by [email protected] on 4 Sep 2009 at 3:20

Incorrect wsdl parse

1. I downloaded wsdl2objc version 0.5.
2. I tryed to parse wsdl from http://www.freebiesms.co.uk/sendsms.asmx?WSDL
3. I receive sendSmsSvc.h and see that sendSmsSvc_SendSmc have no attributes 
and elements.
@interface sendSmsSvc_SendSms : NSObject {

/* elements */
/* attributes */
}


Original issue reported on code.google.com by [email protected] on 16 Mar 2009 at 7:05

request xml (xsi:type=)

What steps will reproduce the problem?
1. make a webservice with jboss seam 
2. use wsdl2objc with attached wsdl
3.

What is the expected output?
  <soap:Body>
    <SupportServiceSvc:login>
      <username>admin</username>
      <password>admin</password>
    </SupportServiceSvc:login>
  </soap:Body>

What do you see instead?
  <soap:Body>
    <login xsi:type="SupportServiceSvc:login">
      <username>admin</username>
      <password>admin</password>
    </login>
  </soap:Body>

What version of the product are you using? On what operating system?
mac osx 10.5.8; xcode 3.1.4; wsdl2objc 0.6; jboss 5.0.0.0; seam 2.1

Please provide any additional information below.
wsdl2objc creates xml's wich produces this error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <env:Fault>
         <faultcode>env:Client</faultcode>
         <faultstring>Endpoint 
{http://ws.controller.support.navitas.de/}SupportServicePort does not contain 
operation meta data for: login</faultstring>
      </env:Fault>
   </env:Body>
</env:Envelope>

is there a way to change the output xml in that kind i showed above? i'm really 
new to 
objc development and a bit confused by the generated code.

i tryed my changed xml by sending the changed xml by hand an it works fine. any 
sugestions on handle this?

best regards!

Original issue reported on code.google.com by [email protected] on 18 Sep 2009 at 3:28

Attachments:

Amazon AWS WSDL Yields Nearly 2000 In-Code Errors

What steps will reproduce the problem?
1. Download the Amazon AWS Associates WSDL file from 
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
2. Run wsdl2objc on it
3. Stare at all the broken code

What is the expected output?
Generated code that is syntactically and logically valid

What do you see instead?
Code containing hundreds and hundreds of errors, all generally looking like:
%«element.type.className» *** ERROR: undefined key ***  enumRepresentation = 
%«element.type.className» *** ERROR: undefined key ***

What version of the product are you using? On what operating system?
v0.5, OS X 10.5.5

Please provide any additional information below.
I will be beside myself with gratitude if this gets fixed, or if I am shown 
what I'm doing wrong.


Original issue reported on code.google.com by [email protected] on 1 Apr 2009 at 5:17

Attachments:

Generated code cannot compile for the iPhone (SDK 2.1.1)

Steps to reproduce the problem:
1. Download https://demo.docusign.net/api/3.0/Credential.asmx?WSDL and save the 
file with 
.xml extension.
2. Launch WSDL2ObjC, browse to the saved file, browse to an empty folder for 
output directory.
3. Click "Parse WSDL"

The expected output is a valid objC file, but I see some errors like this in 
the generated code: %«element.type.className» *** ERROR: undefined key ***
The compilation fails with error: syntax error before '%' token.

Using wsdl2objc version 0.5, Xcode 3.12, Mac OS X 10.5.7





Original issue reported on code.google.com by [email protected] on 16 May 2009 at 5:03

USAdditions Memory Leak in XML Escaping

What steps will reproduce the problem?
1. Run leaks on device
2. Execute functionality that uses web service.
3.

What is the expected output?

What do you see instead?
Leaks is reporting a leak in the methods
 - (NSString *)stringByUnescapingXML
 - (NSString *)stringByEscapingXML
These methods make a mutableCopy but then don't release - or in the case 
autorelease.

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

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 9 Oct 2009 at 2:50

Can't handle xsd:anyType

What steps will reproduce the problem?
1. Parse a file that includes xsd:anyType (in this case for a
anyType2anyTypeMap)

What is the expected output?
1. Not exactly certain.... I don't know if this can map easily to id.

What do you see instead?
1. An error in the logs and the output that type was not parsed when it
gets to anyType.


Original issue reported on code.google.com by [email protected] on 7 Jan 2009 at 2:10

Missing the Method Name in SOAP-Body

What steps will reproduce the problem?
1. sending a normal SOAP-Request
2.
3.

What is the expected output?
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
<SOAP-ENV:Body>
 <m:login xmlns:m="http://gforgegroup.com">
 <userid xsi:type="xsd:string">gforgeadmin</userid>
 <passwd xsi:type="xsd:string">gforgeadmin</passwd>
</m:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

What do you see instead?
<?xml version="1.0"?>
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:GForgeAPI="http://gforgegroup.com"
xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://schemas.xmlsoap.org/wsdl/" xsl:version="1.0">
  <soap-env:Body>
    <userid>tester</userid>
    <passwd>tester</passwd>
  </soap-env:Body>
</soap-env:Envelope>

What version of the product are you using? On what operating system?
0.6 wsdl2objc, sdk iPhone 3.1, gForge SOAP Api 

Please provide any additional information below.

First, your tool is awesome!.

Second, i'm not quite sure what really is producing the error. Using SOAP
Client for Mac the Interface works very well. Using your produced code
seems to create a message the server won't read.

I compared all header informations, and those seem to be allright. Goal is
to talk to the GForge SOAP Interface. I suppose the error is produced
because of the missing child node in body. I allready changed "soap" to
"soap-env". But what i now need is:

 <m:login xmlns:m="http://gforgegroup.com">
   ...
 </m:login>

inside the body.

The Response is embeded in 

  <ns1:loginResponse xmlns:ns1="http://gforgegroup.com">
   ...
  </ns1:loginResponse>

as well.

I thing i need to change "serializedFormUsingHeaderElements", but i'm not
so good unterstanding the XML-stuff in there.

Maybe somebody has a good idea.

thanks matthias

Original issue reported on code.google.com by [email protected] on 18 Oct 2009 at 8:47

Generated code will crash when the SOAP response times out

What steps will reproduce the problem?
1. Generate code into a project
2. Request something from the SOAP service that takes more than 5 minutes

What is the expected output?
Some form of error reporting indicating that the request timed out

What do you see instead?
The code doesn't handle this properly and the app crashes

Please use labels and text to provide additional information.



Original issue reported on code.google.com by [email protected] on 24 Oct 2008 at 6:59

unsignedInt unsignedLong seem not to be supported

What steps will reproduce the problem?
Try to generate
http://publicbetawebservices.hotel.de/V2_7/FreeHotelSearchWebService.asmx?WSDL

What is the expected output?
I would expect an compilable output for my iphone app.

What do you see instead?
Errors, that "unsignedInt" is not available
I tried to fix everything to make it compilable with adding the Object:
@interface unsignedInt : NSNumber {}
@end
@implementation unsignedInt {} 
@end

@interface unsignedLong : NSNumber {}
@end
@implementation unsignedLong {} 
@end

Then i had to change additionally at some places "unsigned int" to Object
with Pointer "unsignedInt *".
Then it was compilable, but still then i had errors with the Linker, that
he did not find the Objects:
  ".objc_class_name_xsd_unsignedLong", referenced from:

I searched with spotlight and google, but did not find where this is. It's
just declared in xsd.h but dont know where to find it as implementation.

I added for Linking and Header Search the libxml-Path and also added
CFNetwork Framework to the Project. 

I assume, that unsignedInt/Long was not tested before, so i opened an
issue. If i did misconfgure something, sorry, i'm new to objective c
development. Thanks to this very needed tool!!

Thanks & bye
Lars

Original issue reported on code.google.com by [email protected] on 27 Sep 2009 at 5:43

SoapFault check is hardcoded to the namespace "soap"

What steps will reproduce the problem?
1.  If a fault is returned with a different namespace than "soap" like 
"soapenv" then the fault will 
not be created and an empty bodyParts will be returned. 
. 

What is the expected output?
It should use the namespace of the document in checking for a namespace.


What do you see instead?
It checks the hardcoded value of "soap". For example:  in Binding_M.template

else if (   xmlStrEqual(bodyNode->ns->prefix, (const xmlChar *) "soap") &&      

                xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) 
{
    SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode]; ....
}

Could change
   (const xmlChar*)"soap"            to 
   cur->ns->prefix to get

else if (   xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix) &&               

                xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) 
{
    SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode]; ....
}

My Soap response with fault message and namespace of sopaenv:
 <?xml version='1.0' encoding='UTF-8'?> 
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">         
     <soapenv:Header/> 
     <soapenv:Body> 
         <soapenv:Fault>
             <faultcode>soapenv:Receiver</faultcode>
             <faultstring>Err fault occurred</faultstring> 
             <detail/> 
         </soapenv:Fault>
     </soapenv:Body> 
</soapenv:Envelope>


Original issue reported on code.google.com by [email protected] on 6 Aug 2009 at 7:50

Reliant on WSDL and actual web service to consistently use the same namespace prefixes

What steps will reproduce the problem?
1. Use a wsdl file that uses varying prefixes for the 
same namespaces
2. Generated code will not properly account for the 
differences in namespaces during deserialization of 
XML returned from the service

What is the expected output?
Type identification should be solely reliant on the 
provided URI, not the prefix used
What do you see instead?
Type identification during deserialization currently relies 
solely on the prefix currently being used. If this does not 
match up with the prefix used in the wsdl file type 
identification won't work (xsi:type tags).
Web services that are consistent with their prefix usage 
will work as expected

Please use labels and text to provide additional 
information.


Original issue reported on code.google.com by [email protected] on 10 Sep 2008 at 4:30

WSDL Generates with missing replacement values

What steps will reproduce the problem?
1. Use the following WSDL to generate code.
2. Evaluate DrugLookup.h:32

What version of the product are you using? On what operating system?
Latest from site, 0.6

Please provide any additional information below.
I don't have access to the soap server software but it seems like this might be 
a configuration issue 
on their end. Would truly appreciate any help you could provide.

Original issue reported on code.google.com by [email protected] on 8 Oct 2009 at 8:48

Attachments:

SoapFault check is hardcoded to the namespace "soap"

What steps will reproduce the problem?
1.  Return a soap fault with a namespace other that soap - like soapenv 
2.
3.

What is the expected output?
Expect to have a soap fault found.
What do you see instead?
The bodyParts of the response are empty.

What version of the product are you using? On what operating system?
.6 on the iPhone


Please provide any additional information below.
This is the same as Issue 27.  It was marked as fixed, but the code that 
detects the faults as it 
parses the response is still hardcoded to check that the namespace equals 
"soap" before it 
checks if the element name is "Fault".  We don't have control over the WSDL 
that is generated.  In 
the original issue that was closed, I had the following:

It checks the hardcoded value of "soap". For example:  in Binding_M.template

else if (   xmlStrEqual(bodyNode->ns->prefix, (const xmlChar *) "soap") &&      

                xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) 
{
    SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode]; ....
}

Could change
   (const xmlChar*)"soap"    
        to 
   cur->ns->prefix to get

else if (   xmlStrEqual(bodyNode->ns->prefix, cur->ns->prefix) &&               

                xmlStrEqual(bodyNode->name, (const xmlChar *) "Fault")) 
{
    SOAPFault *bodyObject = [SOAPFault deserializeNode:bodyNode]; ....
}

My Soap response with fault message and namespace of sopaenv:
 <?xml version='1.0' encoding='UTF-8'?> 
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">         
     <soapenv:Header/> 
     <soapenv:Body> 
         <soapenv:Fault>
             <faultcode>soapenv:Receiver</faultcode>
             <faultstring>Err fault occurred</faultstring> 
             <detail/> 
         </soapenv:Fault>
     </soapenv:Body> 
</soapenv:Envelope>

Original issue reported on code.google.com by [email protected] on 8 Oct 2009 at 3:06

Objective C keywords are not properly escaped

What steps will reproduce the problem?
1. Create a WSDL with the following type:

<xsd:complexType name="Test">
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="field1" type="xsd:string"/>
<xsd:element maxOccurs="1" minOccurs="0" name="inline" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

2. Observe that the properties generated for the second field have the name
"inline" which is a reserved word within Objective C. This obviously this
leads to compilation errors in the generated source.

Suggested fix: Use a lookup for reserved keywords and pre- or postfix them
with some string like "_". Within the XML-code, however, use the original
name as used in the type definition.

Version: 0.6

Mac OS X 10.6.1

Original issue reported on code.google.com by [email protected] on 16 Oct 2009 at 12:30

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.