Oguz Karadenizli
Oguz Karadenizli

Reputation: 3505

I can get 400 error but there is no json object with ServiceStack fluent validation

Check List:

I'm calling service from html. Validation framework is working but response is not json object. It is look like XML in firebug.

The part (that is responsible for catching error and serializing it to json) seems not working

Any guess?

UPDATE

XResult must be XResponse.. Thanks kampsj

Upvotes: 1

Views: 507

Answers (1)

kampsj
kampsj

Reputation: 3149

In your case, your response DTO should be named XResponse not XResult. You have to adhere to the following convention for response DTOs

{Request DTO Name} + Response

See https://github.com/ServiceStack/ServiceStack/wiki/Your-first-webservice-explained

Upvotes: 3

Related Questions