|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[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.
Your Input Matters 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! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
this is my asp page code
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<html>
<head>
<title>Calling a webservice from classic ASP</title>
</head>
<body>
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
Dim xmlhttp
Dim DataToSend
dim objDoc
dim xmlstring
DataToSend="val1="&Request.Form("text1")&"&val2="&Request.Form("text2")
Dim postUrl
If Request.Form.Item("Operation")="Sum" Then
postUrl = "http://www.test.clipcustomerportal.com/MailingListService.asmx/Sum"
elseIf Request.Form.Item("Operation")="Subtraction" Then
postUrl = "http://www.test.clipcustomerportal.com/MailingListService.asmx/Subtract"
elseIf Request.Form.Item("Operation")="MailingListOID" Then
DataToSend = "mailingListOID="&Request.Form("text3")
postUrl = "http://www.test.clipcustomerportal.com/MailingListService.asmx/GetMailingListFromOID"
elseIf Request.Form.Item("Operation")="MailingListStringOID" Then
DataToSend = "mailingListOID="&Request.Form("text3")
postUrl = "http://www.test.clipcustomerportal.com/MailingListService.asmx/GetMailingListStringFromOID"
end if
Set xmlhttp = server.Createobject("MSXML2.XMLHTTP")
xmlhttp.Open "POST",postUrl,false
xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Response.Write DataToSend & "<br>"
xmlstring = xmlhttp.responseText
Response.Write(xmlstring)
Else
Response.Write "Loading for first Time"
End If
%>
<FORM method=POST name="form1" ID="Form1">
Enter the two Values to perform Operation<BR>
<select name="Operation">Select Operation<option value="Sum">Sum</option>
<option value="Subtraction">Subtraction</option>
<option value="MailingListOID">MailingListOIDFunction</option>
<option value="MailingListStringOID">MailingListOIDStringFunction</option></select>
<INPUT type="text" name="text1" ID="Text1">
<INPUT type="text" name="text2" ID="Text2">
<BR><BR>
Enter MailingOID
<INPUT type="text" name="text3" ID="Text3" value="11280">
<BR><BR>
<INPUT type="submit" value="GO" name="submit1" ID="Submit1">
</form>
</body>
</html>
|
Advertisement
| Hall of Fame |