WEB开发网
开发学院手机开发iPhone 开发 制作iPhone的SOAP应用的详细教程 阅读

制作iPhone的SOAP应用的详细教程

 2010-11-05 00:53:55 来源:WEB开发网   
核心提示:{ 8. [webData appendData:data]; 9. NSLog(@"connection: didReceiveData:2"); 10. 11. } 12. 13. //如果电脑没有连接网络,则出现 此信息(不是网络服务器不通) 14. -(void)connection:(NS
{ 8. [webData appendData:data]; 9. NSLog(@"connection: didReceiveData:2"); 10. 11. } 12. 13. //如果电脑没有连接网络,则出现 此信息(不是网络服务器不通) 14. -(void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error 15. { 16. NSLog(@"ERROR with theConenction"); 17. [connection release]; 18. [webData release]; 19. } 20. -(void)connectionDidFinishLoading:(NSURLConnection *)connection 21. { 22. NSLog(@"3 DONE. Received Bytes: %d", [webData length]); 23. NSString *theXML = [[NSString alloc] initWithBytes: [webData mutableBytes] length:[webData length] encoding:NSUTF8StringEncoding]; 24. NSLog(theXML); 25. [theXML release]; 26. 27. //重新加蒌xmlParser 28. if( xmlParser ) 29. { 30. [xmlParser release]; 31. } 32. 33. xmlParser = [[NSXMLParser alloc] initWithData: webData]; 34. [xmlParser setDelegate: self]; 35. [xmlParser setShouldResolveExternalEntities: YES]; 36. [xmlParser parse]; 37. 38. [connection release]; 39. //[webData release]; 40. }

上一页  1 2 3 

Tags:制作 iPhone SOAP

编辑录入:coldstar [复制链接] [打 印]
赞助商链接