MSXML2.HTTP

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?

View Replies


ADVERTISEMENT

Error ASp .NET WEb Service : URL:'http://localhost/WebService1. HTTP/1.1 302 Found"

i'm using windows XP, IIS 5.1, Visual .NET 2003 and SQL Server 2000.

When I open New Project - Visual C# Projects - ASP .NET Web Service -

Location : http://localhost/WebService1

After that i click OK, then it returns error

"The web server reported the following error when

attempting to create or open the web project

located at the following

URL:'http://localhost/WebService1. HTTP/1.1 302 Found"

After that i try this : Code:

View Replies View Related

Msxml2

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?

View Replies View Related

MSXML2.XMLHTTP

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?

View Replies View Related

How To Use MSXML2.DOMDocument In ASP?

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.

View Replies View Related

MSXML2.ServerXMLHTTP

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

View Replies View Related

XML In ASP Wtih Msxml2.DOMDocument

Anyone having trouble 'Load'ing xml files with 'Msxml2.DOMDocument' in ASP?
The Server is IIS 5.1 and client is PocketPC2002 (Pocket IE). Code:

View Replies View Related

MSXML2.ServerXMLHTTP Not Giving Url

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).

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<%
geturl ="http://schoolbonus.com/partner.asp?mpid=460"

dim objXML,displayText

Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
objXML.open "GET", geturl, False

objXML.send
displayText = objXML.responSetext
%>
<pre><%= Server.HTMLEncode(displayText) %></pre>
**************************************************

<%= displayText%>

View Replies View Related

MSXML2.ServerXMLHTTP Question

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

Code:
Set getPage = Server.CreateObject("MSXML2.ServerXMLHTTP")
getPage.Open "HEAD", URL, false , username , password

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?

View Replies View Related

MSXML2.ServerXMLHTTP And Sessions

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?

View Replies View Related

MSXML2.ServerXMLHTTP.3.0 Proxy Server

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?

View Replies View Related

MSXML2.ServerXMLHTTP Works Only With Text Files?

I'm trying to remotely get a pdf file - http://remoteServer/file.pdf - in order to store it into another server, maybe with Scripting.FileSystemObject

However the following code doesn't work properly:

------------
url = "http://remoteServer/file.pdf"
set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
------------

as xmlhttp.responseText does not contain the whole file textStream, but only a part of it.

View Replies View Related

Sending A Parameter To Webservice With MSXML2.ServerXMLHTTP?

How do I send an input-param to my web service with MSXML2.ServerXMLHTTP? Can this be done without the soap-toolkit? Code:

View Replies View Related

Msxml2.XMLHTTP Takes Too Long To Upload File

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?

Here's the code ...

View Replies View Related

MSXML2.ServerXMLHTTP Returning Status 500 When Accessing Webservice

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?

View Replies View Related

MSXML2.XMLHTTP.3.0 Error :: The System Cannot Locate The Resource Specified

I am running the following code and I get an error:

Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.3.0")
xmlHttp.Open "Get", URLToRSS, false
xmlHttp.Send
RSSXML = xmlHttp.ResponseText

The error is:

msxml3.dll error '800c0005'
The system cannot locate the resource specified.

It points to the "xmlHttp.Send" statement.

This code runs perfectly on my old ISP's server but not on my GoDaddy server.

View Replies View Related

Call Localy MSXML2.ServerXMLHTTP Returning Status 500 When Accessing Webservice

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? ....

View Replies View Related

Access Web Server MSXML2.ServerXMLHTTP Returning Status 500 When Accessing Webservice

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:

View Replies View Related

HTTP 405

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">

but when it calls that page ie5 shows error

HTTP 405 - Resource not allowed
Internet Explorer

what is the problem

View Replies View Related

XML HTTP + ASP

I'm using XML HTTP in an ASP to import HTML content for clients from
their existing web pages. But for some reason, the tabs are now ?'s

What can I do to handle this?

View Replies View Related

Http://

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:/

View Replies View Related

HTTP 403.9

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.

View Replies View Related

HTTP 500.100

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

View Replies View Related

HTTP 500.100

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

View Replies View Related

HTTP

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

View Replies View Related

Http:500

I cannot open any asp pages on my server. I get a http:500 internal server error. Html pages open fine, but any asp pages produce this error.

View Replies View Related

HTTP 405

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">

but when it calls that page ie5 shows error

HTTP 405 - Resource not allowed
Internet Explorer

what is the problem.

View Replies View Related

HTTP 404

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?

View Replies View Related

ASP HTTP/1.1 Problems

We have written a small asp page to accept an HTTP request, pass the request onto an Oracle database for processing and then return the results.

This works find when we call it using HTTP/1.0 but if we use HTTP/1.1 or above it doesn't work. Here's the code:

View Replies View Related

HTTP Upload

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?

View Replies View Related

HTTP Error 500

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.

View Replies View Related

Check For Http?

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.

View Replies View Related

HTTP Server

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.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved