KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

[Soap getNodeValue:element withName:@"type"]; reads data from TAG #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have this response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:SurfaceElementListResponse xmlns:ns2="http://isiows.isiom.fr/schema/DmdCreation" xmlns:ns3="http://isiows.isiom.fr/schema/Error" xmlns:ns4="http://isiows.isiom.fr/schema/DmdDetail">
         <SurfaceElementListResult>
            <idSurfaceElement>9482</idSurfaceElement>
            <name>R04-</name>
            <type>NIVEAU</type>
         </SurfaceElementListResult>
         <SurfaceElementListResult>
            <idSurfaceElement>9486</idSurfaceElement>
            <name>Zone A</name>
            <type>ZONE</type>
         </SurfaceElementListResult>
      </ns2:SurfaceElementListResponse>
   </soap:Body>
</soap:Envelope>

I am waiting each object to be deserialized to NSDictionary, as it works on all 
the other WS response except one above.
In comparison with other responses, in SOAP.m:+ (id) deserialize: (CXMLNode*) 
element method, all the responses for the statement NSString* type = [Soap 
getNodeValue:element withName:@"type"]; return nil, so it is continues with 
return [Soap deserializeAsDictionary:element]; and I get the necessary result.
In my case when I reach to NSString* type = [Soap getNodeValue:element 
withName:@"type"]; the statement returns "NIVEAU" for the first object and 
"ZONE" for the other object, which does not allow the application go and 
execute [Soap deserializeAsDictionary:element]; and I get a formatted string.

Could you please help me solving this issue?

Original issue reported on code.google.com by odan...@gmail.com on 16 Aug 2012 at 2:43