WSDL サービスを使用するには、http: //code.google.com/p/wsdl2objc/wiki/UsageInstructions のコードを参照しています。私のコードは
ZESRV_PM_SEARCH_PARAMETERS *binding = [[ZESRV_PM_SEARCH_PARAMETERS alloc] initWithAddress:urlString];
binding.logXMLInOut = YES;
binding.authUsername = username;
binding.authPassword = password;
NSMutableArray *array=[[NSMutableArray alloc]init];
[array addObject:@"Karama"];
[array addObject:@"Commercial"];
[array addObject:@"Industrial"];
ZESRV_PM_SEARCH_PARAMETERSSvc_TableOfZesrvLocation *request = [[ZESRV_PM_SEARCH_PARAMETERSSvc_TableOfZesrvLocation alloc] init];
request.item=array;
ZESRV_PM_SEARCH_PARAMETERSResponse *response = [binding ZesrvPmSearchParametersUsingParameters:request];
NSLog(@"response %@",response);
NSError * responseError = response.error;
NSLog(@"responseError %@",responseError);
NSArray *array=response.bodyparts;
dispatch_async(dispatch_get_main_queue(), ^{
[self processResponse:response];
});
ここで私は応答を取得しており、応答エラーは Null です。しかし、response.bodypart も NULL を取得しています。
誰でも私を助けることができますか?ありがとう