Shun87 / wsdl2objc

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

New line suppose to be ignored in method connectionDidFinishLoading #80

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. generate classes from wsdl
2. call ws methods
3. soap parser crashes when traversing soap envelope response

What is the expected output?
- when parsing xml soap, traversing method suppose to ignore node type of text 

What do you see instead?
- EXC_BAD_ACCESS

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

Please provide any additional information below.

Solved locally by updating Binding_M.template:

line 429 change to:
  if(bodyNode->type == XML_ELEMENT_NODE) {

line 409 change to:
  if(headerNode->type == XML_ELEMENT_NODE) {

Previously on both places there were check
if(cur->type == XML_ELEMENT_NODE) {

but it is already done on line 402.

When '\n' comes to process, cur->type is XML_ELEMENT_NODE, which is fine,
but bodyNode->type, or headerNode->type is in that moment XML_TEXT_NODE,
condition passes and followed operations fail.

Original issue reported on code.google.com by lenart.m...@gmail.com on 22 Apr 2010 at 12:24