CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to retrieve data from another web site

Print topic Send  topic

Author Message
wsirota
Posted: 12/15/2003, 10:35 AM

I need to communicate with another site, which will output some xml when I POST to a certain jsp page with appropriate parameters. What's the best way to get this returned xml into a codecharge variable? I'm new at this, please excuse if it's a dumb question. Thanks.
wsirota
Posted: 12/15/2003, 10:50 AM

I forgot to mention: my implementation is in ASP.
DaveRexel
Posted: 12/15/2003, 11:45 AM

::
Haven't done any ASP stuff for a long time now but the following link may help you.
Dave
DaveRexel
Posted: 12/15/2003, 11:49 AM

::
Sorry... forgot to pastein the link

http://www.devasp.com/Search/Search.asp?st=xml+to+asp&C...arch=1&C_ID=553
wsirota
Posted: 12/15/2003, 12:37 PM

Thanks for the pointer, but it's not exactly what I'm asking. I guess I gave too much detail in my question. I can handle the xml. What I want to know is this: how do I (say) click on a button and get the entire HTML text stream from a URL (http://www.someothersite.com/default.asp, for instance) into a hidden field? After the click, the hidden field would contain "<HTML><HEAD>blah blah</HEAD><BODY>..." etc. I know I can write a DLL function to get the text, but I'd think there'd be a more natural way to get it into a codecharge variable.
Mehmet Ozdemir
Posted: 12/16/2003, 1:14 PM

in asp, use the XMLHTTP object, you can use it for get and posts. It will return the entire stream. just google XMLHTTP and you will find plenty of examples.
wsirota
Posted: 12/17/2003, 11:21 AM

That did it - thanks. ServerXMLHTTP40 in MSXML4 is the exact object I ended up using - very sweet, indeed.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.