On 5/10/2012 2:36 PM, Davej wrote:
> On May 8, 7:57 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>> On 5/8/2012 6:35 AM, Davej wrote:
>>> On May 7, 6:36 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>>>> On 5/7/2012 10:00 AM, Davej wrote:
>>>>> On May 6, 8:43 pm, Arne Vajhøj<a...@vajhoej.dk> wrote:
>>>>>> Would it be possible to expose the data as a web service
>>>>>> instead of as a web page (that would make many things
>>>>>> easier client side)?
>>
>>>>> I was confused by web services so I went down the path of "screen
>>>>> scraping" with the idea that I could perhaps switch over later.
>>
>>>> I think it would have been way easier for you with web services.
>>
>>>> WCF is a bit complex, but there are alternatives:
>>>> * oldfashioned .asmx web services
>>>> * a simple web handler (.ashx)
>>
>>> I will have to read up on those. I wanted to avoid just using some
>>> mysterious library that would magically do everything. I am still
>>> trying to grasp some of the underlying limitations and issues of my
>>> simple-minded approach; for example sending numbers is no problem, but
>>> strings have to be sent with caution, particularly in the download
>>> direction. In my application strings are not too important, but I have
>>> some strings come back in the debugging messages and I did include a
>>> "chat" feature. Although I have not tested this I'm guessing that
>>> "<table>" or"</html>" would be bad sequences to find in a chat
>>> message.
>>
>> A simple web handler (.ashx) does not contain much magic.
>
> If it does not force me to use XML I will give it a try next week.
You can do XML, JSON, CSV or whatever format you like.
Unless bandwidth is a primary concern, then I believe
XML would be a nice format.
Arne
|