Comments (5)
So, just making sure I'm hearing this right. When you hit it with Firefox, you see the request on the server log, when you use the pyamf lib, the server shows no activity?
from pyramid_rpc.
yes, exactly this is what I see.
from pyramid_rpc.
Ok, I tested the gateway, and it seems to work. I did a simple setup with a test.py that looks like this:
import pkg_resources
from pyramid_rpc.amfgateway import PyramidGateway
from pyramid.config import Configurator
from paste.httpserver import serve
def echo(request, data):
return data
services = {
'myservice.echo': echo
# could include other functions as well
}
echoGateway = PyramidGateway(services)
if __name__ == '__main__':
config = Configurator()
config.add_view(echoGateway)
app = config.make_wsgi_app()
serve(app, host='0.0.0.0', port=9090)
Then after running it with python test.py
, I did this from the prompt:
from pyamf.remoting.client import RemotingService
url = 'http://127.0.0.1:9090/'
gw = RemotingService(url)
service = gw.getService('myservice')
service.echo('fred')
And it echo'd 'fred' back to me as expected. I'm guessing you're either not naming your service right, or naming the function right?
from pyramid_rpc.
my problem comes from using apex. I could not figure out the exact conditions, but will try to work on it more.
thx, for your quick responses.
I'll close this issue now.
from pyramid_rpc.
the issue was due to csrf validation in every POST-ed form, as implemented in apex
from pyramid_rpc.
Related Issues (20)
- JSON-RPC may be broken on Pyramid 1.1 HOT 1
- Tests don't pass under 2.4 HOT 1
- JSON-RPC methods should be able to be invoked using HTTP GET HOT 4
- DeprecationWarning get always displayed when using python2.6 HOT 3
- Issue with named parameters in the request.params HOT 9
- Need to distinguish Forbidden from RequestInvalid in jsonrpc HOT 2
- JsonRpcError: data argument never used HOT 1
- Allow custom JSONEncoder subclasses for JSON-RPC endpoints HOT 3
- config.scan not found @xmlrpc_method HOT 15
- decide how to handle json-rpc responses
- Encoding error HOT 1
- Support json rpc 2.0 batch HOT 3
- Allow us to disable exception views HOT 2
- JSON-RPC traversal HOT 6
- remove the route predicate and add a pattern for security HOT 5
- MethodPredicate throws AttributeError when tested against batched requests HOT 1
- Cannot handle *args, **kwargs decorators
- MessagePack support HOT 2
- install error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_rpc.