M
marcello.lussana
Hi,
I'm trying to send some xml data to a WSDL server.
Here's my code:
xmldata = "<oesystem> <user login=\"xxx\" password=\"xxxx\"
tpoa=\"\"> <message id=\"1\"> <text> Test di messaggio 1 </text>
+<mobile> 222222222 </mobile> <dateforesend> 17.5.2007 12:59:53
</dateforesend> </message> </user> </oesystem>"""
SOAPpy.WSDL.Config.namespaceStyle = '2001'
server =
SOAPpy.WSDL.Proxy('https://www.mywdslserver.com/foo.asp?WSDL')
print server.insertMessages(xmlRequest=xmldata)
parsing the output I've got two problems, about the <xmlRequest> tag,
that is the tag that contains my xml data:
- soappy escape xmlRequest tag, in my output I've got _xFFFF_xmlRequest
as xml is _xFFFF_
- I didn't find a way to specify the type of the data that I send to
my WSDL server => <_xFFFF_xmlRequest xsi3:type="xsd3:string">
In other words, I'd like to include my xmldata into a simple
<xmlRequest "xsd3:xml"></xmlRequest>
and I don't know how to do it with SOAPpy library.
thank you
I'm trying to send some xml data to a WSDL server.
Here's my code:
xmldata = "<oesystem> <user login=\"xxx\" password=\"xxxx\"
tpoa=\"\"> <message id=\"1\"> <text> Test di messaggio 1 </text>
+<mobile> 222222222 </mobile> <dateforesend> 17.5.2007 12:59:53
</dateforesend> </message> </user> </oesystem>"""
SOAPpy.WSDL.Config.namespaceStyle = '2001'
server =
SOAPpy.WSDL.Proxy('https://www.mywdslserver.com/foo.asp?WSDL')
print server.insertMessages(xmlRequest=xmldata)
parsing the output I've got two problems, about the <xmlRequest> tag,
that is the tag that contains my xml data:
- soappy escape xmlRequest tag, in my output I've got _xFFFF_xmlRequest
as xml is _xFFFF_
- I didn't find a way to specify the type of the data that I send to
my WSDL server => <_xFFFF_xmlRequest xsi3:type="xsd3:string">
In other words, I'd like to include my xmldata into a simple
<xmlRequest "xsd3:xml"></xmlRequest>
and I don't know how to do it with SOAPpy library.
thank you