FrameAppWS

<back to all web services

GetNewsRQ

The following routes are available for this service:
All Verbs/mobile/maps/news
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetNewsRQ
    {
        public String Category = null;
        public Date Dateini = null;
        public Date Datefin = null;
        
        public String getCategory() { return Category; }
        public GetNewsRQ setCategory(String value) { this.Category = value; return this; }
        public Date getDateini() { return Dateini; }
        public GetNewsRQ setDateini(Date value) { this.Dateini = value; return this; }
        public Date getDatefin() { return Datefin; }
        public GetNewsRQ setDatefin(Date value) { this.Datefin = value; return this; }
    }

    public static class GetNewsRS
    {
        public String Code = null;
        public String ErrorMessage = null;
        public ArrayList<NewsData> Data = null;
        
        public String getCode() { return Code; }
        public GetNewsRS setCode(String value) { this.Code = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public GetNewsRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public ArrayList<NewsData> getData() { return Data; }
        public GetNewsRS setData(ArrayList<NewsData> value) { this.Data = value; return this; }
    }

    public static class NewsData
    {
        public Integer code = null;
        public Date datenews = null;
        public String category = null;
        public String title = null;
        public String intro = null;
        public String author = null;
        public String image = null;
        public String news = null;
        
        public Integer getCode() { return code; }
        public NewsData setCode(Integer value) { this.code = value; return this; }
        public Date getDatenews() { return datenews; }
        public NewsData setDatenews(Date value) { this.datenews = value; return this; }
        public String getCategory() { return category; }
        public NewsData setCategory(String value) { this.category = value; return this; }
        public String getTitle() { return title; }
        public NewsData setTitle(String value) { this.title = value; return this; }
        public String getIntro() { return intro; }
        public NewsData setIntro(String value) { this.intro = value; return this; }
        public String getAuthor() { return author; }
        public NewsData setAuthor(String value) { this.author = value; return this; }
        public String getImage() { return image; }
        public NewsData setImage(String value) { this.image = value; return this; }
        public String getNews() { return news; }
        public NewsData setNews(String value) { this.news = value; return this; }
    }

}

Java GetNewsRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /mobile/maps/news HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetNewsRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.maps">
  <Category>String</Category>
  <Datefin>0001-01-01T00:00:00</Datefin>
  <Dateini>0001-01-01T00:00:00</Dateini>
</GetNewsRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetNewsRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.maps">
  <Code>String</Code>
  <Data>
    <NewsData>
      <author>String</author>
      <category>String</category>
      <code>0</code>
      <datenews>0001-01-01T00:00:00</datenews>
      <image>String</image>
      <intro>String</intro>
      <news>String</news>
      <title>String</title>
    </NewsData>
  </Data>
  <ErrorMessage>String</ErrorMessage>
</GetNewsRS>