payload

How to Consume JSON Web Services from a Windows Client

Is it possible to consume a JSON enabled WCF Web Service from a standard Proxy Client ie not Javascript? Basically I want to minimize the payload size between 2 web services. ...

Email body is a string sometimes and a list sometimes. Why?

My application is written in python. What I am doing is I am running a script on each email received by postfix and do something with the email content. Procmail is responsible for running the script taking the email as input. The problem started when I was converting the input message(may be text) to email_message object(because the lat...

Should network packet payload data be aligned on proper boundries?

If you have the following class as a network packet payload: class Payload { char field0; int field1; char field2; int field3; }; Does using a class like Payload leave the recipient of the data susceptible to alignment issues when receiving the data over a socket? I would think that the class would either need to be reo...

Generating a JSON payload for POST HTTP request in Objective-C

Does anyone have any sample code to create a JSON payload to be sent as a HTTP POST Request in Objective-C? An example of the json payload I am looking to generate looks like: {__metadata:{\"Uri\":\"/NewLoc/\", \"Type\":\"Location.NewLoc\"}, \"LocID\":\"100006\", \"latitude\": \"40.123456\", \"longitude\": \"-65.876543\", \"VisitDate\":...

Payload performance in Lucene

I know there are several topics on the web, as well as on SO, regarding indexing and query performance within Lucene, but I have yet to find one that discusses whether or not (and if so, how much?) creating payloads will affect query performance... Here's the scenario ... Let's say I want to index a collection of documents (anywhere fr...

from where we send json payload when using APNs?

i want to know that when we want to use push notification service.From where we send json payload, from our app or it may be generated on server? if it has to be sent from our app then how do we send json payload+device token to our own web server? ...

Creating .pem file for APNS ?

Hi all, how to create a .pem file to be stored in the hosting server for APN payload data ? thanks ...

How large can an appengine task payload be?

I'm using the new experimental taskqueue for java appengine and I'm trying to create tasks that aggregate statistics in my datastore. I'm trying to count the number of UNIQUE values within all the entitities (of a certain type) in my datastore. More concretely, say entity of type X has a field A. I want to count the NUMBER of unique valu...

More data in packet payload

I have the following code int ParseData(unsigned char *packet, int len) { struct ethhdr *ethernet_header; struct iphdr *ip_header; struct tcphdr *tcp_header; unsigned char *data; int data_len; /* Check if any data is there */ if(len > (sizeof(struct ethhdr) + sizeof(struct iphdr) + sizeo...

New Payload type for RTP profile

I am designing a new RTP profile. How can I determine the next available RTP payload type, which I can assign to my profile type? ...

Entity Framework Self-Referencial Many-To-Many with Payload ( Bill of Materials BOM )

I asked this question a while back without an answer, I believe it may be the most bizarre implementation for the EF, although it is quite practical. Here is my previous post: http://stackoverflow.com/questions/2367702/entity-framework-self-referencing-hierarchical-many-to-many I've decided to ask again with the additional keyword Payl...

Good Restful design: different payload for different accounts for same url

Is it considered bad design if one url accepted different payloads depending on the basic authentication used? for instance: http://localhost/userA PUT by userA is allowed up pass XML_A but http://localhost/userA PUT by adminA is allowed up pass XML_B which is XML_A plus more. in otherwords it is the same resource but what can be upd...