Questions tagged [soapformatter]

10 questions
2
votes
1 answer

Why Soap Serializer does not support serializing Generic Types?

I have tried to serialize Dictionary using SoapFormatter, but it throws an exception Soap Serializer does not support serializing Generic Types : …
Sandip D
  • 103
  • 1
  • 14
2
votes
1 answer

Memory Stream with 2d array

I'm using this code to copy data from a 2d object array into the memory stream. The memory stream shows the count of the data that has been read from the 2d array. But in the end I'm getting an empty string. I can't understand why. However, using…
1
vote
0 answers

SoapFormatter - how to include namespaces?

I have a blocker which I cannot solve. Issue is in auto-generated SOAP request built by SoapFormatter class. I'm trying to communicate with WCF service and pass some data. I've implemented class which I am trying to serialize to soap request.…
Kalik
  • 175
  • 1
  • 11
0
votes
1 answer

Soap Serialization/Deserialization on Windows Phone 7

Please help me..I wanna serialize/deserialize an object on WP7 on visual studio 2010 with c#. Why I can not use soapformatter? How can I do soap serialization/deserialization on wp7?
user1285383
  • 73
  • 2
  • 2
  • 4
0
votes
0 answers

Difference between BinaryFormatter and SoapFormatter for type handling

Here is a short code that works fine with BinaryFormatter and does not work properly with SoapFormatter: [Serializable] public class CustomDictionary : Dictionary { public CustomDictionary() { } …
ExpFRML
  • 1
  • 2
0
votes
1 answer

How to serialize a collection of key:string, value:object using soapformatter

I need a collection of keys and values (like a dictionary) but it needs to be serializable using the Soapformatter. Why the soapformatter? I don't know the type that has to be serialized, I only know the interface that the type implements. Does…
Peter
  • 14,221
  • 15
  • 70
  • 110
0
votes
2 answers

Deserialize soap response with multiple namespaces

I am having a very hard time trying to deserialize the soap response below. I assume its because of the multiple namespaces or maybe because of the complex type (Serialization Array) Soapformatter throws an Object reference exception and other more…
Gotts
  • 2,274
  • 3
  • 23
  • 32
0
votes
1 answer

How to serialize Entity Framework object with SoapFormatter?

I want to serialize an Entity Framework object (User) and send it to a php script using a typical webClient.OpenWrite method. I don't know if its a good approach or not, but i got dozens of problems with SOAP object serialization. My initial "User"…
Trinitron
  • 374
  • 3
  • 12
0
votes
1 answer

SerializationException in C#

I have the following exception in my code in CSharp: The serializer doesnt take count the serialization of generic types: System.Collections.Generic.SortedSet` Here is my code which is problematic(in the class FileStreamer): public static bool…
TotorAndMimine
  • 75
  • 1
  • 10
0
votes
1 answer

.net remoting - Problems with List

I am developing a client-server application using .Net Remoting. From my server I want to return a List in response to a certain method call, however I get an exception saying that basically SoapFormatter cannot deal with generics. I need a…
kjv
  • 11,047
  • 34
  • 101
  • 140