472,126 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

SOAPpy - send xml data

Hi,

I'm trying to send some xml data to a WSDL server.
Here's my code:

xmldata = "<oesystem<user login=\"nekhem\" password=\"one5076\"
tpoa=\"\"<message id=\"1\"<textTest di messaggio 1 </text>
+<mobile3202181465 </mobile<dateforesend17.5.2007 12:59:53
</dateforesend</message</user</oesystem>"""
SOAPpy.WSDL.Config.namespaceStyle = '2001'
server =
SOAPpy.WSDL.Proxy('https://www.oesystem.net/services/oeservice.asmx?WSDL')
print server.insertMessages(xmlRequest=xmldata)

parsing the output I've got two problems, about the <xmlRequesttag,
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

May 23 '07 #1
0 1440

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Harry George | last post: by
reply views Thread by elsarfhem | last post: by
reply views Thread by giblfiz | last post: by
reply views Thread by benboals | last post: by
1 post views Thread by m.banaouas | last post: by
reply views Thread by marcello.lussana | last post: by
reply views Thread by linuxprog | last post: by
reply views Thread by pion | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.