[Fedora-suds-list] how can i send a para like "MAP"
MoistRot liu
moistrot at gmail.com
Tue Dec 14 09:08:36 UTC 2010
hi all..
i called on the local client method like this: addmember(*param*),
*param*is a dict argument. View xml sent to the following:
<ns0:Body xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/">
<ns3:addMember>
<data xsi:type="ns2:Array">
<account xsi:type="ns1:string">
username</account>
<password xsi:type="ns1:string">123456</password>
<account_name xsi:type="ns1:string">user</account_name>
</data>
</ns3:addMember>
</ns0:Body>
but The server needs to accept this:
<data xsi:type="ns2:Map">
<item>
<key xsi:type="xsd:string">account</key>
<value xsi:type="xsd:string">username</value>
</item>
<item>
<key xsi:type="xsd:string">password</key>
<value xsi:type="xsd:string">123123</value>
</item>
<item>
<key xsi:type="xsd:string">account_name</key>
<value xsi:type="xsd:string">user</value>
</item>
</data>
the server needs to accept is another format. Should be how to conversion??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/suds/attachments/20101214/09a8c584/attachment.html
More information about the suds
mailing list