liycheng_55020
Jun 11, 2012Nimbostratus
python codfe, always getting <Fault SOAP-ENV:Server: Could not find element by name: user_names>
Code as below:
!/usr/bin/env python
import sys
from SOAPpy import WSDL
wsdl = "/home/liycheng/F5/Management.UserManagement.wsdl.xml"
proxy = WSDL.Proxy(wsdl)
proxy.get_version()
proxy.get_fullname('root')
'BIG-IP_v10.2.2''BIG-IP_v10.2.2'
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.6/site-packages/SOAPpy/Client.py", line 453, in __call__
return self.__r_call(*args, **kw)
File "/usr/lib/python2.6/site-packages/SOAPpy/Client.py", line 475, in __r_call
self.__hd, self.__ma)
File "/usr/lib/python2.6/site-packages/SOAPpy/Client.py", line 389, in __call
raise p
SOAPpy.Types.faultType:
Could not find element by name: user_names>
seems like every method which has any inparams will have the same problem,
they will never find the element which is provided by the string type parameter value.
How can I fix this?