Reference for http://wcf.open.cnblogs.com/news/item/{CONTENTID}

获取新闻内容

Url: http://wcf.open.cnblogs.com/news/item/{CONTENTID}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema
Response Json Example

The following is an example response Xml body:

<NewsBody>
  <Title>String content</Title>
  <SourceName>String content</SourceName>
  <SubmitDate>String content</SubmitDate>
  <Content>String content</Content>
  <ImageUrl>String content</ImageUrl>
  <PrevNews>String content</PrevNews>
  <NextNews>String content</NextNews>
  <CommentCount>String content</CommentCount>
</NewsBody>

The following is an example response Json body:

{
	"Title":"String content",
	"SourceName":"String content",
	"SubmitDate":"String content",
	"Content":"String content",
	"ImageUrl":"String content",
	"PrevNews":"String content",
	"NextNews":"String content",
	"CommentCount":"String content"
}

The following is the response Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="NewsBody" nillable="true" type="NewsBody" />
  <xs:complexType name="NewsBody">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="Title" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SourceName" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SubmitDate" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="ImageUrl" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="PrevNews" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="NextNews" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CommentCount" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>