I have been pulling XML data the past year on PHP using SOAP. NOw I
have another server to pull from with someone else but their server
seems to be different.
Currently I would do something like the following:
$client = new
soapclient('http://www.site.com/websvs/PubServices.asmx?WSDL', true,
'', '', '', '');
$param = array('webID' => $WEB_ID, 'RecordsIN' => $numrecin);
$resultinit = $client->call('GetRecords', array('parameters' =>
$param), '', '', false, true);
$result = GetXMLTree ($resultinit);
It works great.
This new servers doesn't seem to have any WSDL. they just gave me a
URL with a querystring format to retrieve data along with some sample
asp code.
i.e:
'Creates HTTP Connection Object
Set XMLHTTP = CreateObject("microsoft.XMLHTTP")
'Creates XML Request string to send to xml servers
qstr = "http://xml.traveltoday.net/xmlhotel.jsp?xml="
qstr = qstr &
"<GeoRqst%20method=""runGeoRqst""><Type>3</Type><SC><Type>2</Type><Value>"
& country& "</Value></SC></GeoReqst>"
'Opens and sends request
XMLHTTP.Open "GET", qstr, false
xmlhttp.send
xml=replace(xmlhttp.responsetext,"<?xml version=""1.0""
encoding=""ISO-8859-1""?>","")
'Load XML Response into DOM Object
Set XML1 = server.CreateObject("MSXML2.DOMDocument.3.0")
....and so on...
What am I missing? I am a novice at this at best but the SOAP stuff
was no problem.. Can someone help?