1

i have a problem when i get a DataTable from WebService using wsdl2objc.the webservice was written using .net and the GetUserInfo method returns a DataTable.

for (id mine in response.bodyParts){
    if([mine isKindOfClass:[Mobile_GetUserInfoResponse class]]){
        Mobile_GetUserInfoResponse *res = (Mobile_GetUserInfoResponse *)mine;
        Mobile_GetUserInfoResult *getUserInfoResult  = res.GetUserInfoResult;
        //what to do next?
    }
}

i got the getUserInfoResult,but how can i get the data from it

thx.

M.J
  • 21
  • 3
  • Since you are using wsdl, the `Mobile_GetUserInfoResult` will have an implementation in the wsdl2objc generated class. Simply you'll need to get its values through `getUserInfoResult.yourValue` – Ahmed Z. Aug 06 '13 at 04:39
  • getUserInfoResult has no value can be readed. @interface Mobile_GetUserInfoResult : NSObject { } - (NSString *)nsPrefix; - (xmlNodePtr)xmlNodeForDoc:(xmlDocPtr)doc elementName:(NSString *)elName elementNSPrefix:(NSString *)elNSPrefix; - (void)addAttributesToNode:(xmlNodePtr)node; - (void)addElementsToNode:(xmlNodePtr)node; + (Mobile_GetUserInfoResult *)deserializeNode:(xmlNodePtr)cur; - (void)deserializeAttributesFromNode:(xmlNodePtr)cur; - (void)deserializeElementsFromNode:(xmlNodePtr)cur; - (NSDictionary *)attributes; – M.J Aug 06 '13 at 05:13
  • do you have a `- (void)connectionDidFinishLoading:(NSURLConnection *)connection` in your implementation of `Mobile_GetUserInfoResult` ? – Ahmed Z. Aug 06 '13 at 05:32

0 Answers0