On Thursday, November 13, 2014 9:49:41 AM UTC-8, Mariano Reingart wrote:
>
> On Wed, Nov 12, 2014 at 11:02 PM, Dave S <snide...@gmail.com <javascript:>
> > wrote:
>
>>
>>
>> On Wednesday, November 12, 2014 4:58:53 PM UTC-8, Dave S wrote:
>>>
>>>
>>>
>>> On Friday, September 26, 2014 3:43:29 PM UTC-7, Dave S wrote:
>>>>
>>>>
>>>>
>>>> On Friday, September 26, 2014 1:49:18 PM UTC-7, Mariano Reingart wrote:
>>>>>
>>>>> "Raw" calls are supported (using SimpleXMLElement objects), attached 
>>>>> is an example 
>>>>>
>>>>
>>>> Thank you!  I'll let you know how it goes.
>>>>
>>>>
>>> You'd think it would take me less than 6 weeks to try.  (sigh)
>>>
>>> I seem to be going through line 193; here's what I get there and 
>>> rocket.write() #1773 (bumped to 1774 by the debug msg)
>>>
>>> client.py -- went through l193 with p0 <UDIService><control>DON</
>>> control><action/><node>25 C0 F0 1</node><flag>65531</flag></UDIService> 
>>> (repr)
>>> rocket-write: data len 1 repr <s:Envelope xmlns:s="http://www.w3.org/
>>> 2003/05/soap-envelope"><s:Body><UDIDefaultResponse><status>715<
>>> /status><info>n/a</info></UDIDefaultResponse></s:Body></s:Envelope>
>>>
>>
>> Mariano -- a quick test with your sample has the client.py output, but it 
>> seems to not go directly to rocket.write().   Instead, rocket.write() is 
>> called when the ticket is being sent for "connection refused" (line 38 in 
>> webservice.py).
>>
>>
> Sorry, what line 38?
> My webservice.py example only has 36 lines...
>

True, but I was just quoting from the traceback (see below if you want the 
gory details)

>
> Anyway, I don't exactly understand what issue you have.
> Why is rocket involved after all? 
>

I'm using the out-of-the-box configuraion, with Web2py using Rocket as the 
bottom layer.  Evidently the way I have set up my controller leads to the 
client.call() invocation causes Rocket.write() to be called.


The response should be converted to XML in any case.
>
>
I'm not getting a ticket, but I am getting a traceback on the console from 
Rocket.  

2014-11-13 11:02:43,619 - Rocket.Errors.Thread-8 - ERROR - Traceback (most 
recent call last):

  File "/home/david/Documents/web2py/gluon/rocket.py", line 1337, in run
    self.run_app(conn)

  File "/home/david/Documents/web2py/gluon/rocket.py", line 1852, in run_app
    self.write(data, sections)

  File "/home/david/Documents/web2py/gluon/rocket.py", line 1774, in write
    self.conn.sendall(data)

  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)

TypeError: must be convertible to a buffer, not SimpleXMLElement



I'm probably not your fastest student here, but I do appreciate the help 
you've given, and I'm still hoping to get a clue soon.

/dps



 Traceback (most recent call last):
 File "/home/david/Documents/web2py/gluon/restricted.py", line 220, in 
restricted
    exec ccode in environment
  File 
"/home/david/Documents/web2py/applications/LogServer/controllers/webservice.py" 
<http://10.3.171.25:8000/admin/default/edit/LogServer/controllers/webservice.py>,
 line 38, in <module>
  File "/home/david/Documents/web2py/gluon/globals.py", line 385, in <lambda>
    self._caller = lambda f: f()
  File 
"/home/david/Documents/web2py/applications/LogServer/controllers/webservice.py" 
<http://10.3.171.25:8000/admin/default/edit/LogServer/controllers/webservice.py>,
 line 35, in test
    response = client.call('raw',params)
  File "/home/david/Documents/web2py/gluon/contrib/pysimplesoap/client.py", 
line 241, in call
    self.xml_response = self.send(method, self.xml_request)
  File "/home/david/Documents/web2py/gluon/contrib/pysimplesoap/client.py", 
line 270, in send
    location, 'POST', body=xml, headers=headers)
  File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1605, in 
request
    (response, content) = self._request(conn, authority, uri, request_uri, 
method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1353, in 
_request
    (response, content) = self._conn_request(conn, request_uri, method, body, 
headers)
  File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 1289, in 
_conn_request
    conn.connect()
  File "/usr/lib/python2.7/site-packages/httplib2/__init__.py", line 908, in 
connect
    raise socket.error, msg
error: [Errno 111] Connection refused


 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to