python equivalent of VB code sample
bruno at modulix
onurb at xiludom.gro
Fri Apr 21 08:22:27 EDT 2006
mirandacascade at yahoo.com wrote:
> Situation is this:
> 1) must write application that does the following:
> a) creates an xml document, the contents of which, is a request
> transaction
> b) send xml document to destination; I am assuming that a process
> at destination side processes the request and sends back a response
> c) the application I'm writing must receive response and then
> examine contents of response
> 2) hope to write client application in python
> 3) was provided VB code sample that does steps 1a, 1b and 1c; the
> sample code is:
>
> ' <section of code that builds the string sXML; the contents of which
> is a request transaction>
> set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
> 'Bank table image address field, location of Comm Admin.
> sServer = Session("ImageAddress")
> 'NT AUTH
> ' note: I believe the next 2 lines in this post are really one line in
> VB code that wrapped
> ' because they didn't fit on one line in the post
> objXML.open
> "POST",sServer,false,Session("WebServerUserAuth"),Session("WebServerPassword")
> objXML.send sXML
> sXMLRs = objXML.responseText
>
This code is dealing with XMLHTTP request.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list