Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7566829 By: jerzyorlowski
My source code: ''' Created on Aug 10, 2009 @author: jerzyo ''' import sys import os BASE_DIR=os.path.split(os.path.split(os.path.abspath(__file__))[0])[0] sys.path.append(BASE_DIR) from metaserver.doRemoteFast2 import runRemoteFastMethod from soaplib.wsgi_soap import SimpleWSGISoapApp from soaplib.service import soapmethod from soaplib.serializers.primitive import String, Integer, Array DAFAULT_JOB_ID='123' DEFAULT_EMAIL_ADDRESS='jer...@genesilico.pl' class HelloWorldService(SimpleWSGISoapApp): @soapmethod(String,Integer,_returns=Array(String)) def say_hello(self,name,times): results = [] for i in range(0,times): results.append('Hello, %s'%name) return results @soapmethod(String,_returns=String) def disembl(self,sequence): status='fast' method='disembl' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def pdisorder(self,sequence): status='fast' method='pdisorder' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def poodlel(self,sequence): status='fast' method='poodlel' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def iupreds(self,sequence): status='fast' method='iupreds' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def iupredl(self,sequence): status='fast' method='iupredl' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def bindndna(self,sequence): status='fast' method='bindndna' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def topcons(self,sequence): status='fast' method='topcons' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def bindnrna(self,sequence): status='fast' method='bindnrna' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result @soapmethod(String,_returns=String) def rnabindr(self,sequence): status='fast' method='rnabindr' result = runRemoteFastMethod(DAFAULT_JOB_ID, sequence, DEFAULT_EMAIL_ADDRESS, status,method) return result # remoteFastMethods : , , , , , , , if __name__=='__main__': import cherrypy print cherrypy.__version__ print BASE_DIR for i in sys.path: print i from cherrypy._cpwsgiserver import CherryPyWSGIServer # this example uses CherryPy2.2, use cherrypy.wsgiserver.CherryPyWSGIServer for CherryPy 3.0 server = CherryPyWSGIServer(('localhost',7789),HelloWorldService()) try: server.start() except: server.stop() This makes SOAP service service with WSDL file http://localhost:7789/service.wsdl The wsdl from Pydev starts with: <definitions name="HelloWorldService" targetNamespace="HelloWorldService.HelloWorldService"> − <types> − <schema targetNamespace="HelloWorldService.HelloWorldService"> <xs:element name="say_hello" type="tns:say_hello"/> − <xs:complexType name="stringArray"> − <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="string" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="topconsResponse" type="tns:topconsResponse"/> <xs:element name="bindndnaResponse" type="tns:bindndnaResponse"/> <xs:element name="iupredlResponse" type="tns:iupredlResponse"/> But when I run it from CLI it starts with: <definitions targetNamespace="HelloWorldService.HelloWorldService" name="HelloWorldService"> − <types> − <schema targetNamespace="HelloWorldService.HelloWorldService"> <xs:element name="say_hello" type="tns:say_hello"/> <xs:element name="stringArray" type="tns:stringArray"/> − <xs:complexType name="stringArray"> − <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" type="tns:string" name="string"/> </xs:sequence> </xs:complexType> <xs:element name="bindndnaResponse" type="tns:bindndnaResponse"/> <xs:element name="iupredlResponse" type="tns:iupredlResponse"/> Similar, but not the same... The problem is that that the cli versiondoesn't work with other programs Jerzy ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users