0

我在 iPad 应用程序中实施 Oracle UCM 是否有任何用于登录身份验证的 Web 服务。现在我正在使用 j_security_check?.. 我无法处理 j_security_check 响应。

NSURL *url = [NSURL  URLWithString:@"http://serveripaddress/cs/idcplg/j_security_check?"];

//initialize a request from url
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[url standardizedURL]];

//set http method
[request setHTTPMethod:@"POST"];

//initialize a post data
NSString *postData =[NSString stringWithFormat:@"j_username=%@&j_password=%@",usernameTF.text,passwordTF.text];

NSLog(@"userDetails : %@" ,postData);

//set request content type we MUST set this value.
[request setValue:@"application/x-www-form-urlencoded; charset=utf-8" forHTTPHeaderField:@"Content-Type"];

//set post data of request
[request setHTTPBody:[postData dataUsingEncoding:NSUTF8StringEncoding]];

NSURLConnection *urlconnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];

self.connection = urlconnection;
4

1 回答 1

1

您可以将 iPad 应用程序用于 Webcenter Content,而不是为相同的内容构建您自己的应用程序。请查看以下链接以获取应用程序的具体详细信息:

http://docs.oracle.com/cd/E29542_01/doc.1111/e26695/mobile_integration.htm

https://itunes.apple.com/us/app/oracle-webcenter-content/id701199944?mt=8

希望这可以帮助 。

谢谢, 斯里纳斯

于 2015-01-12T09:27:40.113 回答