web services - How to pass anyType arguments in Python Suds? -
i have soap function definition (provided suds):
getpaths(xs:anytype[] accessions, xs:string clienttype, )
in wsdl, inputs this:
<xs:complextype name="getpaths"> <xs:sequence> <xs:element name="accessions" type="xs:anytype" minoccurs="0" maxoccurs="unbounded"/> <xs:element name="clienttype" type="xs:string" minoccurs="0"/> </xs:sequence> </xs:complextype>
i tried call in python program:
result = client.service.getpaths([“string1”, “string2”], "string3")
get fault:
suds.webfault: server raised fault: 'com.xyz.someexception: java.lang.classcastexception: org.apache.xerces.dom.elementnsimpl cannot cast java.lang.string'
i think not provide data anytype incorrectly. cannot find documentation or information web on how specify anytype data. assuming can pass types. server side working fine cause there happy java clients.
thanks in advance.
Comments
Post a Comment