Need help in Webservice

cheahph

Member
Licensed User
Longtime User
HI,

I need help in parsing the data (attached) through http://. I got the example "XMLSaX" (something similar on what I want to do but the parsing is done from xml file), can anyone help me on what I should do to get the data?

Thank you.
 

Attachments

  • Http.PNG
    Http.PNG
    35.7 KB · Views: 186
  • XmlSax.zip
    10 KB · Views: 155

cheahph

Member
Licensed User
Longtime User
Sorry for the confusion, actually what i want to know is how to link to xml (http) instead of of using xml(file), the command to link to the xml file is "in = File.OpenInput(File.DirAssets, "rss.xml")"
but i want to get the data directly from http, how?
Thank you.
 

Attachments

  • meterdata.txt
    901 bytes · Views: 178
Last edited:
Upvote 0

cheahph

Member
Licensed User
Longtime User
Hi Erel, i do not want to get the data from XML file, i want to stream directly from http.Can I do that?
 
Upvote 0

cheahph

Member
Licensed User
Longtime User
Here is the data,

<?xml version="1.0" ?>
- <channels>
<EnergySS3 SS3="kWh" kWh="0.0" />
<PowerSS3 SS3="kW" kW="0.0" />
<StatusSS3 SS3="Status" status="0" />
<ship_nameSS3 SS3="ShipName" ShipName="" />
<date_inSS3 SS3="DateIn" DateIn="" />
<time_inSS3 SS3="TimeIn" TimeIn="" />
<jobnoSS3 SS3="JobNo" JobNo="" />
<EnergySS2 SS2="kWh" kWh="0.0" />
<PowerSS2 SS2="kW" kW="0.0" />
<StatusSS2 SS2="Status" status="0" />
<ship_nameSS2 SS2="ShipName" ShipName="" />
<date_inSS2 SS2="" DateIn="" />
<time_inSS2 SS2="TimeIn" TimeIn="" />
<jobnoSS2 SS2="JobNo" JobNo="" />
<EnergySS9 SS9="kWh" kWh="0.0" />
<PowerSS9 SS9="kW" kW="0.0" />
<StatusSS9 SS9="Status" status="0" />
<ship_nameSS9 SS9="ShipName" ShipName="" />
<date_inSS9 SS9="DateIn" DateIn="" />
<time_inSS9 SS9="TimeIn" TimeIn="" />
<jobnoSS9 SS9="JobNo" JobNo="" />
</channels>
Could you teach me how to do that?
Thank you.
 
Upvote 0
Top