Ich muss einen Soap-Web-Service aufrufen, um Daten von meiner klassischen Asp-Seite an die Datenbank zu senden, für die der Web-Service an einem anderen Ende geschrieben wird und ich es so für es konsumieren muss den Code aber seine geben Fehler von HTML geschrieben hatte, so in dieser Abfrage meinen Code und Fehler ich stelle mirIntegration von WCF Webservice in klassischen ASP
<%
cboYear = FixString(Request.Form("cboYear"))
'For j=1 to 12
execute("EndDay = Request.Form(""Days" & 1 & """)")
execute("EndMonth = Request.Form(""Months" & 1 & """)")
execute("EndYear = Request.Form(""Years" & 1 & """)")
execute("EndTime = Request.Form(""Times" & 0 & """)")
SendDate = trim(EndDay) & "/" & EndMonth & "/" & EndYear
'Response.Write "<br>START<hr>"
Set oXmlHTTP = CreateObject("Microsoft.XMLHTTP")
oXmlHTTP.Open "POST", "https://bmwservicesuating.bmwcrinhm.in:7446/DMSI/PragmasysService.svc?wsdl",true
oXmlHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
oXmlHTTP.setRequestHeader "SOAPAction", "http://tempuri.org/Pragmasyshh/UpdateCancellationDate"
SOAPRequest = _
"<?xml version=""1.0"" encoding=""utf-8""?>" &_
"<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/"" xmlns:tem=""http://tempuri.org/"">" &_
"<soapenv:Header/>" &_
"<soapenv:Body>" &_
"<tem:UpdateCancellationDate>" &_
"<tem:IP>" &_
"<Year>" & valueyear &"</Year>" &_
" <Month>" & value & "</Month>" &_
" <CancellationDate>" & my value & "</CancellationDate>" &_
" </tem:IP>" &_
" </tem:UpdateCancellationDate>" &_
" </soapenv:Body>" &_
"</soapenv:Envelope> "&_
"</xml>"
oXmlHTTP.send SOAPRequest
Response.Write oXmlHTTP.responseText
'Response.Write "<br>END<hr>"
'Next
%>
Bitte führen, was ist falsch daran, warum ich Fehler von XML Parsing error bin immer: nicht wohlgeformt Ort: URL der Anwendung Zeilennummer 248, Spalte 26: -------------------------^
Sie brauchen nicht "" 'am Ende Ihres SOAP Envelope. – Lankymart