From: Surya K. <kas...@gm...> - 2013-06-21 09:18:37
|
In our webservice on Server (apache axis2) We have taken an object public class MyObjUpdate { private double val1; private double val2; } and the webservice is like this public String updateMyObj(MyObjUpdate getMyObj) throws Exception { .... return "ok"; } On Python client side (ZSI-2.1-a1), how to pass the variables.. I am using wsdl2py -lb wsdlurl (script) loc = WebServiceLocator() port = loc.getWebServiceHttpSoap11Endpoint(tracefile=sys.stdout) msg = updateMyObjRequest() print dir(msg) I can see the obj parameter GetMyObj but I don't know how to pass values to it. I tried to pass JSON, pickle objects but its not working. I tried to do this way msg = ns1.updateMyObj_Def() msg.pyclass.val1 =1 msg.pyclass.val2 =1 but I need to pass a variable pname to constructor and I don't know what is it.. Can anyone help me on it? Thanks |