cancel
Showing results for 
Search instead for 
Did you mean: 

External program to create content in portal

MauricioMiao
Contributor
0 Kudos

Hi all,

I need to develop a program in an external program to feed portal content with news documents.

This external program is placed in Lotus notes.

The idea is to create portal content with e-mail information and some other documents placed in Lotus notes.

Does anyone know how can I do that?

I think there are 3 main steps involved, first create the "program" inside lotus notes server, and this program has to call a component inside portal to create the content in there. I've got some information on how to create this component inside portal but I want to find out if it is possible to call it outside portal or if there is a better way to do that.

Regards,

Mauricio

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mauricio,

I think the best would be to create a Portal Service which can create Portal Content or HTML files in KM. You can very easily expose this Portal Service as a web service to be consumed by external applications in your case this will be Lotus Notes

Hope this helps

P.S. Please reward points for helpful answers on SDN

MauricioMiao
Contributor
0 Kudos

Thanks for your help, I will try it.

Regards,

Mauricio

PS Don't worry, I never forget to reward points.

MauricioMiao
Contributor
0 Kudos

Hi,

I created a Portal Service and I was able to expose it as Web Services.

But I have one doubt now, to be able to access KM I have to use KM API, ok that is not a problem, I just inserted external JAR in the project and it was generated without problems.

But when I publish the par file to the portal I get the the error:

java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException

This is one class i had to add to the project to interact with KM.

Does anyone know how to solve it?

Regards,

Mauricio

detlev_beutner
Active Contributor
0 Kudos

Hi Mauricio,

> I just inserted external JAR in the project

Oh, please don't do that (if you have really done this). All you have to do is to add an external JAR to the build path (that is different from really putting a JAR into the project).

> java.lang.NoClassDefFoundError

You need to add the SharingReference within the portalapp.xml for the portal application in question. In general:

If you need .../WEB-INF/portal/portalapps/com.sap.portalappABC/lib/some.jar to get the project build, add "com.sap.portalappABC" as SharingReference into portalapp.xml.

Hope it helps (for sure it will)

Detlev

MauricioMiao
Contributor
0 Kudos

Hi Detlev,

Yes, I was not clear enought, I did not "insert" the JAR into the project, I described it in a wrong way.

Thanks for the answer, it is exactly what I need.

Regards,

Mauricio

Answers (0)