| 1 | Collab-Mactel-2:trunk thijstriemstra$ python client.py |
|---|
| 2 | 2008-07-14 10:57:56,910 INFO [pyamf.remoting.client.RemotingService.0xd8e610] Creating connection to http://localhost:8080 |
|---|
| 3 | 2008-07-14 10:57:56,911 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Referer: None |
|---|
| 4 | 2008-07-14 10:57:56,911 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] User-Agent: PyAMF/0.4.0 |
|---|
| 5 | 2008-07-14 10:57:56,911 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Adding request example.testn('Hello World',) |
|---|
| 6 | 2008-07-14 10:57:56,911 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Executing single request: /1 |
|---|
| 7 | 2008-07-14 10:57:56,912 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] AMF version: 0 |
|---|
| 8 | 2008-07-14 10:57:56,912 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Client type: 0 |
|---|
| 9 | 2008-07-14 10:57:56,914 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Sending POST request to |
|---|
| 10 | 2008-07-14 10:57:56,915 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Waiting for response... |
|---|
| 11 | 2008-07-14 10:57:56,935 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Got response status: 200 |
|---|
| 12 | 2008-07-14 10:57:56,935 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Content-Type: application/x-amf |
|---|
| 13 | 2008-07-14 10:57:56,935 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Content-Length: 59 |
|---|
| 14 | 2008-07-14 10:57:56,936 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Server: PyAMF/0.4.0 Python/2.5.2 |
|---|
| 15 | 2008-07-14 10:57:56,936 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Read 59 bytes for the response |
|---|
| 16 | 2008-07-14 10:57:56,937 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Response: <Envelope amfVersion=0 clientType=0> |
|---|
| 17 | (u'/1', <Response status=/onResult>127.0.0.1 said Hello World!</Response>) |
|---|
| 18 | </Envelope> |
|---|
| 19 | 2008-07-14 10:57:56,937 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Removing request: /1 |
|---|
| 20 | 127.0.0.1 said Hello World! |
|---|
| 21 | 2008-07-14 10:57:56,937 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Adding request example.add('user1234', 'John Doe', 'secret') |
|---|
| 22 | 2008-07-14 10:57:56,937 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Executing single request: /2 |
|---|
| 23 | 2008-07-14 10:57:56,937 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] AMF version: 0 |
|---|
| 24 | 2008-07-14 10:57:56,938 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Client type: 0 |
|---|
| 25 | 2008-07-14 10:57:56,938 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Sending POST request to |
|---|
| 26 | 2008-07-14 10:57:56,939 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Waiting for response... |
|---|
| 27 | 2008-07-14 10:57:56,964 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Got response status: 200 |
|---|
| 28 | 2008-07-14 10:57:56,964 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Content-Type: application/x-amf |
|---|
| 29 | 2008-07-14 10:57:56,964 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Content-Length: 135 |
|---|
| 30 | 2008-07-14 10:57:56,964 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Server: PyAMF/0.4.0 Python/2.5.2 |
|---|
| 31 | 2008-07-14 10:57:56,965 DEBUG [pyamf.remoting.client.RemotingService.0xd8e610] Read 135 bytes for the response |
|---|
| 32 | Traceback (most recent call last): |
|---|
| 33 | File "client.py", line 16, in <module> |
|---|
| 34 | print service1.add('user1234', 'John Doe', 'secret') |
|---|
| 35 | File "/pyamf/trunk/pyamf/remoting/client/__init__.py", line 51, in __call__ |
|---|
| 36 | return self.service._call(self, *args) |
|---|
| 37 | File "/pyamf/trunk/pyamf/remoting/client/__init__.py", line 100, in _call |
|---|
| 38 | response = self._gw.execute_single(request) |
|---|
| 39 | File "/pyamf/trunk/pyamf/remoting/client/__init__.py", line 362, in execute_single |
|---|
| 40 | envelope = self._getResponse() |
|---|
| 41 | File "/pyamf/trunk/pyamf/remoting/client/__init__.py", line 432, in _getResponse |
|---|
| 42 | response = remoting.decode(bytes) |
|---|
| 43 | File "/pyamf/trunk/pyamf/remoting/__init__.py", line 531, in decode |
|---|
| 44 | target, payload = _read_body(stream, decoder, strict) |
|---|
| 45 | File "/pyamf/trunk/pyamf/remoting/__init__.py", line 375, in _read_body |
|---|
| 46 | data = decoder.readElement() |
|---|
| 47 | File "/pyamf/trunk/pyamf/__init__.py", line 486, in readElement |
|---|
| 48 | return func() |
|---|
| 49 | File "/pyamf/trunk/pyamf/amf0.py", line 298, in readTypedObject |
|---|
| 50 | ret = alias() |
|---|
| 51 | File "/pyamf/trunk/pyamf/__init__.py", line 367, in __call__ |
|---|
| 52 | return self.klass(*args, **kwargs) |
|---|
| 53 | TypeError: __init__() takes exactly 5 arguments (1 given) |
|---|