Click here to Skip to main content
15,905,566 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: need help with php parse error Pin
Izu Great19-Apr-14 9:10
professionalIzu Great19-Apr-14 9:10 
GeneralRe: need help with php parse error Pin
Richard MacCutchan19-Apr-14 21:08
mveRichard MacCutchan19-Apr-14 21:08 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 0:12
professionalIzu Great20-Apr-14 0:12 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 0:49
professionalIzu Great20-Apr-14 0:49 
GeneralRe: need help with php parse error Pin
Richard MacCutchan20-Apr-14 1:41
mveRichard MacCutchan20-Apr-14 1:41 
GeneralRe: need help with php parse error Pin
Graham Breach20-Apr-14 6:26
Graham Breach20-Apr-14 6:26 
GeneralRe: need help with php parse error Pin
Izu Great20-Apr-14 10:01
professionalIzu Great20-Apr-14 10:01 
Questionpseudo-elements and pseudo-classes Pin
Ali Al Omairi(Abu AlHassan)16-Apr-14 2:38
professionalAli Al Omairi(Abu AlHassan)16-Apr-14 2:38 
AnswerRe: pseudo-elements and pseudo-classes Pin
Richard Deeming16-Apr-14 3:22
mveRichard Deeming16-Apr-14 3:22 
GeneralRe: pseudo-elements and pseudo-classes Pin
Ali Al Omairi(Abu AlHassan)16-Apr-14 3:55
professionalAli Al Omairi(Abu AlHassan)16-Apr-14 3:55 
Generalinstead of before, will prev() work for you Pin
Ferd Really28-Apr-14 11:05
Ferd Really28-Apr-14 11:05 
QuestionPlease help me to transfer data between elements in a web form. Pin
lersmethasakul9-Apr-14 13:07
lersmethasakul9-Apr-14 13:07 
SuggestionRe: Please help me to transfer data between elements in a web form. Pin
thatraja15-Apr-14 21:03
professionalthatraja15-Apr-14 21:03 
AnswerRe: Please help me to transfer data between elements in a web form. Pin
Ali Al Omairi(Abu AlHassan)15-Apr-14 21:52
professionalAli Al Omairi(Abu AlHassan)15-Apr-14 21:52 
QuestionInstallaing SSL Certificate into server which contains load balancer Pin
Arindam Tewary9-Apr-14 5:02
professionalArindam Tewary9-Apr-14 5:02 
AnswerRe: Installaing SSL Certificate into server which contains load balancer Pin
237419-Apr-14 5:45
237419-Apr-14 5:45 
GeneralRe: Installaing SSL Certificate into server which contains load balancer Pin
Arindam Tewary22-Apr-14 0:05
professionalArindam Tewary22-Apr-14 0:05 
QuestionWhether PHP read shared memory which is created using C++ Pin
shanmugarajaa8-Apr-14 20:30
shanmugarajaa8-Apr-14 20:30 
QuestionWEB API Serialization Problem? Pin
Kevin Marois7-Apr-14 9:38
professionalKevin Marois7-Apr-14 9:38 
I'm VERY new to Web API and Web development in general.

I have a GetClient method in my controller.

[HttpGet]
public Response GetClient(int entityId)
{
	return BO.GetClient(entityId);
}


It returns a Response object:

[DataContract]
[Serializable]
public class Response
{
    [DataMember]
    public object Data { get; set; }

    [DataMember]
    public Result Result { get; set; }

    [DataMember]
    public string Message { get; set; }

    private Exception _Exception;
    [DataMember]
    public Exception Exception
    {
        get { return _Exception; }
        set
        {
            if (_Exception != value)
            {
                _Exception = value;

                Message = _Exception.Message;
                Result = Result.Failure;
                Data = null;
            }
        }
    }
}


When I call it I get back a null Response object. If I paste the ResponseUri into a browser it comes back with:

{"Data":{"ClientName":"MyClient","IsDirty":false,"RowState":4,"Id":1,"UniqueId":"00000000-0000-0000-0000-000000000000","IsActive":true,"IsDeleted":false,"CreatedByEmployee":null,"CreatedDate":null,"ModifiedByEmployee":null,
"ModifiedDate":null},"Result":0,"Message":"","Exception":null}


So it looks like some kind of serialization problem. I have no idea how to fix this,. Any thoughts on what to do:

Thanks
If it's not broken, fix it until it is

AnswerRe: WEB API Serialization Problem? Pin
Richard Deeming7-Apr-14 10:33
mveRichard Deeming7-Apr-14 10:33 
GeneralRe: WEB API Serialization Problem? Pin
Kevin Marois7-Apr-14 12:34
professionalKevin Marois7-Apr-14 12:34 
GeneralRe: WEB API Serialization Problem? Pin
Richard Deeming8-Apr-14 2:29
mveRichard Deeming8-Apr-14 2:29 
GeneralRe: WEB API Serialization Problem? Pin
Kevin Marois8-Apr-14 4:49
professionalKevin Marois8-Apr-14 4:49 
GeneralRe: WEB API Serialization Problem? [UPDATED] Pin
Kevin Marois27-Apr-14 17:15
professionalKevin Marois27-Apr-14 17:15 
GeneralRe: WEB API Serialization Problem? [UPDATED] Pin
Richard Deeming28-Apr-14 1:49
mveRichard Deeming28-Apr-14 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.