Im trying to develope a web service that comunicates python (client) with Java (server). Everything works fine until the client calls a method that takes parameters ( for example: setName("Joe") ). Any other method that takes no parameteres works perfect ( For example: getDate() ), even the ones that return stuff from the server.

This is the client code:

>>>import SOAPpy
>>>from SOAPpy import WSDL
>>>servidor = WSDL.Proxy("http://localhost.localdomain:6060/DVDOnlineStore")
>>>print servidor.getDVD()    <--- Fine
Alice in Wonderland
>>>print servidor.setDVD("Fight Club")  <--- Crashes here (This method is suppossed to print "Fight Club" in the server console)


This is the error that appears when calling that method:


Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "dvd.py", line 16, in ?
    print servidor.setDVD("Pernambuko")
  File "/usr/lib/python2.3/site-packages/SOAPpy/Client.py", line 470, in __call__
  File "/usr/lib/python2.3/site-packages/SOAPpy/Client.py", line 492, in __r_call
  File "/usr/lib/python2.3/site-packages/SOAPpy/Client.py", line 406, in __call

SOAPpy.Types.faultType: <Fault e:Server: Unknown element v1: <SOAPpy.Types.structType detail at -1216860916>: {'idoox-java-mapping.org.idoox.xmlrpc.MessageProcessingException': <SOAPpy.Types.structType idoox-java-mapping.org.idoox.xmlrpc.MessageProcessingException at -1216864116>: {'stack-trace': 'org.idoox.xmlrpc.MessageProcessingException: Unknown element v1\n\tat org.idoox.wasp.wsdl.SOAPMethodInfo$RequiredElements$Invocation.notNillElement(SOAPMethodInfo.java:1033)\n\tat com.systinet.wasp.server.adaptor.JavaInvoker.fillCallParamsXml(JavaInvoker.java:1162)\n\tat com.systinet.wasp.server.adaptor.JavaInvoker.beginInvoke(JavaInvoker.java:491)\n\tat com.idoox.wasp.server.adaptor.JavaAdaptorImpl.beginInvoke(JavaAdaptorImpl.java:63)\n\tat com.idoox.wasp.server.AdaptorTemplate.javaInvocation(AdaptorTemplate.java:514)\n\tat com.idoox.wasp.server.AdaptorTemplate.doDispatch(AdaptorTemplate.java:395)\n\tat com.idoox.wasp.server.Adapto! rTemplate.dispatch(AdaptorTemplate.java:328)\n\tat com.idoox.wasp.server.ServiceConnector.dispatch(ServiceConnector.java:390)\n\tat com.systinet.wasp.ServiceManagerImpl.dispatchRequest(ServiceManagerImpl.java:626)\n\tat com.systinet.wasp.ServiceManagerImpl.dispatch(ServiceManagerImpl.java:461)\n\tat com.systinet.wasp.ServiceManagerImpl$DispatcherConnHandler.handlePost(ServiceManagerImpl.java:2562)\n\tat com.idoox.transport.http.server.Jetty$WaspHttpHandler.handle(Jetty.java:97)\n\tat com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:1087)\n\tat com.mortbay.HTTP.HttpServer.service(HttpServer.java:675)\n\tat com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:457)\n\tat com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:317)\n\tat com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:99)\n\tat com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:254)\n\tat com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:607)\n\t! at java.lang.Thread.run(Thread.java:534)\n'}}>


Could anyone tell me why is this happening????
If you feel like e-mailing me, please reffer to:  [EMAIL PROTECTED]

Thank you !!!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to