SOAP/XML input Help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: SOAP/XML input Help (/thread-10829.html) |
SOAP/XML input Help - duguarun - Jun-08-2018 Hi, I've server which will accept only SOAP/XML requests. I want my client to send a XML request to access the server. But im unable to send the SOAP/XML request. can anyone help me on it? import socket server=socket.socket() host=socket.gethostname() port=4515 server.connect((host,port)) #variable a supposed to be a XML input a='''<?xml version='1.0' encoding='ISO-8859-1'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><LOGIN><REQTYPE>clientauth</REQTYPE><TRANID>4544541</TRANID><USERID>xxxx</USERID><PASSWORD>xxxx</PASSWORD></LOGIN></soapenv:Body></soapenv:Envelope>''' server.send(a) server.recv(1024) server.close |