Advertisement

11.12.2007 at 05:27PM PST, ID: 22956134
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.6

How do i use serverxmlhttp to send variables to file on remote server which then generates xml-file...

Asked by Witheet in Extensible Markup Language (XML), Payment Processing Recommendation and Integrating, Extensible Stylesheet Language Transformation (XSLT)

Tags: ,

Hi all,

I am using ASP for a while but never really had to use xml nore use the serverxmlhttp (component?)

I have a final checkoutpage that sends you to a payment gateway with variables taken from the form on that page ie. merchant=xxx&... This page also stores the order and orderdetails to a database.

As i understand some of the variables, that are to be send to the gateway by submitting the form, first have to be retrieved (in the background) from this payment gateway by this final checkoutpage by using serverxmlhttp (GET) to register a new payment in the gateway and make it create an xmlfile from which i then have to retrieve and parse the values and bind them to the appropiate hidden fields in the form

So now my questions are:
1. How do i use serverxmlhttp to send required variables to other webserver which then generates an xml-file... The values in this xml file need to be retrieved and parsed(?) by the same page which uses the serverxmlhttp.
2. I need it to be synchronous is this (see below for code) set right for that? Set False to true?
3. some of the variables in the url are also going to be dynamic or retrieved from previous form... How do i use them in the urlstring the right way? In the way used below it uses signs that break up the string i think?
4. How do I get the final checkout page to retrieve these values from the xml file on the remote server and then bind them to their respective hidden fields in a form (binding process/method to use and how to use syntax for formvalues) so I can then send the client to the gateway sending along the required variables in the urlstring.

Below the method I think to understand is the major part of what i need to get this process going. I found this on this site.

I am new to these regions and feel I do not give you much to work with... I hope someone out there can help me on my way understanding how to implement this because after a week of googling and trying to find the way to get this done (serverxmlhttp) this is as far as i got... I understand the principles of the idea and like it but the using it part is still very blurry...
Anyway thnx for any repsonses to my post...

With kind regards,
Bobby V

<%
Response.Buffer = True
Dim objH, tmpStr

on error resume next
' Create an xmlhttp object:
Set objH = Server.CreateObject("Msxml2.ServerXMLHTTP")
if err then
    response.write err.number & " " & err.description & " " & err.source & "<br>" & vbLF
end if
if err then
    response.write err.number & " " & err.description & " " & err.source & "<br>" & vbLF
end if
' Opens the connection to the remote server.
objH.Open "GET", "https://test.gateway.com/ps/com.gateway.paymentservice.servlets.PaymentService?merchant=xxx&merchant_password=xxx&merchant_trans_id=<%=Request.Form("TransID")%>&...", False
if err then
    response.write err.number & " " & err.description & " " & err.source & "<br>" & vbLF
end if

' Actually Sends the request and returns the data:
objH.Send
if err then
    response.write err.number & " " & err.description & " " & err.source & "<br>" & vbLF
end if

' The data from the web page is now in objH.responseText.
tmpStr = objH.responseText
if err then
    response.write err.number & " " & err.description & " " & err.source & "<br>" & vbLF
end if

response.write tmpStr

%>
Start Free Trial
[+][-]11.13.2007 at 05:05AM PST, ID: 20271121

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Extensible Markup Language (XML), Payment Processing Recommendation and Integrating, Extensible Stylesheet Language Transformation (XSLT)
Tags: send, file
Sign Up Now!
Solution Provided By: jawahar_prasad
Participating Experts: 1
Solution Grade: B
 
 
[+][-]11.13.2007 at 05:13AM PST, ID: 20271163

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.13.2007 at 06:17AM PST, ID: 20271546

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 - Hierarchy / EE_QW_2_20070628