Quantcast
Viewing all articles
Browse latest Browse all 3876

Error while consuming custom portal service

Hello,

 

I have created a Portal service in EP7.3

I have used DC -> MyComponents

Vendor is demo.sap.com

 

Below is details of application

 

Portal Service Provider Application

----------------------------------------------------

Name : portalserviceprovider

Type : DC

Vendor : demo.sap.com

Service class : PercentCalculator

 

public interface IPercentCalculator extends IService

{

    public static final String KEY = "demo.sap.com~portalserviceprovider~PercentCalculator";

                                     

    public float getPercentage(float num, float den);

}

 

I have implemented this class in PercentCalculator

 

I right clicked on IPercentCalculator ans select Development Component -> Publish

Created Public part named API of type compilation.



 

Portal Service Consumer Application

----------------------------------------------------

Name : portalserviceconsumer

Type : DC

Vendor : demo.sap.com

 

in portalapp.xml I have used below referencing

<application>

  <application-config>

 

  <property name="SharingReference" value="demo.sap.com~portalserviceprovider"/>

</application-config>

 

I have added buildtime, designtime and compile time dependency from portalserviceconsumer to portalserviceprovider

 

I am getting below error :

---------------------------------------

 

[EXCEPTION]

com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component

Application name : demo.sap.com~portalserviceconsumer

Component : pcd:com.sap.portal.system/gpal_hidden_content/gpar/demo.sap.com~portalserviceconsumer/PortalServiceConsumer 

 

Caused by: com.sapportals.portal.prt.service.ServiceException: Error while retrieving service: demo.sap.com~portalserviceprovider~PercentCalculator

 

Caused by: com.sap.portal.prt.broker.PortalModuleNotFoundException: Could not retrieve portal application demo.sap.com~portalserviceprovider~PercentCalculator 


Viewing all articles
Browse latest Browse all 3876

Trending Articles