Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using web page to Post and retrieve XML

Status
Not open for further replies.

rudejohn

IS-IT--Management
Jul 11, 2003
130
US
I realize that this isn't the JSP forum, but what I'm doing could also be the same/similar code in Javascript... and I'm not getting much response in the JSP forum... (kind of urgent... I need to have it solved by Close-of-Business today) :) :) :)

TIA for all you saints who can help me,

I need to make a call to a third-party URL. For example,

This third-party site accepts HTTP POSTS. I need to POST XML to this URL from a web page. The web site will return an XML string. Then I need to display the return XML to the browser.

How, logically, would this work?

Thanks,

RJ



************
RudeJohn
************
 
I suppose the web page has a form. The form is submitted. This means that the browser requests a file; in the body of the request are the form data elements. The requested file is likely to be a script, CGI, ASP, or JSP.

The request data is passed along to the script. The script converts the name/value elements into the XML document format. The script executes a request to another server and passes along the XML document, which is actually just a stream of text. Instead of name/value elements the data is now formatted as XML.

The other server handles that request, processes the XML, does what it needs to do, and generates a response which is an XML stream.

This response is received by your script. The XML is decoded and the data is used to build a web page. This web page is returned to the browser.

The component MSXML, possibly renamed or updated for .NET will help with the HTTP connection and with encoding and decoding the XML. Most likely there is a Java class that would do the same thing. With CGI and Perl there would be modules available on CPAN to provide these functions.

Hope this is the overview you are looking for.
 
Thanks!

RJ

************
RudeJohn
************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top