Skip to Content

How to reference my Portal Service in Web DynPro?

Hi all,

I have created a Portal Service using the instruction from "Portal SDK -> Creating Web Service".

I can see the Service in the Portal and I can also execute it by entering its url to get the wdsl.

However, I can not reference it from Web DynPro (WD).

My WD ear is deployed but I'm getting an exception when I try to launch the WD application:

"Reason: it has hard reference to resource NewParProject with type application, which is not active on the server.

" - You can exchange NewParProject with whatever I tried as reference.

I simply don't know what to put in the "Sharing References" tab and I think I tried everything..

The following is a part of my portalapp.xml:

<application>

<application-config>

<property name="SharingReference" value="com.sap.portal.runtime.application.soap">

</property>

</application-config>

<components>

</components>

<services>

<service alias="MyTimeService" name="MyTimeService">

<service-config>

<property name="className" value="com.sap.fn.time.MyTimeService">

</property>

Entries I tried as a reference are:

PORTAL:sap.com/NewParProject.MyTimeService

PORTAL:sap.com/MyTimeService

PORTAL:sap.com/com.sap.fn.time.MyTimeService

PORTAL:sap.com/NewParProject (which is btw. my par name)

Any help would be appreciated

Thanks,

Frank

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 12, 2005 at 07:38 PM

    I finally figured it out..

    Sharing Reference:

    PORTAL:sap.com/NewParProject

    code:

    WDPortalUtils.getServiceReference("NewParProject.MyTimeService");

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.