留言板

Problem to display JournalArticle inserted by SOAP web service

thumbnail
Jacques Traore,修改在11 年前。

Problem to display JournalArticle inserted by SOAP web service

Junior Member 帖子: 49 加入日期: 13-1-21 最近的帖子
Hi there. This is the 3rd day the following issue is killing me softly.
I use Liferay 6.1.1-ce-ga2 bundled with tomcat server and oracle 10g database.
My goal is to insert some content, as Journal article, and display them in an asset publisher (with a structure and template, already working).
I used JournalArticleServiceSoap.addArticle(...) with the right fields (groupid, structureid, templateid, ...). The contents are "correctly" inserted in the database and I can see them inside web contents from administrator content panel. The contents have also "Approved" as status. this is done by setting
serviceContext.setWorkflowAction(WorkflowConstants.ACTION_PUBLISH)
.
However, I can't see the inserted contents displayed with the other contents in the asset publisher, until I open it again for edition and click on publish button (even without changing nothing). Then the content is published as expected. The problem is the number of contents. It is about 600 so I can't to this action for each one.
I do not understand what is the matter and how to figure it out??? In other words, what do I have to do to make web content, inserted by web service, displayed automatically?
Or, what does the "Publish" do exactly so I can try to reproduce programmatically with SOAP service (or SQL after insertion)?

Thank you by advance for your help.
Đorđe Torbica,修改在10 年前。

RE: Problem to display JournalArticle inserted by SOAP web service

New Member 帖子: 7 加入日期: 14-2-21 最近的帖子
Hi,

how did you solve this problem? I have same problem with blogentry.

Thank you.
thumbnail
Jacques Traore,修改在9 年前。

RE: Problem to display JournalArticle inserted by SOAP web service

Junior Member 帖子: 49 加入日期: 13-1-21 最近的帖子
Hi Dorde,
Unfortunatly I did not find another way. Yet.
Since I don't update my contents using SOAP so many times, I used the workaround (republishing the content through the control panel) to get it working.
This is really shame because the feature was very interesting.

Sorry.