7-Services under construction
Demoservice Kontakt Sitemap Service USP Kundennutzen Kundenservice Downloads
connecting
Sie befinden sich hier -> ../ 7 Services / Demoservice / NewsService
connecting
7 S ervices
7 E thical Principles
7 R eferences
7 V alues
7 I nterfaces
7 C ustomers
7 E lements
einfache lösungen
7 NewsService
Documentation API Documentation WSDL Source Download Client

7Services NewsService API-Dokumentation

NewsItemManager
The NewsItemManager Webservice manages and distributes news items. By using this service you can create, modify and delete news items. Applications can retrieve the current published news.
Methods
String loginWithGUID(String clientGUID)
Performs a login into the news item repository.
Parameters
nametypeDescription
clientGUIDStringThe registration key, which can be obtained by registering on 7Services Registration Site
Returns:
login On success a session token is returned.
Exceptions:
If the news service abonnement is not found, an exception is raised.
boolean isValid(String token)
Determines if a session is valid.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
Returns:
true if the session token is valid, false otherwise.
Exceptions:
None.
long createNewsItem(String token,String title)
Creates a new news item with the given title.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
titleStringThe title of the new news item.
Returns:
a unique ID which is used by some methods of this class.
Exceptions:
If the session token is not valid, an exception is thrown (A SOAP Fault is returned).
String deleteNewsItem(String token,long newsID)
Deletes a news item.
Parameters
nametypeDescription
tokenStringthe session token which can be obtained from the login funktion.
newsIDlongthe newsID of the item to be deleted
Returns:
On success an empty string is returned.
Exceptions:
If the session token is not valid, an exception is thrown (A SOAP Fault is returned).
String getCurrentNewsItemListWithClientGUID(String clientGUID)
Retrieves a list of the current valid news items as XML string. A news item is valid if it is published and the point in time this method is invoked is between the start date and the end date. This method is stateless. You can specify your registration key to obtain the news items.
Parameters
nametypeDescription
clientGUIDString The registration key, which can be obtained by registering on 7Services Registration Site
Returns:
the news item list as xml string.
Exceptions:
If the session token is not valid, an exception is thrown (A SOAP Fault is returned).
String getNewsItemWithClientGUID(String clientGUID,long newsID)
Retrieves an XML representation of the news item of the given ID. This method is stateless. You can specify your registration key to obtain the news items.
Parameters
nametypeDescription
clientGUIDString the registration key, which can be obtained by registering on 7Services Registration Site
newsIDlongThe newsID of the item to be retrieved.
Returns:
the xml representation of the news item as string
Exceptions:
an exception if the session token is not valid.
String getNewsItem(String token,long newsID)
Retrieves an XML representation of the news item of the given ID.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
Returns:
the xml representation of the news item as string
Exceptions:
If the session token is not valid, an exception is thrown (A SOAP Fault is returned).
String getNewsItemField(String token,long newsID,String dataGroup,String fieldName)
Retrieves a field of the news item. The attributes of a news item are organized in groups. Currently the following attributes are supported:
dataGroupfieldNamedescription
DescriptiveTitleThe title of the news
DescriptiveHeadlineThe head line of the news item
DescriptiveSubheadlineThe subheadline of the news item
DescriptiveTeasera teaser text for the news item
DescriptiveBodythe body of the news item
ValidityStartthe start date of the news to be marked as valid as ISO-String
ValidityEndthe end date of the news to be marked as valid as ISO-String
AdministrativeStatethe state of the news given as string. The NewsConsumerWS webservice shows only those news which are valid and have the state 'Published'.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
dataGroupStringThe dataGroup of the given field
fieldNameStringThe name of the given field
Returns:
the news field as string. If the dataGroup or the field is not found an empty string is returned.
Exceptions:
an exception if the session token is not valid.
String getNewsItemList(String token)
Retrieves a list of news item as XML string.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
Returns:
the news item list as xml string
Exceptions:
an exception if the session token is not valid.
String setEndDate(String token,long newsID,String date)
Does the same as updateNewsItemField(token,newsID,"Validity","End",date), see below.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
dateStringThe end date as ISO-Date string
Returns:
Exceptions:
an exception if the session token is not valid.
String setNewsItemState(String token,long newsID,String state)
Does the same as updateNewsItemField(token,newsID,"Administrative","State",date), see below.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
stateString
Returns:
Exceptions:
an exception if the session token is not valid.
String setStartDate(String token,long newsID,String date)
Does the same as updateNewsItemField(token,newsID,"Validity","Start",date), see below.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
dateStringThe start date as ISO-Date string
Returns:
Exceptions:
an exception if the session token is not valid.
String updateNewsItemField(String token,long newsID,String dataGroup,String fieldName,String value)
Updates a news item field. For the supported fields see the documentation of getNewsItemField.
Parameters
nametypeDescription
tokenStringThe session token which can be obtained from the login funktion.
newsIDlongThe newsID of the item to be deleted
dataGroupStringThe dataGroup of the given field
fieldNameStringThe name of the given field
valueStringThe new value of the field
Returns:
the news field as string. if the dataGroup or the field is not found an empty string is returned.
Exceptions:
an exception if the session token is not valid.

 

 

| Demo | Kontakt | Sitemap | USP | Nutzen | Service | Downloads |


7 Services - Business Solution Design


Deutschland - München - Headquarter
Mettnauerstraße 3, 81245 München
fon ++ 49 89 74 54 54 90
fax ++ 49 89 74 54 54 89
E-Mail: munich@7Services.de

Deutschland - Freiburg / Brsg.
Wilhelmstraße 38, 79098 Freiburg
E-Mail: freiburg@7Services.de

Schweden - Stockholm
Royal Institute of Technology
E-Mail: stockholm@7Services.de

 
     
  | COPYRIGHT 2002 | 7 Services | Disclaimer |