No it’s not runtime only.
You can SET DEBUG ON before issuing it in the console then quit Lianja and look in the debug file which may help you
or
Submit a ticket requesting assistance. Provide the url and an xml file that you know works.
No it’s not runtime only.
You can SET DEBUG ON before issuing it in the console then quit Lianja and look in the debug file which may help you
or
Submit a ticket requesting assistance. Provide the url and an xml file that you know works.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
That was really useful - thanks
Looks like this needs to be an HTTPGET.
Is there a way to preload the HTTPGET request with a parameter (data)?
Thank
Simon
Simon,
Do you really have a user who uses unsecured transfer protocols?
If you need secured transfers (https, ftps, sftp) take a look at Chilkat controls, which do these things (among others) in strict conformance with web standards, made easy for developers (with loads of examples), and provide intelligible "lasterror" results (which can be enhanced beyond that with a settable flag). And they are integrated as a Chilkat extension.
Hank
Thanks Hank
Will look at that
There is a (Lianja) HTTPS Upload File to Web Server which looks promising.
Cheers
Simon
Hi Guys
Finally solved it; as we thought, it was Headers..
Thanks Hank - whilst looking through the Chillcat documentation, I thought I would give the same headers a go in Lianja et voila :
oRequest.setHeader("SOAPAction", "https://xxxxxxxxxxxx.co.uk/xxxxxxxxxxx")
oRequest.setHeader("Content-Type","text/xml; charset=utf-8")
Now works great.
Also the behaviour of postfile() is different from the documentation.
When you call :
lretval = oRequest.postfile("https://xxxxxx.com/xxxxxxxx", "DataSend.xml")
The data in DataSend.xml is sent with the request as expected and then the response overwrites the file DataSend.xml. In other calls you have a send file and a result file. Just one to be aware of. Here lretval evaluates to T/F.
Thanks everyone for their input.
Cheers
Simon
Maybe the above could be included in the documentation so others can find it too.
Thanks for sharing Simon...
Regards Paul.
Hi Simon,
In the next build I have added an additional argument to postFile() and putFile() i.e. the outfilename that receives the result of the post and put operations.
See Doc.
https://www.lianja.com/doc/index.php/NetworkRequest
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Thanks Barry
That's great - makes perfect sense. Code amended.
Cheers
Simon
Hi Barry
Not sure the new feature has yet been added to the Cloud Server as the newest version available is still
library/LianjaWebFramework/LianjaHtmlClient-5.0RC71.min.js
By the way - app runs really well on HTML5 web server.
Thanks
Simon
Hi Simon,
I am not sure what yiu are referring to.
The Lianja Web Framework library is generated when you run an app in a browser. Which you always will do before deployment to test it.
That library has nothing to do with the networkrequest functionality which is server-side handled by the Lianja Cloud Server.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks