Hello techExtreme
Thanks for your advise, I am trying to write simple vb.net code snippet to recieve, parse and send response, I wonder if you can please help me in this?
I recieve despatchnotification.xml file from the client, i have to parse it extract "businessid" node value and do some DB insert .... and finally sends a response back...
i have added bott the files in .txt extrensions please rename them to .xml
I think I can use the following for response.....
==========
Dim Url As String = "http://localhost:1033/Def
Dim Request As HttpWebRequest = System.Net.WebRequest.Crea
Request.Method = "POST"
Request.ContentType = "text/xml"
Using OWriter As New System.IO.StreamWriter(Req
OWriter.WriteLine("<request
End Using
Using Response = Request.GetResponse()
Dim IText As String
Using IReader As New System.IO.StreamReader(Res
IText = IReader.ReadToEnd()
End Using
End Using
-=========================
using the attached funcitons if we can use, please can you advise how i can go about writing the code?
thank you
PS: if you want me to open a new question please do let me know ....
Main Topics
Browse All Topics





by: techExtremePosted on 2009-10-19 at 10:07:15ID: 25606970
Ya, just ask them to post the xml to one of your page.
For example your page is getClientXml.aspx
Now they using their website, create a xml and post it to your page
On your page, when the code runs, it gets the file in response and reads it based on the xml schema that you already have agreed upon and process the result accordingly.
This is the easiest way and you can make it more secure and as complicated as you need.
Hope it helped.