I am almost certain that I could use HTTP Post/Get to submit XML Web Service call (over SSL as well, if using Version 3 of MSXML2) from an ASP Application?
However, would I only be able to call web-service in a an asynchronous mode (with a callback function)? If so, how?
I use "Msxml2.XMLHTTP" in a asp page, to save changes of database in a html file. All worked well until I installed a new email server (ipswitch imail). Now this object don't work remotly, fire the error:
/////////////////////////////// msxml3.dll error '80072efd' A connection with the server could not be established //////////////////////////////
I check the page in a local session in the server and works well, but not in remote pc. What is happening?
I use MSXML2.XMLHTTP to receive some HHTP responces from remote server, unfortunatedly, it uses cookie-based auth., so I am unable to pass it, due to inability to store cookies. How can I retrieve cookies from the headers of HTTP response, and how can I add them to my request at the next step?
I need to use MSXML2.DOMDocument in my ASP page. The following is my code:
xml.asp: ===== <% dim sx sx="<root><a>text1</a><b>text2</b></root>" dim xd set xd=Server.CreateObject("MSXML2.DOMDocument") xd.loadXML(sx) Response.write xd.hasChildNodes %>
Somehow, xd.hasChildNodes return False, i.e. there is nothing in the xd. I guess the error was caused by missing the path of the MSXML2 library file. It seems like the code doesn't know where the MSXML2.DOMDocument is. But the code didn't generate any error.
this code works with msxml4, but found out the server it ultimately will sit on only has ver 3 and they won't update. so, this code fails on the bold line and i can't figure out why.
Code: Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP" ) Set myXmlDoc = Server.CreateObject("MSXML2.DOMDocument" ) httpReq.Open "post", webServiceUrl, False httpReq.setRequestHeader "Content-Type", "text/xml" httpReq.setRequestHeader "SOAPAction", "soapserver/soap:CreatePreview#CreateGraphics" httpReq.Send soapEnv 'fails here returnSoapEnv = httpReq.responseText
I have been using the following code to access a remote url, which works fine, but if the remote "geturl" does a redirect (as the page in this code does), I have know idea what the redirected url is. Page still displays, (including the html source code), but I cannot determine what the base href is (that is, I don't know the url of the page being displayed, since is is a redirected page).
I've used MSXML2.ServerXMLHTTP in ASP to write a link checker. It checks a list of URLs stored in a db and flags any websites/webpages that are down. Since I am only interested in whether the page is up or not and not in the actual HTML, I use HEAD instead or GET.
Code:
Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP") getPage.Open "HEAD", URL, false where getPage is my object, URL is the URL to check and I can also do
which checks the URL using the username and password supplied. Everything works as expected but my problem lies in the fact that the password is in plaintext in the ASP page. It is not good security practice to have an ASP page contain a username/password combo in plaintext. This means that if someone had file access to the ASP page (intranet) then they could see the username/password pair which we want to try and avoid.
Does the HTTP standard only allow for username/passwords to be sent in plaintext?
I'm trying to integrate portions of a page on one domain into another domain. The goal is to use a rate calculator on the remote site to produce quotes on the main site. I have permission to do this. I'm using MSXML2.ServerXMLHTTP and it's working quite well except that I am unable to set a session cookie that seems to be required to generate a PDF on the remote site.
I've tried passing the session cookie thru MSXML2.ServerXMLHTTP, but that doesn't work. I've tried setting a cookie using ASP but it seems that PDF generation on the remote site requires the session cookie from the remote domain. I've tried setting a cookie with the domain property set to the remote site but the cookie is never written. I think this is a security feature in the Http Session State.
Is it possible to set a session cookie in MSXML2.ServerXMLHTTP with a remote host/domain? Can ASP be used to set a cookie with a domain other than the requesting domain? There seems to be a property to do this but I haven't been able to get it to work. Any other suggestions?
Consider the following simple function to get the contents of a remote URL:
Function GetURL(str_URL) Set obj_XMLHTTP = Server.CreateObject ("MSXML2.ServerXMLHTTP.3.0") obj_XMLHTTP.Open "GET", str_URL, False, "", "" obj_XMLHTTP.Send GetURL = obj_XMLHTTP.ResponseText Set obj_XMLHTTP = Nothing End Function
Is there anyway that I can use a remote proxy server to make the request?
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up?
The following shows when I call it locally. If you look at the URL that has http://localhost, this is the one I use when I call the ASP page from the same local server (self contained).
When I want to call the remote server (the one that fails) I use the other URL has http://remote.
I hope this helps..
Because the webservice is the same on both machines and I'm calling both machines the same, what would cause the remote machine to return that the Request form not recognized?
That's better than internal server error. This is what came back, which is confusing because when its called locally it comes back fine. Am I missing something? ....
I am trying to access a webservice to post some values via MSXML2.ServerXMLHttp The OS used is win2003 on both machines.
When I access the local machine (A) which has the same service the call works great. When I access the other machine (B) that is on the same subnet, I get a Status of 500. Code:
in ie 5 i m writing this below statement http://localhost/Mail/email.html
email.html page contains 3 field box username , password and name .it calls the form2email.asp page the code is that <FORM name="mailform" METHOD=POST ACTION="form2email.asp">
If someone puts a link into my form and I display it it will show:
http://http://www.abc.com as I put an additional http:// in front. So what I want is to detect is user has typed in http://, replace this and then input into DB or display.
I can use the replace function, but how would I check if first 7 characters are http:/
I uninstall IIS and install it back again, will it solve the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services" problem? I am running on Windows XP and using IIS 5.1 . I got this problem when I created a search page in Frontpage but I have deleted it when I found out I have this problem. I have disable HTTP Keep Alives in the IIS properties but I still cant resolve the problem.
When i try to post message or try to open a new account server gives this error : How can solve this problem
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only. /Start/Forum/register_new_user.asp, line 193
I am getting the following error when trying to run an SQL insert in my ASP page and I cannot find anything in TechNet that references this error.
Below are IIS messages:
HTTP 500.100 - Internal Server Error - ASP error Internet Information Services Error Type: Microsoft OLE DB Provider for SQL Server (0x80040E14) Issue selected is no longer valid. Please select another issue. /ActivityTrak/maintain/activityedit.asp, line 542
It seems to me that if I can have a regular .asp page that contains multiple <input type='file'> elements, and a user could browse to individual files and fill up all the elements on the page, that there should be a way to replicate the HTTP post data. Can I somehow make my client-side activeX component post the same type of data?
I tried using MS Stress Tool to view the post data being sent from a regular.asp page that contained several <input type='file'> elements.I saw that there was a structure to it. The structure contained the binary data of the files I had selected for upload. But, I have not been able to figure out how I would replicate this structure in my client-side activeX component
I have certain ASP pages that are wel tested and working in many places. But there is one server (window 2000) on which some of the asp pages do not work. I get a HTTP 404 fil not found error. I checked more than a few times and made sure the file are there on the server where the IIS application is looking at.
some of the ASP pages are working fine. Only those ASP pages whose name starting with 'ETC' is not working. If I chang the name of the same ASP to some thing other than "ETC" it works fine. Do you think there is some software on the sever that tells IIS t block requests coming from any ASP pages starting with the name 'ETC'. what is going on?
I'm having problems with timeouts on HTTP uploads. I set the session timeout property to zero, but it still didn't work. Is there a way to set the timeout to never expire?
Window XP PRO, Access 2000, FR2002, FP2002 ext. I have 3 webs with database, two work fine, the other gives this error.
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot open the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view its data.
I had to reinstall Window and published all the web site from ISP were they work fine. They worked fine before the crash.
I have a form that a user submits their clan's website, and roster page. What I want to do, is check to see if the field submitted contained "http://" and if not, add it to the field submission.
I know i can make this easier, and put the http:// in the field as a default value, but i want to know how to do this with a bit of form validation or something.
I have free web-based email.Is there any way I can create an http server? For example, like hotmail does for outlook express? If so, how? Hotmails HTTP server is at http://services.msn.com/svcs/hotmail/httpmail.asp.