モバイルドリームネットワークWAPのインターフェイスを行う必要があります。次に、ASPバージョンがあります。
以下は参照コンテンツです。 request.asp dim https https = server.createobject(msxml2.xmlhttp)を設定します 'xmlhttpをオブジェクトに定義します https.open post、http://127.0.0.1/testpost/response.asp、false https.send <?xmlバージョン= 1.0?> <misc_commandバージョン <command_data_block> <sid> 123456 </sign> <service_id> 987654 </service_id> <sp_id> 11111 </sp_id> <sp_password> 22222 </sp_password> </commit_data_block> </misc_command> https.readystate = 4の場合 Response.writeは正常に送信されました 'Readstateは4つに成功し、もちろん遅れています DIM OBJSTREAM objstream = server.createobject(adodb.stream)を設定します 「ストリームは直接読み取られているために直接書かれているので、あなたはそれに対処する必要があるので、ストリームを定義します。 objstream.type = 1 objstream.mode = 3 objstream.open objstream.write https.responsebody objstream.position = 0 objstream.type = 2 objstream.charset = gb2312 html = objstream.readtext 「コードを回して、これらのオブジェクトを閉じるためにHTMLに入れてください objstream.close objstream = Nothingを設定します https = Nothingを設定します ifを終了します Response.Write HTML Response.asp 'domdocumentオブジェクトを作成します xml = server.createobject(msxml2.document)を設定します xml.async = false '投稿データを読み込みます xml.load request xml.parseerror.errorcode <> 0の場合 Response.writeはデータと説明を正しく受信できません:&xml.parseerror.Reason&<br> line ifを終了します blogchild = xml.getelementsbytagname(misc_command)を設定します 'the_text = blogchild.item(0).childnodes(1).text 'the_text = blogchild.item(0).text 'I = 0の場合はBlogChild.Length-1に respons.write the_text |
この方法を使用すると、ASPでサービスまたはWebサービスを簡単に呼び出すことができます!