Please excuse my lack of knowledge of LC and other technical issues.
I have a need to use LC to read/write to databases using SOAP WebService methods. So I've been looking at the lesson accessing-web-services-using-livecode
However when I attempt to access / run the php file which creates the xml I get an error saying "Failed to read preferences file at location: ". If I try to run the php script from the browser (localhost:8081/livecode/samplexml1.php) I get an "Unable to connect" error. I'm using my Ubuntu notebook as my web server, and can see the phpinfo page.
I realise that my problem here is not a LC issue as such but would be very grateful if anyone get help get round this particular problem.
Thanks in advance.
Accessing Web Services using LC
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Accessing Web Services using LC
Hi,
What do you use to generate the XML exactly?
Kind regards,
Mark
What do you use to generate the XML exactly?
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Accessing Web Services using LC
The code that is in the LC stack. Somehow I'm not allowed to post links but it is at
lessons runrev com
/s/lessons/m/4070/l/40932-accessing-web-services-using-livecode
lessons runrev com
/s/lessons/m/4070/l/40932-accessing-web-services-using-livecode
Re: Accessing Web Services using LC
Hi,
Have you changed the URL in the code to whatever is correct for your server? I had to change
into
It looks like your tPreferencesFile variable is empty. It needs to contain a valid URL pointing to the PHP file on your server. This URL won't be the same as mine.
Kind regards,
Mark
Have you changed the URL in the code to whatever is correct for your server? I had to change
Code: Select all
http://127.0.0.1:8081/livecode/samplexml1.php
Code: Select all
http://localhost/rr-webservice/index.php
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode