我正在使用IBM worklight我在iPhone上進行depoly它,當我嘗試使用我的適配器調用soap服務時出現錯誤,我無法理解它的原因。 這是我日誌:使用適配器調用服務的工作燈失敗
2014-06-24 20:57:26.375 myApp[842:60b] user name XXXXX
2014-06-24 20:57:26.376 myApp[842:60b] [DEBUG] [NONE] establishSSLClientAuth
2014-06-24 20:57:26.378 myApp[842:60b] WLUserAuthManager.getCertificateIdentifierFromEntity: com.worklight.userenrollment.certificate:com.myApp.dev
2014-06-24 20:57:26.381 myApp[842:60b] [DEBUG] [NONE] establishSSLClientAuth isCertificateExists: false
2014-06-24 20:57:26.383 myApp[842:60b] [DEBUG] [NONE] Request[http://192.168.23.1:10080/myApp/apps/services/api/myApp/iphone/query]
2014-06-24 20:57:26.416 myApp[842:60b] [ERROR] [NONE] [http://192.168.23.1:10080/myApp/apps/services/api/myApp/iphone/query] failure. state: 500, response: The application 'myApp' with version=1.0 does not support the iphone environment
2014-06-24 20:57:26.417 myApp[842:60b] Loading stop
2014-06-24 20:57:26.418 myApp[842:60b] MyModel::error::{"status":500,"invocationContext":null,"errorCode":"UNEXPECTED_ERROR","errorMsg":"The application 'myApp' with version=1.0 does not support the iphone environment"}
注: 該應用程序部署在Android上沒有問題。
編輯:
我忘了說,我部署的iPhone應用程序沒有問題。但是當我嘗試調用調用Web服務的適配器時,會顯示此消息。
創建項目並添加iphone環境後,你有沒有確保選擇run as - >在worklight開發服務器上運行? –