serialized object is losing values

Posted on 2008-11-04
Last Modified: 2013-12-17
hi i have an aspx 2.0 page calling a webservice

that i call in the following fashion:

SearchResultsVO searchResultsVO = null;
SearchParameterVO searchParameterVO = new SearchParameterVO("abc", 123);
SchemeSearchProxy proxy = new SchemeSearchProxy(); //instanciate the wsdl generated proxy
proxy.Url = serviceURL; // give the proxy a url of the service
searchResultsVO = proxy.GetSchemeSummary(searchParameterVO);

i can step through this into the webservice "GetSchemeSummary" method.

But once into the webservice.GetSchemeSummary - my object "searchParameterVO" has lost its values.

But the second before i call the web method it is fully populated with values.

does anyone have any ideas please?

ps my searchParameterVO object is [serializable]
Question by:MrKevorkian
    LVL 96

    Expert Comment

    by:Bob Learned
    That is a great question, and I don't have a specific answer, but I do have questions:

    1) Is this your web service?

    2) Do you have any service packs installed?

    3) Is this a simple, "Hello World" kind of web service, or is this a simple part of a complex web service?
    LVL 1

    Accepted Solution

    1. yes.
    2. yes.
    3. its returns a custom class.

    I actually figured this out.  I did not have "set" methods on my class properties i only had get methods.

    i added setters and the values were present!!

    thanks for you intererest

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now