xml| data
Because you want to do some of the mobile Dream Network WAP interface, so to use this way, there will be a asp.net version, this is an ASP version, using the msxml2.xmlhttp image.
Request.asp
Dimhttps
Sethttps=server.createobject ("MSXML2.") XMLHTTP ")
' Define a XMLHTTP pair like
Https.open "POST", "http://127.0.0.1/testpost/response.asp", False
Https.send " Echo 123456 987654 11111 22222"
Ifhttps.readystate=4then
Response.Write "submitted successfully"
' ReadState read status is 4 successful, continue behind, unsuccessful, of course, there is no need to continue processing
Dimobjstream
Setobjstream=server.createobject ("ADODB.stream")
' Define a stream, because read it directly out of the garbled, so have to deal with
Objstream. Type=1
Objstream. Mode=3
Objstream. Open
Objstream. Writehttps.responsebody
Objstream. Position=0
Objstream. type=2
Objstream. charset= "GB2312"
Html=objstream. ReadText
' Turn your code, put it in the HTML, and close these pairs.
Objstream. Close
Setobjstream=nothing
Sethttps=nothing
endif
Response.writehtml
Response.asp
' Create a DOMDocument object
Setxml=server.createobject ("MSXML2.") DOMDocument ")
Xml.async=false
' Load post data
Xml. Loadrequest
Ifxml.parseerror.errorcode<>0then
Response.Write "cannot receive data correctly" & Description: "&xml.parseError.reason&" <br> Line: "&xml.parseerror.line
EndIf
Setblogchild=xml.getelementsbytagname ("Misc_command")
' The_text=blogchild.item (0). childnodes (1). Text
' The_text=blogchild.item (0). Text
' Fori=0toblogchild.length-1
Response.writethe_text
Using this method, it is easy to invoke the servlet or webservice in the ASP!