|
INTERVIEW QUESTIONS
MICROSOFT
ASP
DETAILS
Question: I'm not that great with ASP , But I am trying to send The request through HTTP post as a value of a parameter called Request. Here the sample :
xmlString = “Request=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><VerificationRequest>< ID>XYZ</ID><Key>jhutry</Key><UID>6276109478228235</UID ></VerificationRequest>”
I Used Msxml2.ServerXMLHTTP.6.0 Method but I got the error “Invalid at the top level of the document” . When I omit the Parameter Request from xmlString, it’s worked But I need to send this Parameter through HTTP post for get the right answer.
Can someone Help me how can I make it done. This is the code that I used ,
Set SendDoc = server.createobject("Microsoft.XMLDOM") SendDoc.ValidateOnParse= True SendDoc.LoadXML(xmlString) url = https://www.my test site.com/checkID Set poster = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
poster.open "POST", url, false poster.setRequestHeader "CONTENT_TYPE", "text/xml" poster.send SendDoc
Set docReceived = server.createobject("Microsoft.XMLDOM") docReceived.ValidateOnParse= True docReceived.LoadXML(poster.responseTEXT)
Thanks, Shahriar
Answer: No answer available currently.
|
|
|
Category |
ASP Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8729 users |
Added on |
4/28/2015 |
Views |
70505 |
Rate it! |
|
|
Question:
I'm not that great with ASP , But I am trying to send The request through HTTP post as a value of a parameter called Request. Here the sample :
xmlString = “Request=<?xml version="1.0" encoding="UTF-8" standalone="yes"?><VerificationRequest>< ID>XYZ</ID><Key>jhutry</Key><UID>6276109478228235</UID ></VerificationRequest>”
I Used Msxml2.ServerXMLHTTP.6.0 Method but I got the error “Invalid at the top level of the document” . When I omit the Parameter Request from xmlString, it’s worked But I need to send this Parameter through HTTP post for get the right answer.
Can someone Help me how can I make it done. This is the code that I used ,
Set SendDoc = server.createobject("Microsoft.XMLDOM") SendDoc.ValidateOnParse= True SendDoc.LoadXML(xmlString) url = https://www.my test site.com/checkID Set poster = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
poster.open "POST", url, false poster.setRequestHeader "CONTENT_TYPE", "text/xml" poster.send SendDoc
Set docReceived = server.createobject("Microsoft.XMLDOM") docReceived.ValidateOnParse= True docReceived.LoadXML(poster.responseTEXT)
Thanks, Shahriar
Answer:
No answer available currently. Be the first one to reply to this question by submitting your answer from the form below.
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Which is the default Data types in VBScript?
|
View Answer
|
|
When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
|
View Answer
|
|
What is a class in CSS?
|
View Answer
|
|
How do you get the value of a combo box in Javascript?
|
View Answer
|
|
What is string concatenation function in VBScript?
|
View Answer
|
|
What variable can you use to share info across the whole application for one user?
|
View Answer
|
|
How can you have different number of cells for each row of a table in HTML?
|
View Answer
|
|
How do you write an SQL insert statement?
|
View Answer
|
|
Why do we use Option Explicit?
|
View Answer
|
|
Explain the difference between POST and GET Method.
|
View Answer
|
|
What are the collections of Application Object?
|
View Answer
|
|
What are the tags necessary to be present within the <FORM > tag?
|
View Answer
|
|
What are the tags necessary to be present within the <FORM > tag?
|
View Answer
|
|
What are the tasks performed by < FORM > tags?
|
View Answer
|
|
Name some of the ASP components?
|
View Answer
|
|
What are the event handlers of Application Object?
|
View Answer
|
|
What is the difference between ASP and HTML? Or Why ASP is better than HTML?
|
View Answer
|
|
What are the collections of Session Object?
|
View Answer
|
|
What are the properties used to control the expiration of the page?
|
View Answer
|
|
What are the methods by which output stream is controlled?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All ASP Interview Questions & Answers - Exam Mode /
Learning Mode
|