Ios6 如何生成对webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier的GET请求?PasseUpdatedSince=tag

Ios6 如何生成对webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier的GET请求?PasseUpdatedSince=tag,ios6,passbook,get-request,Ios6,Passbook,Get Request,创建过程后,我可以将其添加到设备,通过将数据保存到数据库来注册设备。接下来,如何生成对webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier的GET请求?PasseUpdatedSince=tag?我在控制台中看到了这一点:Apr 4 10:08:26 CamMobs-iPod4 passd[12098]:使用URL生成GET请求Apr 4 10:08:26 CamMobs-iP

创建过程后,我可以将其添加到设备,通过将数据保存到数据库来注册设备。接下来,如何生成对webServiceURL/version/devices/deviceLibraryIdentifier/registrations/passTypeIdentifier的GET请求?PasseUpdatedSince=tag?我在控制台中看到了这一点:Apr 4 10:08:26 CamMobs-iPod4 passd[12098]:使用URL生成GET请求Apr 4 10:08:26 CamMobs-iPod4 passd[12098]:获取设备02d6566cc59dc34e3abd116eed498898的串行s任务,pass类型pass.cam-mob.passbookpasstest,最后更新的null;使用web服务urlhttp://192.168.1.202:8888/passesWebserver/ 获取响应,代码为200Apr 4 10:08:26 CamMobs-iPod4 passd[12098]:获取设备02d6566cc59dc34e3abd116eed498898的串行s任务,pass类型为pass.cam-mob.passbookpasstest,上次更新为null;使用web服务urlhttp://192.168.1.202:8888/passesWebserver/ 遇到错误:服务器响应格式不正确,缺少响应数据

您不生成GET请求,而是由设备生成。您需要配置web服务以识别请求,然后查询数据库并返回相关序列号的列表,或者如果没有需要更新的序列号,则返回204响应。您可以使用用于捕获注册的相同代码并对此方法进行调整,web服务规范中的其余3种方法可以取消注册、传递新的密码和日志。为什么上次更新为null?因为当设备第一次收到密码时,它没有收到上次修改的标头。如果它收到了一个标题,那么它将请求自该日期起修改的序列号。设备永远不会知道它刚刚安装的pass是否是最新版本,因此每当它安装新pass时,它将始终调用您的web服务进行检查。如何设置上次修改的标头?因此我需要从我的pass in数据库中选择串行?