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?
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