We need to create XML parsing. Company XYZ has developed a program for us to use. We are supposed to have replicated sites and Company XYZ controls the backend database. We have to create something to get their data. We have to program a code to pull the url to get a repid(user id) from the rename(user name), and the repid has to imported into the website so that the repid can be associated to an iframe and edi.asp calls.
myname has to be pulled from the url, get the associated repid, then associate a name, email, order data, and such with it. After the data is pulled in storage, we needto hold it storage and use it later that session in an iframe or page to associate repid with sales, signups, and pull contact info into a page.
The edi.asp link points to XML data. We need to extract that that based on repid and display it into a webpage and associate sales to distributor that sent them to the site.
Sample url we have to extract xml data from. http://shop.mywebsite.com/EDI.asp?companyid=111&apikey=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa&type=countries
(numbers have been changed for security)
here is a sample code they sent us:
VBScript as your scripting language: Can this be translated from asp to PHP in order to use on a linux server to get the xml data from a sql database using asp.net?
VBScript as your scripting language:
DataToSend = "companyid=111&apikey=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&type=reps&sitename=" & RepURL
servername = cstr(request.ServerVariables("Server_Name"))
postUrl = "http://subdomain.mywebsite.com/EDI.asp"
'Set url to send request to including web service name.
postUrl = postUrl
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
'Prepare request header.
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
If cstr(xmlhttp.Status) = "200" then
'Success, parse result
fcnGetXML = xmlhttp.responseText
'failure handle failure
fcnGetXML = "0"