Re: [Python-es] XML para servicio SOAP

2016-01-26 Por tema Quique Porta
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"

Re: [Python-es] XML para servicio SOAP

2016-01-26 Por tema Quique Porta
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

[Python-es] XML para servicio SOAP

2016-01-26 Por tema Quique Porta
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.