このフレームワークにカスタム値オブジェクトがある場合、どうすればよいですか?私は、LoginRequestとLoginResponseのインタフェースと実装を宣言して定義しており、LoginRequestとLoginResponseのプロトコルも宣言されています。 私のコードで間違いを見つけることができません。コードは以下の通りです:iPhone SDKのhessianKit
//mycode
NSURL* url = [NSURL URLWithString:myurl];
id<BusinessAPI> proxy = (id<BusinessAPI>)[CWHessianConnection rootProxyWithServiceURL:url protocol:@protocol(BusinessAPI)];
LoginRequest* loginRequest = [[LoginRequest alloc] init];
loginRequest.mobileNum = @"123456789";//number.text;
loginRequest.mobileType = @"iphone";
loginRequest.password = @"123";//password.text;
LoginResponse *loginResponse = [proxy loginBusiness:loginRequest];
if (loginResponse.login) NSLog(@"YES");
else NSLog(@"NO");
ログは
結果は、WebサーバーがリモートLoginRequestオブジェクトを見つけることができないということです「引数の型の不一致」です。 アイデア ありがとうございました