Note that there are some explanatory texts on larger screens.

plurals
  1. POFetching articles form Liferay portal
    primarykey
    data
    text
    <p>Our goal is to fetch some of the content from Liferay Portal via SOAP services using Java. We are successfully loading articles right now with JournalArticleServiceSoap. The problem is that the method requires both group id and entry id, and what we want is to fetch all of the articles from a particular group. Hence, we are trying to get the ids first, using AssetEntryServiceSoap but it fails. </p> <pre><code>AssetEntryServiceSoapServiceLocator aesssLocator = new AssetEntryServiceSoapServiceLocator(); com.liferay.client.soap.portlet.asset.service.http.AssetEntryServiceSoap assetEntryServiceSoap = null; URL url = null; try { url = new URL( "http://127.0.0.1:8080/tunnel-web/secure/axis/Portlet_Asset_AssetEntryService"); } catch (MalformedURLException e) { e.printStackTrace(); } try { assetEntryServiceSoap = aesssLocator .getPortlet_Asset_AssetEntryService(url); } catch (ServiceException e) { e.printStackTrace(); } if (assetEntryServiceSoap == null) { return; } Portlet_Asset_AssetEntryServiceSoapBindingStub assetEntryServiceSoapBindingStub = (Portlet_Asset_AssetEntryServiceSoapBindingStub) assetEntryServiceSoap; assetEntryServiceSoapBindingStub.setUsername("bruno@7cogs.com"); assetEntryServiceSoapBindingStub.setPassword("bruno"); AssetEntrySoap[] entries; AssetEntryQuery query = new AssetEntryQuery(); try { int count = assetEntryServiceSoap.getEntriesCount(query); System.out.println("Entries count: " + Integer.toString(count)); entries = assetEntryServiceSoap.getEntries(query); if (entries != null) { System.out.println(Integer.toString(entries.length)); } for (AssetEntrySoap aes : assetEntryServiceSoap.getEntries(query)) { System.out.println(aes.getEntryId()); } } catch (RemoteException e1) { e1.printStackTrace(); } </code></pre> <p>Although getEntriesCount() returns a positive value like 83, getEnries() always returns an empty array. I'm very new to Liferay portal, but it looks really weird to me. </p> <p>By the way, we are obviously not looking for performance here, the key is just to fetch some specific content from the portal remotely. If you know any working solution your help would be much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload