Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOAP/XML input Help
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Zeep lib, encrypt soap body miha1234 0 2,855 Sep-12-2019, 07:52 AM
Last Post: miha1234
  Parsing Soap XML response grootkarzijn 7 15,605 Jun-14-2019, 01:30 AM
Last Post: snippsat
  SOAP based webservice invoke mehrdadabedi 1 2,354 Mar-10-2019, 06:04 PM
Last Post: mlieqo
  How to retrieve and save attachments returned by SOAP web service ashwsrin 0 2,626 Feb-20-2019, 07:12 AM
Last Post: ashwsrin
  extracting data from XML/SOAP hey_arnold 4 4,793 May-07-2018, 09:23 AM
Last Post: hey_arnold
  Soap json program rahul208in 5 3,884 Jan-11-2018, 05:28 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020