Fórum

Problem in creating new category through SOAP Client

thumbnail
Luis Pok Leong, modificado 16 Anos atrás.

Problem in creating new category through SOAP Client

New Member Postagens: 11 Data de Entrada: 21/12/06 Postagens Recentes
In the test case of Liferay source
src/com/liferay/test/client/portlet/messageboards/MessageBoardSoapTest.java , also the only source of all other portlet components.


public void test() {
		try {
			long plid = TestConstants.PLID;
			long parentCategoryId = 0;
			String name = "Test Category";
			String description = "This is a test category.";
			String[] tagEntries = new String[0];

			String[] communityPermissions = new String[0];
			String[] guestPermissions = new String[0];
			MBCategorySoap category = getMBCategoryService().addCategory(
				plid, parentCategoryId, name, description, communityPermissions,
				guestPermissions);
			}
			...


After you create the new category, (Ok! I can get it by .getCategoryId() for example, 10622) in the category soap object. I can also view other properties of it. But......

But I CAN'T see this new caregory in the Portlet Interface! emoticon

I have try in my own source and try to test out any other problem.....
I can create and successfully retrieve the object my .getxxxId() method but I never seen it on the portlet. It always shows me the category I created in the Portlet UI but not the Category by SOAP Client API. I doubt this is a bug in Liferay Portal. emoticon

Can anyone give me some suggestion?

I am wondering the Layout ID (plid) cause some problems on it. But I can't notice why..

I am using Liferay Portal 4.3.4

Best Wishes and Happy Adventus!