Results 1 to 5 of 5

Thread: read info from web

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26

    read info from web

    hi

    i was just curious if anybody new a good way for a windows application to read a value from a web application in asp.net.

    i want to for example assign credits to a person, then as the person uses credits, the amount will synchronise with an asp.net application on the web and update the value.

    lets say a variable with the value 12. now if the person uses the windows app, it will subtract 1 credit, and also update the same amount on the internet website.

    any thoughts???

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26
    i was thinking maybe read info from an xml file on the web, but how would i do that in terms of connection to the xml file. manipulating the file is no problem, but i just need to be able to read a web value with a windows app.

    ???????????????

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26
    no worries,

    i solved it. it was really simple. just set your exml file on the net in a directory, then read the values into a dataset with the xmlreader. pretty simple from there on. just read the values from the dataset into any variables on your client machine.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Posts
    26
    well, that worked for reading the values from an xml file, but when i tried to write to the file, it gave me errors about uri types not supported. so now i am a bit confused.

    after reading a little ifigured out that maybe soap is the route to go, but i dont know how to use soap to send values from a text box on a windows form to an xml file residing on a remote server.

    any ideas would be much appreciated. ?????????????

  5. #5
    Hyperactive Member SoftwareMaker's Avatar
    Join Date
    Mar 2001
    Location
    Elbonia with Dilbert and Wally
    Posts
    322
    Use XML web services (.asmx) if you already are developing with VS. NET

    If you are using VB6, download the SOAP Toolkit 3 and use SOAP as the communicator.

    XML Web services are already using SOAP to communicate.

    You are halfway there by using XML as the data format to communicate NOW use the commications standards --- SOAP

    Develop a Web Service that takes in a parameter (thru HTTP-POST/GET or SOAP) which then deducts a value from the database.

    Develop a Win App then and use the web service like its another class (Set a reference to it first). Pass in the appropriate parameter into the web service and voila..watch the value travel on the HTTP-80 Protocol post to the respective web site.

    Ahhh....the beauty of web services. MS, amongst other vendors have been touting it for some time. Try it. I have a couple of VB6 and VB.NET Client apps (freeware) that uses web services on my site (developed for fun). Download them at http://www.softwaremaker.net/FreewareApps.asp
    William T
    Software Architect / Chief Software Developer
    Softwaremaker.Net Pte Ltd
    http://www.Softwaremaker.net

    *** Things are always the darkest before they go pitch black ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width