Hi, i have post this on zope3-users, too but with nearly no results. :-(( i experiment with SOAP support for Zope3. I ´ve found the package http://svn.zope.org/soap/trunk/. After testing and exploring this package a got some questions about it. General Questions: - I see no changes since 1 year. Does someone use this package? - Are there any other SOAP-Zope integrations available? Technical Questions: - Is it possible to let this package work like the xml-rpc stuff. (every method is accessable through http,xml-rpc,soap?) - How can i provide a wsdl file for my SOAPView? - Is it possible to let soap or zsi generate the wsdl file or should i write it "by hand"? - Does the package http://svn.zope.org/soap/trunk/ work with Five in a Zope2 environment, too? When not is it possible to integrate it in Five? Thx Christian
--On 3. August 2007 09:29:10 +0200 Christian Klinger <cklinger@novareto.de> wrote:
Technical Questions:
- Is it possible to let this package work like the xml-rpc stuff. (every method is accessable through http,xml-rpc,soap?)
Very unlikely that you can use this Zope 3 module with in Zope 2. Integrating new protocol handlers into Zope 2 is much more complicated than in Zope 3.
- Does the package http://svn.zope.org/soap/trunk/ work with Five in a Zope2 environment, too? When not is it possible to integrate it in Five?
See above. -aj
Andreas Jung wrote at 2007-8-6 05:29 +0200:
...
Technical Questions:
- Is it possible to let this package work like the xml-rpc stuff. (every method is accessable through http,xml-rpc,soap?)
I have implemented something like this (not yet open source and documented only in German). It does not use any Zope3 part. The "SOAP" part uses "ZSI" as SOAP middle ware but is up to now only lightly tested. It does not yet support WSDL. Unlike Zope's XML-RPC support, it is not build into the ZPublisher (more precisely "ZPublisher.HTTPRequest.HTTPRequest") but requires traversal through a special RPC marshaller/demarshaller object which performs RPC marshalling/demarshalling for XML-RPC, SOAP and Repr. -- Dieter
From: Andreas Jung <lists@zopyx.com> To: Christian Klinger <cklinger@novareto.de>, zope@zope.org Subject: Re: [Zope] SOAP - Integration? Date-Sent: 6. August 2007 05:29:01 --On 3. August 2007 09:29:10 +0200 Christian Klinger <cklinger@novareto.de> wrote:
Technical Questions:
- Is it possible to let this package work like the xml-rpc stuff. (every method is accessable through http,xml-rpc,soap?)
Very unlikely that you can use this Zope 3 module with in Zope 2. Integrating new protocol handlers into Zope 2 is much more complicated than in Zope 3.
- Does the package http://svn.zope.org/soap/trunk/ work with Five in a Zope2 environment, too? When not is it possible to integrate it in Five?
See above. -aj
External method for Zope 2.7.5 import sys, httplib def envia_mensaje(m): #construct and send the header if m['tipo'] == 'HTTP': webservice = httplib.HTTP(m['pagina'], 80) elif m['tipo'] == 'HTTPS': webservice = httplib.HTTPS(m['pagina'], 443) webservice.putrequest("POST", m['post']) webservice.putheader("Host", m['host']) webservice.putheader("Content-type", m['content-type']) webservice.putheader("Content-length", "%d" % len(m['mensaje'])) webservice.putheader("SOAPAction", m['SOAPAction']) webservice.endheaders() webservice.send(m['mensaje']) # get the response statuscode, statusmessage, header = webservice.getreply() r = {} r['Response'] = {'statuscode': statuscode, 'statusmessage': statusmessage} r['header'] = header r['res'] = webservice.getfile().read() return r -- View this message in context: http://www.nabble.com/SOAP---Integration--tf4211042.html#a12061157 Sent from the Zope - General mailing list archive at Nabble.com.
participants (4)
-
Andreas Jung -
Christian Klinger -
Dieter Maurer -
rieh25