开发者

WebService iPhone problem parameter library wsdl2objc and SudzC

I have a big problem using webservices and iPhone. I try to user different library : wsdl2objc and SudzC and i have the same problem.

I general my stubs, no problem and when i call webservices methods with parameters my server don't get the parameters. My server is a JBoss server and ws开发者_运维百科dl is in Java.

My code with 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);
        }
    }

My code with SudzC :

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

In two methods JBoss get arg0 = null

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜