外部worklight服务器的IBM Worklight application-descriptor.xml配置 [英] IBM Worklight application-descriptor.xml configuration for external worklight server

查看:156
本文介绍了外部worklight服务器的IBM Worklight application-descriptor.xml配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在application-descriptor.xml上添加worklightServerRootURL元素以指向外部Worklight Server,但我收到错误找到无效内容,以元素'worklightServerRootURL'开头。有关application-descriptor.xml的配置,请参阅下面的内容。有人知道有关此错误的解决方案吗?

I would like to add in "worklightServerRootURL" element on application-descriptor.xml to point to the external Worklight Server but i got the error "Invalid content was found starting with element 'worklightServerRootURL'". Please refer below for my configuration on application-descriptor.xml. Anyone know the solution about this error?

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<application xmlns="http://www.worklight.com/application-descriptor" id="MobileTest" platformVersion="6.2.0.00.20140825-1637">
    <displayName>MobileTest</displayName>
    <description>MobileTest</description>
    <author>
        <name>application's author</name>
        <email>application author's e-mail</email>
        <homepage>http://mycompany.com</homepage>
        <copyright>Copyright My Company</copyright>
    </author>
    <mainFile>index.html</mainFile>
    <features/>
    <thumbnailImage>common/images/thumbnail.png</thumbnailImage>
    <android version="1.0">
        <worklightSettings include="false"/>
        <security>
            <encryptWebResources enabled="false"/>
            <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
            <publicSigningKey/>
            <packageName/>
        </security>
    </android>
    <worklightServerRootURL>http://${local.IPAddress}:9080/worklight</worklightServerRootURL>
</application>

谢谢。

推荐答案

自Worklight 6.0.0.0以来,不再使用application-descriptor.xml中的 worklightServerRootURL 元素,特别是在Worklight 6.2中不会使用。

The worklightServerRootURL element in application-descriptor.xml is deprecated since Worklight 6.0.0.0 and should not be used, especially not in Worklight 6.2.

为了使构建的应用程序指向另一个远程的Worklight Server,您需要右键单击应用程序文件夹并选择 Run As> ;构建设置和远程目标

In order to have the built application point to a different, remote, Worklight Server you need to right-click on the application folder and select Run As > Build Settings and Remote Target.

在打开的向导窗口中,输入远程服务器的服务器URL。此值将用于生成的项目,构建的应用程序将尝试连接到该地址。

In the opened wizard window, you enter the server URL of the remote server. This value will be used in the generated projects and the built app will attempt connecting to that address.

输入路径后,单击确定,然后选择运行方式>在Worklight Development Server上运行

After you enter the path, click OK and then select Run As > Run on Worklight Development Server.

有关详细信息,请阅读Worklight 6.2

For more information do read the Worklight 6.2

  • Training modules and
  • User documentation topic for the Build Settings and Deploy Target command

这篇关于外部worklight服务器的IBM Worklight application-descriptor.xml配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆