rpc

How do I use RpcRaiseException() for good error handling?

There's RpcRaiseException() dunction in MS RPC runtime to indicate errors that occur during an RPC call either on the server side or in a pipe callback on the client side. The RPC_STATUS passed into RpcRaiseError() is propagated to the site of the RPC call. The problem is how do I choose the RPC_STATUS value? Say in a pipe pull() callb...

Using an RPC like Protocol Buffers as a backend to Django, instead of MySQL or SQLite

The clever folks behind the app-engine-patch project have essentially enabled all the fun stuff of Django, including the admin, but without using Django's ORM. From their website: The most important change is that you have to use Google's Model class because the development model is too different from Django (at least with Django's ...

Is it possible to seamlessly display an ajax spinner for every GWT RPC call?

Hi everyone, I have a GWT application that uses RPC calls heavily. I would like to display a spinner icon whenever a call is in progress. It is easy enough to display the icon, but I want to do it seamlessly in one place so I don't have to explicitly hide and show the icon for each call. I guess I am looking for something similar to jQ...

with RPC calls, is serialization a necessisity to get the data back to the calling client?

with RPC calls, is serialization a necessisity to get the data back to the calling client? if not, how is it generally done then? ...

Struts2 +JSON RPC

I have developed a native client interface which calls struts2 JSON RPC using post method. I have set content type, content length as suggested in the spec. The request body looks like as follows : {"method": "uploadTxpAssignment","id": "txpUploadRequest", "params":{"addressByDestAddrId":{"addrLine1":"test home","addrLine2":"7th ave","...

Invoking ONC RPC from Ruby?

I have a Ruby (Rails) app that needs to make some calls to a service exposed via ONC RPC. Is there a way I can readily accomplish this in Ruby or do I need to create a proxy service using another language? FWIW, my target platform is CentOS. Thanks! ...

Remote COM server instantiation

I have a COM interface to start and use a program. This works great on a local machine. Is there a possibility to start that program on another machine, through the network without installing other software on it or making changes to the program? ...

What is the current choice for doing RPC in Python?

Actually, I've done some work with Pyro and RPyC, but there is more RPC implementation than these two. Can we make a list of them? Native Python-based protocols: PyRo (Python Remote Objects) RPyC (Remote Python Call) Circuits JSON-RPC based frameworks: python-symmetric-jsonrpc rpcbd XML-RPC based frameworks: XMLRPC, using the ...

GWT + GAE python: frameworks for COMET & RPC

Let's say I want to use Google GWT on the client side and Google AppEngine Python on the server side. Furthermore, I want to be able to use RPC calls to the server as well as performing COMET based exchanges. What are my options in term of existing frameworks? ...

Sending an ArrayList as a parameter in GWT-RPC

Hi, I tried sending an ArrayList to an RPC service in GWT but keeps on failing. Here is my code fragment greetingService.addNewQuestion(questionnaireKey, questionText, qcList, new AsyncCallback<Boolean>(){ @Override public void onFailure(Throwable caught) { Window.alert("Something went wrong!\n"+caught.getMessage())...

Need RPC call example written in C#

Hi All ! I am dealing with WMI connection errors and timeouts and will try to check the RPC stack first. I found the following C code snippet, but do not understand if and how it works and where I may find further informations or even a sample. RPC_STATUS status; unsigned short *StringBinding; RPC_BINDING_HANDLE BindingHandle; status ...

How to create a Web Server for asynchronous request from a Flex/Air client?

I have created a client with Flex Builder which works in a browser but also in an Air windowed application. I must connect it to a server and it has to do asynchronous request related to changing data of the server. Because of the too much expensive cost of LiveCycleDS license, I was looking for other ways, maybe open source and i found ...

RPC over HTTPS RpcBindingSetAuthInfoEx Problem

Here's a question more for you old school Windows C++ developers. I'm trying to connect to an Exchange 2003 server using RPC over HTTP with SSL using ncacn_http but I can't seem to get the right parameters when configuring the binding. I have been able connect to the server locally using ncacn_ip_tcp just fine. I currently have Outloo...

Get data from dynamic HTTPService Asynchronous to populate an Advanced Data Grid Flex

I have to populate an Advanced Data Grid which have the following fields: Continent->State->Society-->Actual Value-->Estimate Value I want to simulate a financial market so i have to change some of the values by asynchronous request from an HTTPService; have you got any idea to do so? Thank you. If necessary i'll post the .as file, but i...

Web service is giving "illegal refid function"

We are calling a PHP web service from a Rails app using RPC. This was working fine. We had some offshore PHP programmers modify the web service and now this portion of the app throws an error that says illegal refid function.require-once. Having never used RPC before, I am just a tiny bit confused. This would be an error with the PHP...

Unsupported rpcns4.dll messages in VS 2008 on windows server 2008

I've been developing a small in house application in C++ to access data from a vendor through a windows only API. I've developed this application in visual studio 2008 on windows XP (actually in a windows XP VM but whatever) and in testing on this system it runs fine. Now I'm deploying to a windows server 2008 standard system, and if I r...

How to handle REQUEST in PHP

is there a class to handle $_REQUEST that makes the life of a php developer easier? I want to handle the client requests easier. I dont want to test with if(is_set($_REQUEST['blabla'])) {makesomthing();} I wish there could be a solution like this. class rpclike { public function getMember() { $memberid = $this->inputhandler['member...

REST for ecommerce site

I am looking at the creation of a large ecommerce portal that can be used to select items, update quantity, place orders, and ask the shipper to pick up items. A lot of this is transactional in nature like billing, payment, shipping etc. RPC approaches seem to be the traditional way of doing such distributed processing. I am new to RES...

How to debug pending/hanging webservices in Flex 4 with Flash Builder 4?

Sometimes (too often...) some webservices "hang". I can see the clock cursor in my app and the network monitor of FB2 shows the webservice as "pending". After waiting a long time, the status changes to "OK" and the clock cursor disappears. How can I find out why a webservice takes sometimes minutes while it usually takes not even a secon...

Remote Executing Code - Lambdas...Static Methods....etc. eval() for C#?

So here's the concept. I'm trying to write a C# backend for CouchDB (keep reading, this has little or nothing to do with CouchDB). Here's the basic idea: 1) The DB Driver uploads an arbitrary string to the DB Server. 2) The DB Driver tells the DB server to run the code and produce a view 3) The DB Server loads my C# backend, hands...