rpc

What is the difference between Serialization and Marshalling?

I know that in terms of several distributed techniques like RPC the term Marshalling is used, but I don't get the difference with Serialization. It both is transforming objects to series of bits no? Related: What is Serialization? What is Object Marshalling? ...

I need a serialization framework for D

I'm looking for a D template library to take an arbitrary variable and marshal it into a transportable bundle. The variable might be a basic value type (int, char[], real) or might be a struct or class and even might contain or be a reference type. A system that can do this without any per type help would be nice but I suspect that it's ...

how to lump up a IEnumerable<IDisposable>

I have an IEnumerable<IDisposable> collection that I need to dispose of at a given point. The issue is that for some cases all the object will be of one type and disposing of the objects needs to be done by collecting some data from them and making a single RPC call. In other cases, the objects will be of another type and I just need to ...

Example of a good Webservice

Hi guys, I'm tasked to design a new API for our infrastructure. Some of the things I'd like to do is: implement oauth for authentication good xml-based structure, adapting ATOM, GEO-RSS and other xml schema standards where applicable. JSON output Some of the things I've been thinking about is applying REST. In practice I find it's n...

inter jvm communication

I am looking for an inter-process communication library in Java. I am looking to send small messages between JVMs and would like to do it using shared memory if I could. ...

Pushing data into async RPC pipe causes Access Violation

I'm trying to invoke an asynchronous RPC call with a pipe parameter. I call RpcAsyncInitializeHandle(), start the call and then call the "push" function of the pipe in a loop. This works fine on Win2k and WinXP, but not on Vista. On Vista regardless of the buffer length passed exactly the 34th call to the "push" function causes an AV in...

Possible problems switching from "ncalrpc" to "ncacn_np"

I have an application that uses RPC for interprocess communications. Turns out that synchronous RPC pipes used with "ncalrpc" protocol sequence are not alowed on Vista. I want to switch to "ncacn_np" and use RpcServerRegisterEpEx() with RPC_IF_ALLOW_LOCAL_ONLY flag. Has anyone tried the same yet? Are there any possible problems associat...

Should I RESTify my RPC calls over HTTP?

We have HTTP webservices that are RPC. They return XML representing the object the either retrieved or created. I want to know the advantages (if any) of "restifying" the services. POST http://www.example.com/createDoodad GET http://www.example.com/getDoodad?id=13 GET http://www.example.com/getWidget?id1=11&amp;id2=45 POST http://ww...

What is SRV in MS RPC and what should I know about it?

This MSDN article about interface registration flags when describing the RPC_IF_ALLOW_LOCAL_ONLY flag talks about some entity called SRV: ...When this interface flag is registered, the RPC runtime rejects calls made by remote clients. ... RPC allows ncacn_NP calls only if the call does not come from SRV... I've looked through the RFC 2...

Detect RPC client crash on the server side when using binding handles

A server application is using Microsoft RPC for interprocess communications. It starts an RPC server with an endpoint corresponding to a connection-oriented protocol (ncacn_np for example). Multiple clients call methods in this server using binding handles. Is it possible for the server to detect that a client that invoked any given clie...

What's the difference between RpcTestCancel and RpcServerTestCancel?

Descriptions of RpcServerTestCancel() and RpcTestCancel() look very similar. What's the difference between them? ...

How can I read()/write() against a python HTTPConnection?

I've got python code of the form: (o,i) = os.popen2 ("/usr/bin/ssh host executable") ios = IOSource(i,o) Library code then uses this IOSource, doing writes() and read()s against inputstream i and outputstream o. Yes, there is IPC going on here.. Think RPC. I want to do this, but in an HTTP fashion rather than spawning an ssh. ...

Session management in gwt

I am using GWT for my client side application. However, I am not sure how I can handle session management. The GWT application resides on one page, all server calls are done via AJAX. If a session expires on the server. let's assume the user didn't close the browser, and sending some request to server using RPC, how could my server notif...

Is there a WCF equivalent to RPC context handles?

I'm updating an old c++ service to use WCF instead of RPC and there is an issue as to what type to use when sending and receiving a handle (HANDLE, void*..etc). In the updated service I currently have it using IntPtr, but this does not work when going from a 64 bit version of the service to a 32 bit version. The IntPtr can not deserializ...

what are the disadvantages of RPC with respect to message passing?

what are the disadvantages of RPC with respect to message passing? ...

Trouble getting unit testing of RPC on GWT

I am trying to get RPC testing using GWT. I am using the default StockWatcher project that is mentioned here, I download the project, I import it, everything works fine. I then run junitcreator in the StockWatcher project: /Users/stephen/Work/gwt/gwt-mac-1.6.4/junitCreator -junit /Users/stephen/Applications/eclipse/plugins/org.junit_...

GWT with JDO problem

I just start playing with GWT I'm having a really hard time to make GWT + JAVA + JDO + Google AppEngine working with DataStore. I was trying to follow different tutorial but had no luck. For example I wend to these tutorials: TUT1 TUT2 I was not able to figure out how and what i need to do in order to make this work. Please look at my s...

Powershell - calling remote WMI objects - RPC error HRESULT: 0x800706BA (RPC server not available)

Hello, I've got some troubles with Get-WmiObject and usage of this object. In case, I'm connecting to remote computer - which is not in AD, but in the internet. I'm using credentials and I'm able to retrieve list of WMI classes, or object (to be specific, I want to work with Win32_Process) via commands: $credential = Get-Credential $...

"The RPC server is unavailable"

Hi, this is driving me crazy. I have 2 testing machine, one XP, and one Vista. I am running the same commands on both. These commands include creating a logman counter ( like a perfmon with command prompt), starting these counters, then stopping them, and then deleting them. The problem is this: On XP they work perfectly, I am getting ...

REST vs. RPC

Hello, I'm building my own ajax website and I'm contemplating between REST and RPC. If my server supported Servlets I'd just install persevere and end the problem but my Server doesn't support Servlets. RPC is simpler to code (imo) and can be written in PHP easily. All I need is a database query executer. I'm using the Dojo Toolkit an...