worklight-server

How to send images through Worklight server without base64 encoding?

痞子三分冷 提交于 2019-11-28 02:03:10
问题 I`m trying to find out how to send images to my back-end server using Worklight adapters. I know that I can send them through Worklight adapters using Base64 encoding but this implies in around 30% more traffic between the servers and some undesired processing overhead. For now I`m using the Phonegap FileTransfer library as I show below, but this creates a directly connection between the client and the back-end server not going through Worklight server as I want. var options = new

Making web service calls to a HTTPS server from Worklight Adapter - javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

做~自己de王妃 提交于 2019-11-27 08:12:14
问题 I am trying to hit a REST based HTTPS service from my adapter and my .xml file looks like this, <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> <protocol>https</protocol> <domain>myco.company.com</domain> <port>443</port> <!-- Following properties used by adapter's key manager for choosing specific certificate from key store <sslCertificateAlias></sslCertificateAlias> <sslCertificatePassword></sslCertificatePassword> --> </connectionPolicy> <loadConstraints

IBM Worklight - How to connect to another Worklight Server located in another machine in the same network?

自闭症网瘾萝莉.ら 提交于 2019-11-27 07:28:04
问题 I have setup Worklight Studio in my local Machine and developed a sample application. I need to deploy that application to a Worklight Server set up in another PC in the same network (LAN). 回答1: You already have a server in your local machine - Worklight Studio contains an internal Worklight Server. But that doesn't matter... If you are using Worklight 5.x: Open application-descriptor.xml Find the worklightServerRootURL element Change its value to that of the remote Worklight Server, for

Worklight 5.0.6.1 - System.out.println() logging from Worklight adapter is not working

回眸只為那壹抹淺笑 提交于 2019-11-27 07:26:00
问题 I've installed Worklight 5.0.6.1 and when invoking Java code from my adapter I don't see the log output in the workspace\WorklightServetrHome\project\logs log files. I'm using System.out.println(). Any advice why this worked successfully in previous releases of Worklight, and is not working in v5.0.6.1? What the property settings to allow System output from Java code in Worklight that need to be set? FYI: Thinking it might be a bad install I re-installed a second time, and with the same