Библиотека параметров проблемы WebService для iPhone wsdl2objc и SudzC - PullRequest
1 голос
/ 18 августа 2011

У меня большая проблема с использованием веб-сервисов и iPhone. Я пытаюсь использовать другую библиотеку: wsdl2objc и SudzC, и у меня та же проблема.

Я обобщаю свои заглушки, нет проблем, и когда я вызываю методы веб-сервисов с параметрами, мой сервер не получает параметры. Мой сервер является сервером JBoss, а wsdl находится на Java.

Мой код с wsdl2objc:

MobileActionsBinding *binding = [[MobileActionsBeanService MobileActionsBinding] retain];
MobileActionsBeanService_getListMobileMenuItemByMobileApplicationId *menu = [[MobileActionsBeanService_getListMobileMenuItemByMobileApplicationId alloc] init];
    NSNumber *number = [[NSNumber alloc] initWithInt:15];
    menu.arg0 = number;

    NSLog(@"menu.arg0 : %@",menu.arg0);
    MobileActionsBindingResponse *response = [binding getListMobileMenuItemByMobileApplicationIdUsingGetListMobileMenuItemByMobileApplicationId:menu];

    NSArray *arrayReponse = response.bodyParts;
    for(id bodypart in arrayReponse) {
        if([bodypart isKindOfClass:[MobileActionsBeanService_getListMobileMenuItemByMobileApplicationIdResponse class]]) {
            MobileActionsBeanService_getListMobileMenuItemByMobileApplicationIdResponse *appResponse = (MobileActionsBeanService_getListMobileMenuItemByMobileApplicationIdResponse *)bodypart;

        }

        if([bodypart isKindOfClass:[SOAPFault class]]) {
            SOAPFault *soapFault = (SOAPFault *)bodypart;
            NSLog(@"%@",soapFault.simpleFaultString);
        }
    }

Мой код с SudzC:

SDZMobileActionsBeanService *service = [SDZMobileActionsBeanService service];
service.logging = YES;
[service getListMobileMenuItemByMobileApplicationId:self action:@selector(getApp:) arg0:15];

В двух методах JBoss получить arg0 = null

...