Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 32

Thread: Working with web services and SOAP in Lianja

  1. #21
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    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

  2. #22
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    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

  3. #23
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185
    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

  4. #24
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Hank

    Will look at that

    There is a (Lianja) HTTPS Upload File to Web Server which looks promising.

    Cheers

    Simon

  5. #25
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    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.

  6. #26
    Senior Member
    Join Date
    Mar 2014
    Posts
    124
    Thanks for sharing Simon...
    Regards Paul.

  7. #27
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    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

  8. #28
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    Thanks Barry

    That's great - makes perfect sense. Code amended.

    Cheers

    Simon

  9. #29
    Senior Member
    Join Date
    Jan 2014
    Posts
    369
    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

  10. #30
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us