emzipoo4u
02-12-2010, 06:18 AM
Hi there,
I am reletively new to XML, in the past I have written some code to generate XML and email an XML file. However now I'm trying to do something and I dont know where to start.
We have a classic ASP based website that sits on hosting space, this is our parts catalogue... at the moment the end user selects vehicle make, model, litre from the dropdowns and parts are displayed that fit the vehicle.
What I want to do is add an additional box to search by vehicle registration number... The user enters the vehicle registration, hits submit and parts are displayed that match that vehicle.
An external company can provide an XML data feed for the request and have given some sample code, but, I cannot see where to start with it, and, how to pull back and process the XML into our website.
HTTP GET EXAMPLE
GET /CarweBVRRB2Bproxy/carwebvrrwebservice.asmx/strB2BGetVehicleByVRM?strUserName=string&strPassword=string&strClientRef=string&strClientDescription=string&strKey1=string&strVRM=string&strVersion=string HTTP/1.1
Host: www1.carwebuk.com
Returns.....
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xml
Http Post Example
POST /CarweBVRRB2Bproxy/carwebvrrwebservice.asmx/strB2BGetVehicleByVRM HTTP/1.1
Host: www1.carwebuk.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
strUserName=string&strPassword=string&strClientRef=string&strClientDescription=string&strKey1=string&strVRM=string&strVersion=string
returns
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xml
There are also snippets for SOAP 1.1 and 1.2 Response.
So, how can I request the XML from this website, and, how can i pull back the variables from their XML tags of make model litre to get them into an SQL query to query our database.
Any help much appreciated. :D
I am reletively new to XML, in the past I have written some code to generate XML and email an XML file. However now I'm trying to do something and I dont know where to start.
We have a classic ASP based website that sits on hosting space, this is our parts catalogue... at the moment the end user selects vehicle make, model, litre from the dropdowns and parts are displayed that fit the vehicle.
What I want to do is add an additional box to search by vehicle registration number... The user enters the vehicle registration, hits submit and parts are displayed that match that vehicle.
An external company can provide an XML data feed for the request and have given some sample code, but, I cannot see where to start with it, and, how to pull back and process the XML into our website.
HTTP GET EXAMPLE
GET /CarweBVRRB2Bproxy/carwebvrrwebservice.asmx/strB2BGetVehicleByVRM?strUserName=string&strPassword=string&strClientRef=string&strClientDescription=string&strKey1=string&strVRM=string&strVersion=string HTTP/1.1
Host: www1.carwebuk.com
Returns.....
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xml
Http Post Example
POST /CarweBVRRB2Bproxy/carwebvrrwebservice.asmx/strB2BGetVehicleByVRM HTTP/1.1
Host: www1.carwebuk.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
strUserName=string&strPassword=string&strClientRef=string&strClientDescription=string&strKey1=string&strVRM=string&strVersion=string
returns
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0"?>
xml
There are also snippets for SOAP 1.1 and 1.2 Response.
So, how can I request the XML from this website, and, how can i pull back the variables from their XML tags of make model litre to get them into an SQL query to query our database.
Any help much appreciated. :D