-
December 22nd, 2008, 06:14 PM
#1
Pull data from txt file to lighstreamer (NEWBIE)
Hello!
My data feed provider has giving me a .txt file that looks like this:
AUDCZK=AUDCZK|12.882&CZKAUD=CZKAUD|0.0776&CZKAUD=C ZKAUD|0.0776&AUDDKK=AUDDKK|3.6621&DKKAUD=DKKAUD|0. 2731&DKKAUD=DKKAUD|0.2731
And yeah - I don't know why the to last numbers and symbols are the same. :S
But how do I make a remote adapter for this? I've tried to look at older threads, but I thinks it's very complex to code, and I simply don't understand the system - I have only experience with PHP.
Can one of you administrator maybe give me some help?
-
December 23rd, 2008, 08:55 AM
#2
I assume that you can control what your feed provider produces.
So, you must have asked for AUDCZK, CZKAUD, AUDDKK and DKKAUD in some way
and you must have asked for CZKAUD and DKKAUD twice in some way.
Hence, you should find an algorithm to have your PHP adapter:
- forward 'SUB' and 'USB' messages received from the Server as requests to your feed; the "item names" requested by the clients and carried by the 'SUB' and 'USB' messages have to be known by your feed (one could be 'AUDCZK', for instance)
- forward the files received from the feed back to the Server, through 'UD3' messages; note that you have to supply names for the fields: if your feed does not supply field names, your PHP adapter should assign proper names, so that the clients can ask for specific fields
If you don't understand the concepts used in the ARI protocol documentation, you might need to read a more introductory document, as
DOCS-SDKs\General Concepts.pdf
The ARI protocol documentation also does not cover the meaning of the message arguments in detail, because a reading of the java interface documentation is assumed. We expect that specific knowledge of java is not a prerequisite for an understanding of the function arguments meaning.
Similar Threads
-
By Andrea in forum Adapter SDKs
Replies: 3
Last Post: April 30th, 2012, 04:39 PM
-
By karthik in forum Client SDKs
Replies: 2
Last Post: August 24th, 2010, 07:11 AM
-
By huynhdt in forum Client SDKs
Replies: 0
Last Post: March 8th, 2010, 10:27 AM
-
By tuongkha in forum Adapter SDKs
Replies: 5
Last Post: February 12th, 2008, 03:00 AM
-
By pisak in forum Client SDKs
Replies: 1
Last Post: January 23rd, 2008, 03:10 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 11:44 PM.
Bookmarks