NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Edwin Hannan on May 10, 2016, 09:18:06 AM
-
Hi All
This is the ongoing issue with a 3rd party having an issue posting xml from thier classic asp page
I have attached a txt file (6 kb) comparing logs for my successful post (from soapUI) and their unsuccessful post
Will someone with more knowledge on this please take a look and perhaps suggest what may be going on with the 3rd party post?
Many thanks
Edwin
Windows 10 pro, C10 EE, NT 9.06
-
Hi All
Any advice at all on the log files I uploaded last week?
Many thanks
Edwin
-
Hi All
I have managed (with the help of some friends, on this news group and elsewhere) to connect to my web service using classic ASP, for those interested here is the content of the asp file (targeting a local NT web server)
Many thanks
Ed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body><%'XML Post
set xmldom2 = server.CreateObject("MSXML2.DOMDocument.6.0")
Set xmlhttp2 = Server.CreateObject("MSXML2.ServerXMLHTTP.6.0")
const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056
xmlhttp2.setOption 2, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
const SoapServer = "https://127.0.0.1:883/dbCentral"
ayear= request("Year")
amonth= request("Month")
aday= request("day")
outxml = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:dat='Database'><soapenv:Header/><soapenv:Body><dat:dbCentral><CentralLeads_list><CentralLeads><CEN_SOURCEDATE></CEN_SOURCEDATE> <CEN_SOURCE>SJWEBTEST</CEN_SOURCE> <CEN_SOURCENAME>SoapUI Ed Test</CEN_SOURCENAME> <CEN_SOURCEID>123456789</CEN_SOURCEID> <CEN_DATAINPUT>FCFweb</CEN_DATAINPUT> <CEN_TITLE1>Mr</CEN_TITLE1> <CEN_FIRSTNAMES1>Geoffrey</CEN_FIRSTNAMES1> <CEN_SURNAME1>Morris TEST</CEN_SURNAME1> <CEN_DOB1></CEN_DOB1> <CEN_AGE1>27</CEN_AGE1> <CEN_ADDRESS1>25 Test Street</CEN_ADDRESS1> <CEN_ADDRESS2>Local Area</CEN_ADDRESS2> <CEN_ADDRESS3>Some Town</CEN_ADDRESS3> <CEN_ADDRESS4>Test Shire</CEN_ADDRESS4> <CEN_POSTCODE>TT1 1TT</CEN_POSTCODE> <CEN_RESIATCURR>5</CEN_RESIATCURR> <CEN_HOMETEL>01256789012</CEN_HOMETEL> <CEN_WORKTEL></CEN_WORKTEL> <CEN_MOBILE>01234567890</CEN_MOBILE> <CEN_STATUS>LIVE</CEN_STATUS> <CEN_EPV>195000</CEN_EPV> <CEN_MORTBAL>100000</CEN_MORTBAL> <CEN_LOANAMOUNT>150000</CEN_LOANAMOUNT> <CEN_INCOME1>35000</CEN_INCOME1> <CEN_ARREARS>0</CEN_ARREARS> <CEN_CCJS>0</CEN_CCJS> <CEN_LOANTERM>20</CEN_LOANTERM> <CEN_RESSTATUS>Home Owner</CEN_RESSTATUS> <CEN_ADVERSENOTES>value</CEN_ADVERSENOTES> </CentralLeads> </CentralLeads_list> <dat:central_Action>insert</dat:central_Action> </dat:dbCentral> </soapenv:Body></soapenv:Envelope>"
xmlhttp2.open "POST", SoapServer, false
xmlhttp2.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
xmlhttp2.setRequestHeader "SOAPAction", "http://127.0.0.1:883/dbCentral"
xmlhttp2.send(outxml)
xmlstatus = xmlhttp2.status
response.write(xmlhttp2.status)
response.write(xmlhttp2.responsetext)
sendUrl="http://schemas.microsoft.com/cdo/configuration/sendusing"
smtpUrl="http://schemas.microsoft.com/cdo/configuration/smtpserver"
%>
</body>
</html>