【发布时间】:2015-02-09 13:03:40
【问题描述】:
我正在尝试设置全局标头以将特定的安全信息发送到后端适配器。这似乎不适用于使用 Objective-C 的原生 iOS 应用程序。我敢肯定,我错过了一些东西。
这是我的简单示例:
NSLog(@"Invoking Procedure...");
WLProcedureInvocationData *myInvocationData = [[WLProcedureInvocationData alloc] initWithAdapterName:@"RSSReader" procedureName:@"getStories"];
MyInvokeListener *invokeListener = [[MyInvokeListener alloc] initWithController: self];
[[WLClient sharedInstance] addGlobalHeader:@"header1" headerValue:@"header1"];
[[WLClient sharedInstance] invokeProcedure:myInvocationData withDelegate:invokeListener];
发送的标头根本没有改变。
【问题讨论】:
-
你是想用这个来改变 Cookie 头,还是只是随机的头?
标签: objective-c ibm-mobilefirst mobilefirst-adapters mobilefirst-studio