Arreglado:
soapenv = ET.Element("soapenv:Envelope",
attrib={"xmlns:soapenv": "
http://schemas.xmlsoap.org/soap/envelope/";,
"xmlns:xsi": "
http://www.w3.org/2001/XMLSchema-instance";,
"xmlns:xsd"
Os acabo de mentir jejejejejej
Esa es la parte que me funciona :-D
Esta es la que no se como hacer:
http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ser="urn:
websms.domain.es/api_php/server
Hola a todos,
tengo que crear un XML para mandarlo a un servicio SOAP.
Me gustarĂa saber como hacer estos elementos del XML con cElementTree .
He intentado esto pero no sirve :P
cElementTree.SubElement(body, "user", attrib={'xsi:type':
'xsd:string'}).text = "USER"
Un Saludo.