cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a portal service from the J2EE server library?

Former Member
0 Kudos
37

Hello SDN community,

please tell me to call a portal service from the login module (J2EE server component library)?

Thanks a lot for your help ...

Cheers,

An

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member698570
Active Participant
0 Kudos

Hi,

I did not try yet but you should try setting a sharing reference to the portal service by creating a new reference in your custom library (provder.xml > TAB References). From your library code you should then be able to invoke the Portal Service.

Cheers

Former Member
0 Kudos

Thanks for your answer.

But I couldn't get it. I put the following line in the provider.xml:

<reference provider-name="sap.com" strength="weak" type="library">com.sap.netweaver.bc.uwl</reference>

Then I see the error in the server log:

Classload error; cannot load library LoginModuleLibrary because referenced component com.sap.netweaver.bc.uwl not found.

Have you any idea?

Thanks a lot for your help

former_member698570
Active Participant
0 Kudos

Hi,

when referencing a library I think the Syntax should be as follows:

SAPJ2EE::library:<library>

So try:

SAPJ2EE::library:com.sap.netweaver.bc.uwl

But I'm not sure if "com.sap.netweaver.bc.uwl" really is a library.

If this doesn't work let me know and I'll think of some other way you could try!

Cheers

Former Member
0 Kudos

Thank you for your reply. But it does not function.

I'm trying to call a portal service (P8SystemPoolService) from a login module library.