Cannot Be Serialized Using The Odatamediatypeformatter

SingleResult not serializable in Web API when. SingleResult`1' cannot be serialized using the ODataMediaTypeFormatter. In order to be properly serialized?

Scenario is letting end-users have a property bag for business data that actually shows everything that's in the bag (so that adding new properties doesn't take a dev cycle). Also, the fact that the OData spec says that open properties can be nullable, so I should think the scenario is also 'implement behavior from the OData spec.' It's hard to be more specific about the scenario because OData scenarios are always kind of loose, but I'll talk to my PM and try to get a concrete scenario for you where null and missing are different things. I also have a scenario where a global OData action is returning tree structure of objects of various types, I use wrapper open type with dynamic properties to represent these variously typed objects and reflexively read properties from those objects into dynamic properties dictionary, now properties that are null are not serialized which is a disaster for the client, because the client does not know which properties to expect in which node of the tree serialized in the response. I think a possibility to force serialization of null dynamic properties is needed in many valid cases and is not against the OData standard.

Hi, I am usingJavaScriptSerializer to deserialize a large json string. The serialized dictionary contains more than the default MaxJsonDeserializerMembers(1000) elements. I receive the following exception during deserialization: System.InvalidOperationException was unhandled Message=Operation is not valid due to the current state of the object. The thing is, I'm pretty sure BizTalk has no native JSON to Xml capabilities (it would be a pretty big deal), and certainly not BizTalk Server 2010. Double check your channel configuration, behaviors, encoders, etc. Maybe one of the samples included a JSON to Xml component such as JSON.Net.

  • Serialize a null collection value as an empty. Message': 'Null collections cannot be serialized.'
  • Write null element in collection of complex. It can be serialized as 'null' in. ' 'Default.Customer' cannot be serialized using the ODataMediaTypeFormatter.

Yes, that's what I thought. But my test project is very small, and I'm pretty sure I haven't set any settings to do that. In my WCF-Custom transport properties, I just have chosen the webHttpBinding and kept all default values. And I have added my custom endPoint behavior. My custom endPoint behavior creates the ReST Query, but does nothing on the response (and as I said when my behavior is executed the message is already in Xml format).

I read here and there about WCF (that BizTalk is using) and it seems that there is default.Net Xml/Json serializer/deserializer, at least since.Net Framework 3.5. I'll continue looking for a solution.

Hi, I have created WCF restful service with post and getinvoke method which has request/response format as JSON and I used a object(a user class object) as a parameter for mobi app. But the get method worked for me, unfortunately the POST method not worked. I received a error while calling the POST by passing JSON as param. Below is the error I received it. The server encountered an error processing the request. Please see the service help page for constructing valid requests to the service.

The exception message is 'The incoming message has an unexpected message format 'Raw'. The expected message formats for the operation are 'Xml', 'Json'. This can be because a WebContentTypeMapper has not been configured on the binding. See the documentation of WebContentTypeMapper for more details.'

See server logs for more details. I tried to just decorate one of two service calls in a service contract with XmlSerializerFormat. This worked in that there were no errors generated in either the compilation or the proxy generation. The problem was that the proxy that was ultimately generated was different for the service that was using the default DataContract serializer. We have very carefully generated a data contract that works for us for about 100 method calls.

By using abstract types we have been able to use one service call to effectively service about 100 different methods. To have the proxy changed for this service call as well as the one decorated with XmlSerializerFormat was unacceptable so we completedly separated it into two different services, one using the data contract serializer and one using the XML serializer. As for the different behavior between calling svcutil directly and Updating the service reference via Visual Studio. I was able to trace it to what appear to be some kind of permission issue with merging the config file.

I wasn't able to debug it any further than that as I had to move on. The permission problem seemed to be permissions with the creation of the temporary files and the '-d' option with svcutil. In Visual Studio a temporary directory is created and it appeared that the call got hung up on trying to either create or put files into this temporary directory. Like I said I didn't debug the specifics any more than that. So the moral that I gained from the experience was that if you want to use the XmlSerializerFormat use it in a completedly different service contract. I was unable to get both the DataContractSerializer and the XmlSerializer to play nicely with one another. A call to a REST webservice will return JSON object as response.

But the problem is if same request is sent again it will make a webservice call again. So I want to cache the JSON response of the webservice so that I can check it locally if this call has already been made. And in case I find it locally I don't want to call the webservice. For this I want to cache the response of the webservice which is a JSON object. Could you please tell me how I can cache the JSON object? And this JSON object could also hold huge data. So please suggest the best way to cache JSON object?

899019 wrote: A call to a REST webservice will return JSON object as response. But the problem is if same request is sent again it will make a webservice call again.

So I want to cache the JSON response of the webservice so that I can check it locally if this call has already been made. And in case I find it locally I don't want to call the webservice. For this I want to cache the response of the webservice which is a JSON object.

Could you please tell me how I can cache the JSON object? And this JSON object could also hold huge data.

So please suggest the best way to cache JSON object? Thank you.Depending on the problem (faster response times, reduce trips to database etc) you are trying to solve, you should also investigate where to cache this data. You have a few options, cache it on the browser, use some sort of edge cache, cache it in the JVM, database cache.

Or some sort of hybrid etc. If the JSON object is huge, then storing it on the client side might not be a good idea as it could slow down the client browser. If you don't do it right, you could create nasty synchronization issues. Which brings me to my question, do you currently have an issue with the application making multiple webservice calls? Or are you just trying to do some sort of premature optimization.

If it is the latter (and your application is performing well), i would suggest forget about caching for now. Hi, I want to use System.Net.BrowserHttpWebRequest in wcf service. When i write code as below OperationContract void ProcessException(System.Net.HttpWebRequest Request,string sType); It shows error message like below Type 'System.Net.BrowserHttpWebRequest' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. Alternatively, you can ensure that the type is public and has a parameterless constructor - all public members of the type will then be serialized, and no attributes will be required. So whats the soluton for it. Thanks, Mahendra.

Serialized Vs Non Serialized

I defined a third party web service as REST Message. This Web Service is a POST request and it needs a JSON as its payload. When scripting this web service call, I tried 'r.setContent(.json.)' but that did not work. Any suggestions of an alternative to send the payload? My payload is dynamic and I cant put that in the REST Message declaration. Var r = new RESTMessage('my web service', 'post'); r.setStringParameter('sysID', current.sysid); //r.setContent(ALL JSON HERE); - this did not send any input to the POST call var response = r.execute. Java provides the transient keyword.

When this keyword is used infront of your variable, that variable will not be serialized. Well, I can think of 2 reasons: 1. When a variable contains secure information such as a user's password, you don't wanna save to a file becaue it can be hacked! Say the program starts out and connect to a database to get the password and use it to access stuffs! Then the program needed to be saved. You can decide to save the password or just retrieve it by connecting to database again the next time the program start.

The 2nd way is more secure. Variables that can be reconstruct easily, statically shouldn't be save to save the saved file size. Stuffs such as the Container for the gui can be re-construct easily when the program starts. The filesize will be huge when you save these variables also. So when you don't wanna save a avariable for the 2 reasons above, you use transient!

If I expose an endpoint using the WebHttpBinding when I throw a FaultException the details of that exception are completely lost in the response. Instead all I get is 400 Bad Request with a generic see server log for details HTML message. I would expect that at least the reason text should be returned somewhere in that message.

In fact I'd actually expect a lot more if I threw a FaultExceptionT that included custom fault detail. I would expect that fault detail class to be serialized and returned in the response body instead of the canned HTML. Please note, this is with includExceptionDetailsInFaults=false because obviously you wouldn't want that turned on in a production environment. Also please note the effect is the same whether the endpoint is POX or JSON. In fact only endpoints with ASP.NET AJAX compatibility (i.e. The EnableWebScriptBehavior applied) returns the reason to the client in the error's message property (which, btw, is awesome because 1.0 of the System.Web.Extensions didn't return this unless customErrors=Off). Weblogic: Applet-Servlet Communication - QUESTIONS: Does the weblogic has problems with reading serialized objects?

My program is about communication between applet and servlet. Now, the problem is that after the applet connects to the servlet, the applet try to read 'Serialized Object' from servlet. Then, the servlet writes the serialized object correctly, but the applet can't read the serialized objects and then gets the following error message: 'java.io.StreamCorruptedException: Type code out of range, is 60' Any ideas? Weblogic: Applet-Servlet Communication - QUESTIONS: Does the weblogic has problems with reading serialized objects? My program is about communication between applet and servlet. Now, the problem is that after the applet connects to the servlet, the applet try to read 'Serialized Object' from servlet. Then, the servlet writes the serialized object correctly, but the applet can't read the serialized objects and then gets the following error message: 'java.io.StreamCorruptedException: Type code out of range, is 60' Any ideas?

Marc, Mayhem, Like Jongware, I assumed that arrays were just arrays (as they are in Basic and Pascal). I know that objects can be represented as associative arrays, and I must admit that I never realised that what I considered normal arrays aren't all that normal after all. Thanks both of you: those last two examples and their clear explanation finally made things clear to me (I think). Be enlightened! I am in great danger of becoming just that! It's been an educational thread for me. This forum software is truly awful.

It's a complete and utter disgrace. By default, whenever we use Iserializable it uses DataContractSerializer. Further if we go by Serialization guidelines as presented here it looks like DataContractSerializer has full control over if instances of your type might need to be persisted or used in Web Services. However when we speak about XmlFormat it looks like we can gain full control only if we use xmlSerializer instead of DatacontractSerializer. So i think in your case JSON is working since datacontractserializer has full control over JSON.

However for xml if we need to get full control we should be using xmlserializer. Anyone have any ideas on what the best way to get my Request object from the message? When you do untyped messaging in WCF, you are no longer under the umbrella of the typed data contract/message contract mechanism, which means that you need to manually read the XML out of the Message using XmlDictionaryReader API and manually populate the whatever data structure you need to populate, basically speaking, you need to manually deserialize the message. Hope this clears things up a little bit. Another Paradigm Shift http://shevaspace.blogspot.com.

I noticed in the OpenUI5 JsDoc Report that some headers are not modifiable by mHeaders when specifying a new sap.ui.model.odata.ODataModel object. These headers are: accept, accept-language, x-csrf-token, MaxDataServiceVersion, DataServiceVersion. Is it possible to adjust the Accept header when binding to my service URL?

Let's say I need to also interface with an ASP.NET WebAPI OData Service (using v1-3 OData packages). I can set my Accept header to 'application/json;odata=verbose' in order to return results in a verbose JSON format that OData v2 supports. By default, my OData v3 service will return a 'JSON light' response, which causes an endless loop of GET requests to my service from the UI5 library. Thanks, Mitch As an alternative, I can set my custom service to properly return JSON response based on MaxDataServiceVersion. This should be handled out-of-the-box from a v1-3 OData package, but unfortunately ASP.NET Web API OData does not support OData v2. I can handle this with a custom message handler, but that is out of scope for this request, and I already have a solution there. I would rather find a way to set Accept header from my client for the time being.

I noticed in the OpenUI5 JsDoc Report that some headers are not modifiable by mHeaders when specifying a new sap.ui.model.odata.ODataModel object. These headers are: accept, accept-language, x-csrf-token, MaxDataServiceVersion, DataServiceVersion. Is it possible to adjust the Accept header when binding to my service URL? Let's say I need to also interface with an ASP.NET WebAPI OData Service (using v1-3 OData packages). I can set my Accept header to 'application/json;odata=verbose' in order to return results in a verbose JSON format that OData v2 supports.

By default, my OData v3 service will return a 'JSON light' response, which causes an endless loop of GET requests to my service from the UI5 library. Thanks, Mitch As an alternative, I can set my custom service to properly return JSON response based on MaxDataServiceVersion. This should be handled out-of-the-box from a v1-3 OData package, but unfortunately ASP.NET Web API OData does not support OData v2. I can handle this with a custom message handler, but that is out of scope for this request, and I already have a solution there.

I would rather find a way to set Accept header from my client for the time being. Hi Guys, I have a issue with storing some serialized objects into the session over azure table storage( I have implemented outProc session state). My object is large(serialized form is about 161KB ) and I have to utilize this on next page(I can't fetch this again from db-performance issue).

So I'm taking this into session and utilizing object for further processing. Now I'm getting a errorAn error occurred while processing this request. With following inner exception:?xml version= 1.0 encoding= utf-8 standalone= yes?

R nerror xmlns= r n codePropertyValueTooLarge/code r n message xml:lang= en-US The property value is larger than allowed by the Table Service. NRequestId:89ea5c3d-8d33-47c1-a148-e40ea1263c78 nTime:2013-06-25T05:331Z/message r n/error Error is due to taking large data in session state in Azure table storage. Is there any way to increase its length in Azure table storage. I found by default it can store a data upto 64KB.Any Suggestions here?

Although I have a alternate to implement via file but preferring session over. Hello all I would like to inject silverlight control into existing web solution (.net Framework 2.0 ). Customers don't wish to use any webservices for this. I was trying to use WebClient functionality for download JSON string (object, serialized on server side using JavaScriptSerializer class) to SL component and deserialize it to appropriate object (using DataContractJsonSerializer). All was good, while my objects were not Dictionary. DataContractJsonSerializer throws exeption when I try to deserealize such serialized by JavaScriptSerializer string.

Have you any ideas to help me? We have developed COM Dll - IE Add-on.

It is used byour oneweb component. When we make call from javascript and then it execute some business logic, herewe are creating json string then converting this json string to JSON object using eval function. At last we are returning this json object from this API as IDispatch. As a end result in javascript we should get JSON object.

For Example: From javascript, var jsonobj=myadd.GetOSName; alert(jonobj.OSName); This works fine with IE6, IE7, AND IE8 but shows crash in IE9. We have tried to debug this and it seems there is no issue in our code but it crash some where from IE9 and shows error message with Fault Module jscript9.dll Can any body help me or Is there any work around or different way to return this JSON object? What are the options for serializing Java objects that are returned in Ajax calls to client? On the several places in the Ajax4JSF documentation it is stated that data is serialized by default using JSON. Are there some other options?Also, is there a way to control serialization when using JSON? Sometimes, when I need list of object where I need only 2-3 properties of each object, I am getting all the properties returned. If these properties are objects itself with their own references, it results in huge object graph which is a lot of data that I don't need.

Also, if some of these objects contains some circular references, serialization would enter in infinite loop and throw OutOfMemoryError.I solved these problems by copying original objects and returning only necessary properties, but I am wondering if there is some more elegant solution. What are the options for serializing Java objects that are returned in Ajax calls to client? On the several places in the Ajax4JSF documentation it is stated that data is serialized by default using JSON. Are there some other options?Also, is there a way to control serialization when using JSON? Sometimes, when I need list of object where I need only 2-3 properties of each object, I am getting all the properties returned. If these properties are objects itself with their own references, it results in huge object graph which is a lot of data that I don't need. Also, if some of these objects contains some circular references, serialization would enter in infinite loop and throw OutOfMemoryError.I solved these problems by copying original objects and returning only necessary properties, but I am wondering if there is some more elegant solution.

Hi, I have a WCF REST service that should support Jsonp formatting on operation response format. My operations used to return a serialized stream that was a wrapping of the Json serialized object with a callback function. Unfortunately this solution is not good enough and my operations return values should be the typed objects and the formatting will have to be a custom formatter that create message with jsonp. Is there a good source for Jsonp formatter or is there a way to wrap the already provided Json serializer? I couldn’t find examples for custom formatters that implements SerializeReply Thanks, Litom. Hi, i'm trying to connect my flash application to a web service, so far unsuccessfully.

Basically this web-service returns a JSON object, but i just can't set the urlRequest's content-type to 'application/json'. I've tried using external classes, such as be.wellconsidered.services.WebService or alducente.services.WebService but they just don't deliver. I've tried this: var urlLoader:URLLoader = new URLLoader;urlLoader.addEventListener(Event.COMPLETE,onURLLoaded);urlLoader.addEventListener(IOErrorEvent.IOERROR,onURLError);var url:String = 'var urlRequest:URLRequest = new URLRequest(url);urlRequest.method = URLRequestMethod.GET;var header:URLRequestHeader = new URLRequestHeader('Content-Type', 'application/json; charset=utf-8');urlRequest.requestHeaders.push(header);//urlRequest.contentType = 'application/json; charset=utf-8';urlLoader.load(urlRequest); and it always fails (reaches the 'onURLError' with a message 'Error #2032: Stream Error.

URL: and it doesn't matter whether i set the content-type directly to the urlRequest or add it as request header, when i look either into the firebug or fiddler, the content-type displayed there is always text/html; charset=utf-8. Thanks in advance, eRez. Hi, i'm trying to connect my flash application to a web service, so far unsuccessfully. Basically this web-service returns a JSON object, but i just can't set the urlRequest's content-type to 'application/json'. I've tried using external classes, such as be.wellconsidered.services.WebService or alducente.services.WebService but they just don't deliver.

I've tried this: var urlLoader:URLLoader = new URLLoader;urlLoader.addEventListener(Event.COMPLETE,onURLLoaded);urlLoader.addEventListener(IOErrorEvent.IOERROR,onURLError);var url:String = 'var urlRequest:URLRequest = new URLRequest(url);urlRequest.method = URLRequestMethod.GET;var header:URLRequestHeader = new URLRequestHeader('Content-Type', 'application/json; charset=utf-8');urlRequest.requestHeaders.push(header);//urlRequest.contentType = 'application/json; charset=utf-8';urlLoader.load(urlRequest); and it always fails (reaches the 'onURLError' with a message 'Error #2032: Stream Error. URL: and it doesn't matter whether i set the content-type directly to the urlRequest or add it as request header, when i look either into the firebug or fiddler, the content-type displayed there is always text/html; charset=utf-8.

Thanks in advance, eRez. Hi all, I need to make a new service app for our system. The new service needs to support json, soap & simple xml. I was thinking of using MVC this way: A request to host.com/service/json/controller/action/param, Will add json serialization object to the request, The action will use this object to deserialize the params and then serialize the reply.

Seems better than making a project for each protocol. If you have a better implementation or see a problem in this approach, Please let me know. Thanks, Sharon. Is this web.config the client's configuration or the service's configuration? Mex received message size can only be set on the receiving side (the service), unless you are talking about receiving a large message from a service. If we are talking about the service's configuration and the above is the service's configuration, then you need to configure the bindings - you have two bindings that you use, one custom binding, and the other is a webhttp binding - then in each of the binding configurations you need to set the maxReceivedMessageSize: 1. To the custom binding - add a maxReceivedMessageSize attribute to thehttpTransport element 2.

To the webHttp binding - add a binding configuration for the endpoint, and in the binding configuration add the maxReceivedMessageSizePlease mark posts as answers/helpful if it answers your question. Senior Consultant on WCF, ASP.NET, Siverlight, and Entity Framework. Author of Microsoft's Official WCF 4 Course. Co-author of the Microsoft HPC/Azure burst whitepaper. Visit my blog: http://blogs.microsoft.co.il/blogs/idof.

I have set up a system where the viewstate would be saved to Appfabric caching. This works perfectly locally but hits the following error in the development environment on every request: Message ErrorCode:SubStatus:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown. Im using WCF and i have a method that will return a list of object ListobjEmployee where employee is a class. When the number of records is only 1500 or below, it can pass the data into the client, but when the data exceeds 1500, it will already throw an exemption saying The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota.

Please see InnerException for more details.I have tried to increase all the values that i know in the webconfig but still i am getting the error.Is there a way to solve this one or this is a bug/limitation in WCF!need urgent help!!!Compiler. I have a WCF data service which allows for both xml or json.

When I hit the service directly on-premise, it works for xml or json. When making requests for json via Azure / relay binding I get a non-descript errror “the connection was forcibly closed.”.

Request for atom/xml works fine via Azure / relay binding. I have set message level tracing, and tested a json request and an atom request via Azure: 1. Both requests are making it to the on-premise server, so I think I can conclude it is nothing to do with Azure or anything firewall / nat related. Both requests are processed identically as follows: A message was read A message was written A message was closed 3. The Json request has no more steps visible for the relevant activity.

The atom/xml request has the following additional steps that are missing from the Json request: Understood message header (5 times). Incoming HTTP request to URI 'matched operation 'ProcessRequestForMessage' So it seems pretty clear that the message header for the Json request is Not understood, which makes sense, because one of the message headers is different in the Json request: Content-Type xmlns=vs Content-Type xmlns=http://schemas.microsoft.com/netservices/2009/05/servicebus/webapplication/atomxml;type=feed;charset=utf-8/Content-Type. I have a WCF data service which allows for both xml or json.

When I hit the service directly on-premise, it works for xml or json. When making requests for json via Azure / relay binding I get a non-descript errror “the connection was forcibly closed.”. Request for atom/xml works fine via Azure / relay binding. I have set message level tracing, and tested a json request and an atom request via Azure: 1. Both requests are making it to the on-premise server, so I think I can conclude it is nothing to do with Azure or anything firewall / nat related. Both requests are processed identically as follows: A message was read A message was written A message was closed 3.

The Json request has no more steps visible for the relevant activity. The atom/xml request has the following additional steps that are missing from the Json request: Understood message header (5 times). Incoming HTTP request to URI 'matched operation 'ProcessRequestForMessage' So it seems pretty clear that the message header for the Json request is Not understood, which makes sense, because one of the message headers is different in the Json request: Content-Type xmlns=vs Content-Type xmlns=http://schemas.microsoft.com/netservices/2009/05/servicebus/webapplication/atomxml;type=feed;charset=utf-8/Content-Type. Good day, With regards to a previous question I was recommended to try a different Serializer to work around an issue I have with LF characters being required between XML Elements in the serialized request object.

Here is the message contract as generated by svcutil, I believe this indicates that the serialization of the request will use the XmlSerializer and not the WCF Serializer. // CODEGEN: Generating message contract since the operation getIndefeasibleTitle is neither RPC nor document wrapped. System.ServiceModel.OperationContractAttribute(Action=getIndefeasibleTitle, ReplyAction=.) System.ServiceModel.FaultContractAttribute(typeof(service.td.webservice.ltsa.ca.faultDetail), Action=getIndefeasibleTitle, Name=faultDetail) System.ServiceModel.XmlSerializerFormatAttribute getIndefeasibleTitleResponse getIndefeasibleTitle(getIndefeasibleTitleRequest request). Hi Mitesh, Thanks for your friendly response. I did some research, sorry for that I also couldn’t find the way to achieve it, it seems that it has that limitation. Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.

Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

If possible, you could submit this feature request: The Visual Studio product team is listening to user voice there. You can send your idea there and people can vote. If you submit this suggestion, I hope you could post that link here, I will help you vote it. Sincerely,We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

The documentation of RF 4.3.1 talk about the attribue 'data' but it does not give a lot of information about when and how is it good to use this attribute. Any concrete example may help us - Thank you datafalsejava.lang.ObjectSerialized (on default with JSON) data passed to the client by a developer on an AJAX request. It's accessible via 'event.data' syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data We just want to clarify if using this attribute can be another solution to the issue discusion: Tab Panel backing bean isolation / attach data on tab / Bean initialization? The documentation of RF 4.3.1 talk about the attribue 'data' but it does not give a lot of information about when and how is it good to use this attribute. Any concrete example may help us - Thank you datafalsejava.lang.ObjectSerialized (on default with JSON) data passed to the client by a developer on an AJAX request.

It's accessible via 'event.data' syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data We just want to clarify if using this attribute can be another solution to the issue discusion: Tab Panel backing bean isolation / attach data on tab / Bean initialization? I have developed a custom communication protocolbetween a Silverlight In-Browser client, and php web services by sending/receiving JSON data over Http posts.

So for example, to log the user in, I'll send the the name of the method, and the login credentials, serialized as json to the php service where it will deserialize the object and call the proper method. I know this isn't ideal but this what I have to work with. Moreover,I'm using BrowserHttp handler so that I don't need to manage sessions myself. This has been a good solution for me so far, however, often times I see corrupted http requests in Fiddler. A corrupted http request would be where I have two requests occurring asynchronously, but in Fiddler, the first request's POST body is empty, and the second request's POST body contains the first second's POST body. Anybody encounter such a situation?

Not really sure how to proceed here. Any advice would be appreciated.

I am writing an client/server application that will work as follows: Server and Client both contain small objects that are exact copies of eachother. The client will send a message to the server to request a certain action(RMI?). The server will perform some calculations, update its copy of the object and send the update back to the client (serialized object?), so that the client's object is now updated with the new data. So the question is, what would be a better way of updating the client? To just send a message back to the client and have the client parse the message and update the fields that were changed?

Or serialize the object on the server and send it to the client? The objects will be relatively small. Also, for requesting an action on the server from the client, would RMI be a better choice? Or send a serialized action object to the server?

Or again, just a simple message for the server to parse and deal with directly? This is still all conceptual so just looking for input. Hi all I recently noticed that an object is firstly serialized to XML before it gets serialized to JSON by debugging the BeforeSendReply(ref Message reply, object correlationState). I saw that body of the Message was formatted as XML even though output is JSON. My question is where can I trap XML-JSON transformation?

The reason for the question is because I'm doing validation and correction of the message in its XML format before it gets sent. It's a long story why this is done in BeforeSendReply and not as part of the business logic before any serialization but that is one of the customer's requirements. I'm using.NET 3.5 SP1/VS 2008 I highly appreciate any sort of help. So i have a remote key and i know entry id,so how i can post using coldfusion? Creating a commentPublish a new comment. The request parameters are: entry=entry id - required - The id of the entry to comment on.body=body - required - The text of the comment.Or use a single parameter: json=JSON object - A JSON object containing the properties above.Example using curl: curl -u 'username:remotekey' -d 'body=Hello+Worldentry=e/ea6213b' response is the newly published comment. So i have a remote key and i know entry id,so how i can post using coldfusion?

Creating a commentPublish a new comment. The request parameters are: entry=entry id - required - The id of the entry to comment on.body=body - required - The text of the comment.Or use a single parameter: json=JSON object - A JSON object containing the properties above.Example using curl: curl -u 'username:remotekey' -d 'body=Hello+Worldentry=e/ea6213b' response is the newly published comment. I got the answer.:-) Thought it might be useful to others. For the Server side you just unwind the streams.remember that you might be reading a number of 'chunks' from each stream, so at the end you would have to put the chunks back together. If you are sending the object in chunks then you would need to read all the chunks into a single byte array, then do: byte myarray = Got the array from reading other stream. ByteArrayInputStream bin = new ByteArrayInputStream (myarray); GZIPInputStream gin = new GZIPInputStream (new BufferedInputStream (bin)); ObjectInputStream oin = new ObjectInputStream (oin); // Then just read the object. Object o = oin.readObject ;I think that should work.if anyone can spot a problem in it please shout up!!!

Cannot Be Serialized Using The OdatamediatypeformatterCannot Be Serialized Using The Odatamediatypeformatter

If it doesn't work first time then try swapping the GZIP stream and the Object stream, I can never remember which should come first. If you are finding that the GZIP stream is providing good enough compression then just use the ObjectOutput/InputStreams and not use the ByteArray streams. Hi Chuck, I don't think the ReplyTo has anything to do with the problem. As far as I know, if the class is included in your application, it should have been found. The best I can suggest is placing the class in your CLASSPATH temporarily. Or try 6.1SP2 if you don't already have it.

Or try posting your info to the EJB newsgroup, as the ejb newsgroup has more experience with class-loaders and MDBs. Or gasp contact customer support. You can get your version by looking at the top of your log file, by reading your console during boot, or by calling 'java weblogic.version'. Tom Chuck Kiefriter wrote: Tom, See the attached stack trace. Looks like it's a class not found. This doesn't make sense because I compiled the com.nielsenmedia.local.business.assemblies.ViewingLineup.GetViewingLineupsHelper class and put it my WEB-INF/classes directory for my application.

I am running WebLogic 6.1 on Solaris. Not sure about the service pack version (how do I determine that?). Should this helper class be deployed with the message driven bean for it to have visiblity of it. Also the object message sent to the MDB has a JMSReplyTo temporary queue it will use to respond to. Not sure if this could be a problem.

Let me know if you have any ideas. Message Received. Getting Helper Object. Hi, Maybe you have used the REST service in your code. And Message in REST service is not recommended.

You’d better use a string in the REST service. Then you can invoke DataContractSerializer or XML Serrializer base on the content type to deserialize the string to an object. And here is a sample about how to WCF Extensibility-Message Formatter. You can refer to the Message Formatter in the below link. Hi, I have configured the Interface between Mobile App SAP ECC systems via SAP PI. Using the REST Sender adapter to communicate the Mobile App with SAP PI system Receiver side using the RFC Adapter to communicate with SAP ECC For Request Response messages(Synchronous interface). Please clarify me the below things share me any Document: 1.

Let me know the procedure how to test the POST URL to communicate Mobile Apps with SAP PI. How to generate the HTTP request(URL) using the REST sender adapter for communicating the Mobile Application. The below error message i am getting in Communication channel in Runtime workbench. Failed to convert request body format: JSON-to-XML conversion failed: Source content is not a valid JSON object: A JSONObject text must begin with ' at 1 character 2 line 1. Thanks Best Regards, Vishnu. I was going to suggest the tutorial thread, but as you already have posted your question there i guess you have found it.i used ksoap2 for object serialization. With objects defined in a shared project i only had to write client-side mappings (now i have a tool for this).for some expert(?) exchange about the topic read-feel free to press the like button on the right side to thank the user that helped you.please mark posts as solved if you found a solution.@SimonHain on twitter.

Weblogic Newsgroup - QUESTIONS: Does the weblogic has problems with reading serialized objects? My program is about communication between applet and servlet. Now the problem is that after the applet connects to the servlet, the applet try to read 'Serialized Object' from servlet. Then, the servlet writes the serialized object correctly, but the applet can't read the serialized objects and then gets the following error message: 'java.io.StreamCorruptedException: Type code out of range, is 60' - Thanks. Hi Saya, Did you get it to work with both Netscape browser and IE5?

We have a requirement to send an object from an Applet to a Servlet via URLConnection. We got it to work with Netscape but the Servlet does not receive anything from IE5.

Thanks, Cecil saya wrote: Hi lee, I too had the same Problem initially but it's working, I have used ObjectOutputStream and ObjectInutStream after getting the ref of output and Input Streams. I have send and got Serialized object from applet to servlet and back to servlet. If your problem is same, I am always here to help you, just send your problem.

Ji-Min Lee jimin@globalsight.com wrote: Weblogic Newsgroup - QUESTIONS: Does the weblogic has problems with reading serialized objects? My program is about communication between applet and servlet. Now the problem is that after the applet connects to the servlet, the applet try to read 'Serialized Object' from servlet. Then, the servlet writes the serialized object correctly, but the applet can't read the serialized objects and then gets the following error message: 'java.io.StreamCorruptedException: Type code out of range, is 60' - Thanks.

Kelvin, You can not serialize any window classes according to my past conversation with tech support. If you figure out a way then please let me know. Kamran Amin Forte Technical Leader, Software Engineering kaamin@oxhp.com 203-459-7362 Oxford Health Plans 48 Monroe Turnpike CT, Trumbull 06611 - From: KelvinSMTP:panho@ozemail.com.au Sent: Wednesday, April 29, 1998 4:37 AM To: Forte User Subject: Object serialized Problem Hi there, I got one window mapped to a object ( say ObjectA ). The window contains textbox, droplist. I then serialized the object (ObjectA) to a file and read it back to memory. Everything seems fine except the droplist shown the wrong data. The droplist map to a listelement having objects ( say Object1,Object2,Object3).

The ObjectA has value Object3. After writeserialized and readserialized the window shown Object1 in the droplist rather than Object3.

In the debugger, I can tell the ObjectA has value Object3. But after displaying the window, the value in ObjectA changed to Object1 same as the droplist. Any ideal what's going on? Any help is welcome!

Kelvin - To unsubscribe, email 'majordomo@sageit.com' with 'unsubscribe forte-users' as the body of the message. Searchable thread archive URL:To unsubscribe, email 'majordomo@sageit.com' with 'unsubscribe forte-users' as the body of the message. Searchable thread archive URL:http://pinehurst.sageit.com/listarchive/.