asp-classic

SOAP Request in Classic ASP

空扰寡人 提交于 2019-12-25 02:47:07
问题 I have the following simple Soap request code. (using classic ASP) I've read many tutorials on consuming SOAP feeds in classic ASP, but none of them seem to work at all. I try the following code: soapEnvelope = _ "<soapenv:Envelope xmlns:soapenv=""http://schemas.xmlsoap.org/soap/envelope/""" &_ "xmlns:etp=""https://test.mpay24.com/soap/etp/1.5/ETP.wsdl"">" &_ "<soapenv:Header/>" &_ " <soapenv:Body>" &_ " <etp:SelectPayment>" &_ " <merchantID>XXXXXX</merchantID>" &_ " <mdxi>" &_ " <Order>" &_

How to Send and Receive XML request to another ASP classic page?

老子叫甜甜 提交于 2019-12-25 02:44:43
问题 I want to send an XML to another Asp Classic page on the same domain. i am using following code for sending XMl url = "http://localhost/api/xmlget.asp" information = "<Send><UserName>Colt</UserName><PassWord>Taylor</PassWord><Data>100</Data></Send>" Set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP") xmlhttp.Open "POST", url, false xmlhttp.setRequestHeader "Content-Type", "text/xml" xmlhttp.send information And i have setup xmlget.asp with following code to receive XML: Dim xmlDoc Dim

Passing Connectionstring as parameter in SSRS through URL

拜拜、爱过 提交于 2019-12-25 02:37:30
问题 I am working on an application using Classic ASP and SQL Server 2008 R2. We are using SSRS for the reports. Now the datasource changes depending on the user. I have been using a parameter for the connectionstring. It is working fine but the problem is the connectionstring shows in the URL. Is there a way to hide it? Or is there a better way. Please Help. 回答1: Yes - change the method on your form to POST and use the Request.Form syntax instead of Request.QueryString : <form id="myForm" method=

iis7, classic asp; type mismatch error

亡梦爱人 提交于 2019-12-25 02:15:55
问题 I've setup a local server on Windows 7 with IIS 7, for a classic ASP VBS site I'm working on. A page gives me a "type mismatch" error. This doesn't happen with the original server (Windows 2008, IIS 7) related code: if myRS("age") = 10 then The field value is an empty string, checked with a debugger, also the error states 'string' The ASP file, database & the data are exact copies of the production site No error resuming in both the public and the local sites. The production server is MS-SQL

Outlook doesn't recognise ical attachment

放肆的年华 提交于 2019-12-25 02:07:35
问题 I have to send calendar invites from a classic ASP application to be received into Outlook. Using various different email components (ASPEmail, ASPMail, JMail) I have sent mails with attachments but when they are received, Outlook doesn't recognise the attachment as a calendar invite, whereas GMail does. In JMail I can set the content-type of the attachment to text/calendar but this makes no difference. The invite has been tested here and it validates fine. I am open to any solutions to this

Is it possible to load a XSL stylesheet from a remote server in ASP classic

妖精的绣舞 提交于 2019-12-25 01:49:49
问题 I do not have disk access on the server so I need to load a XSL stylesheet from a remote location. Instead of this... set xsl = Server.CreateObject("MSXML2.DOMDocument") xsl.async = false xsl.load(Server.MapPath("xsl.xsl")) Is something like this possible to load a XSL stylesheet? xsl.Open "get", "http://www.example.com/xsl.xsl" , False xsl.Send If above is not possible can the stylesheet be put internally in the ASP file. If so, how is that accomplished? UPDATE - Full code Dim xml, xsl, url,

Localhost not loading in any browser

◇◆丶佛笑我妖孽 提交于 2019-12-25 01:34:43
问题 I have asked a similar question before here I sort of fixed it but im still facing a similar issue. Every time I try to load localhost, port 8095, I receive this error message in Google Chrome: Google Chrome's connection attempt to localhost was rejected. The website may be down, or your network may not be properly configured. If there is a way to fix it, please tell me, If not, please could someone inform me how to reset IIS to its original settings. Or if I can reset Windows Features so I

Update SQL Server: with html-input within a While Loop - asp classic

放肆的年华 提交于 2019-12-25 01:32:21
问题 Apologies about the language, I'm maintaining a legacy system which is all in ASP Classic. I have a html page which has content generated from my SQL Server via ASP <form method="POST"> <div class="container"> <table id="table" class="table"> <thead class="thead-dark"> <tr> <th scope="col" data-field="article">Article</th> <th scope="col" data-field="item">QTY/th> I then generated the content with a while loop from my dB which displays the content correctly : <% While not grs.eof %> <tr> <!-

Checking if another web server is listening from asp

雨燕双飞 提交于 2019-12-25 00:11:36
问题 I'm using Microsoft.XMLHTTP to get some information from another server from an old ASP/VBScript site. But that other server is restarted fairly often, so I want to check that it's up and running before trying to pull information from it (or avoid my page from giving an HTTP 500 by detecting the problem some other way). How can I do this with ASP? 回答1: All you need to do is have the code continue on error, then post to the other server and read the status from the post. Something like this:

ASP embed image to CDO.Message email

人走茶凉 提交于 2019-12-24 22:42:33
问题 I'm using ASP classic and CDO to send email with CreateMHTMLBody method. I have couple of images in my email which some of them are static and would not change but some of them will change based on email content. Some of the mail softwares like iCloud showing the pictures as attachment even though I have them all with full path url address. I've used AddRelatedBodyPart but right now they show the images in the place that thy have to be but still they show the images in attachment as well. I