|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Article Discussion: HTTP Tunneling Revealed: Part 2/3
HTTP Tunneling Revealed: Part 2\/3 If you have any questions or comments about this article then please post them here.
You can read the article here . |
|
#2
|
|||
|
|||
Hi!I enjoyed the article a lot but I do have a question to ask regarding the techniques discussed in the articles. I am currently working with the MS SOAP Toolkit 3.0 to use the ServerXMLHTTP object to post the SOAP message generated to a remote server from an ASP.NET page. On the remote server, the ASP.NET page would receive the SOAP message and perform some processing. This page uses the StreamReader object to read the incoming SOAP message from the Request.InputStream. This is done in the Page_Load() method of the ASP.NET page. My question is, is this compatible? I am experiencing a HTTP 500 error whenever I post the SOAP message. After some debugging, I realize that the stream does not receive anything at all. The following code snippet is from the ASP.NET page that posts the SOAP message: [vbcode] dim oXMLHttp oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP") oXMLHttp.open("POST", someURI, false) oXMLHttp.setrequestheader("Host", someHost) oXMLHttp.setrequestheader("Content-type", "text/xml; charset=utf-8") oXMLHttp.send(strXML) [/vbcode] The following code snippet is from the receipent ASP.NET: [vbcode] dim oStrmRdr as New IO.StreamReader(Request.InputStream) dim strRead as String = oStrmRdr.ReadToEnd() oStrmRdr.close() 'Save the XML dim oXMLDoc as New XmlDocument() oXMLDoc.LoadXml(strRead) oXMLDoc.Save("get.xml") [/vbcode] Any help is appreciated... Thanks in advance... |
|
#3
|
|||
|
|||
Hi!I enjoyed the article a lot but I do have a question to ask regarding the techniques discussed in the articles. I am currently working with the MS SOAP Toolkit 3.0 to use the ServerXMLHTTP object to post the SOAP message generated to a remote server from an ASP.NET page. On the remote server, the ASP.NET page would receive the SOAP message and perform some processing. This page uses the StreamReader object to read the incoming SOAP message from the Request.InputStream. This is done in the Page_Load() method of the ASP.NET page. My question is, is this compatible? I am experiencing a HTTP 500 error whenever I post the SOAP message. After some debugging, I realize that the stream does not receive anything at all. The following code snippet is from the ASP.NET page that posts the SOAP message: Code:
dim oXMLHttp
oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
oXMLHttp.open("POST", someURI, false)
oXMLHttp.setrequestheader("Host", someHost)
oXMLHttp.setrequestheader("Content-type", "text/xml; charset=utf-8")
oXMLHttp.send(strXML)
The following code snippet is from the receipent ASP.NET: Code:
dim oStrmRdr as New IO.StreamReader(Request.InputStream)
dim strRead as String = oStrmRdr.ReadToEnd()
oStrmRdr.close()
'Save the XML
dim oXMLDoc as New XmlDocument()
oXMLDoc.LoadXml(strRead)
oXMLDoc.Save("get.xml")
Any help is appreciated... Thanks in advance... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: HTTP Tunneling Revealed: Part 2/3 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|