Exposing portal service as web service problem

Hi ..
        I am trying to create a web service from a portal service but in the creation wizard no interfaces are showing up for selection. Does any have any idea about why i couldn't able to see any interfaces..

Hi,
check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/037446dcc721ace10000000a1553f6/frameset.htm
(Rewards points for helful answers)
Regards,
Gunjan

Similar Messages

  • IWAB0014E Unexpected exception - Exposing Portal Services as Web Services

    Hi!
    I try to expose a Portal Service as a Web Service:
    [Exposing Portal Services as Web Services |http://help.sap.com/saphelp_nw72/helpdata/en/49/e44e702784751be10000000a42189b/frameset.htm]
    While using the wizard the following exception is rising:
    IWAB0014E Unexpected exception occurred.
          java.lang.IllegalArgumentException
          at org.eclipse.wst.server.core.internal.facets.FacetUtil.getRuntime(FacetUtil.java:89)
          at org.eclipse.jst.server.core.FacetUtil.getRuntime(FacetUtil.java:59)
          at org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand.setFacetRuntime(CreateFacetedProjectCommand.java:283)
          at org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand.getFacetsToAdd(CreateFacetedProjectCommand.java:219)
          at org.eclipse.jst.ws.internal.consumption.command.common.CreateFacetedProjectCommand.execute(CreateFacetedProjectCommand.java:115)
          at org.eclipse.jst.ws.internal.creation.ui.extension.PreServiceDevelopCommand.execute(PreServiceDevelopCommand.java:191)
          at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:419)
          at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:359)
          at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:254)
          at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$6.run(SimpleCommandEngineManager.java:294)
          at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
          at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
          at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
          at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:264)
          at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:91)
          at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:154)
          at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
          at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
          at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
          at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
          at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
          at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
          at org.eclipse.jface.window.Window.open(Window.java:801)
          at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
          at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
          at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
          at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    Has anybody an idea, or can tell me another way to do for NW 7.2?
    Thanks Daniel

    Hi Ankur,
    Please go through the below link please. It may be helpful.
    Eclipse WTP Tutorials - Creating Bottom Up Web Service via Apache Axis2
    Thanks,
    Hamendra

  • Exposing Portal Services as Web Services

    Hello Portal experts,
    I a newby in Portal development and I'm currently trying to write a service portal wich I want to expose as a Web Service.
    I found a [documentation|http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/content.htm] wich enabled me to create a portal service and a web service (it simply contains a ping method) into a development component as indicated.
    But when I'm trying to build the Project, no SDA file is generated and no error messages are displayed !?
    Does someone have any clue?
    Thank you
    Dominique

    HIIII...
    Use this link ..
    it will be usefull 4 u.
    [http://help.sap.com/saphelp_nw2004s/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm]
    thanks..
    Regards
    Mayank Saxena

  • Expose Portal Service as Web Service

    Hi,
          How to expose a portal service in CE as a web service? My development need to be a portal service as I need the service profile for storing data.
    Thanks
    Sathish

    Hi
    Follow this
    1. [How to expose/convert my Portal Service as/to a Web Service??   |/thread/655157 [original link is broken];
    2.[Creating an Integration Process and expose it as a web service   |Creating an Integration Process and expose it as a web service;
    BR
    'Satish Kumar

  • Publishing portal service as Web Service !!

    Environment : EP 6.0 Sp2 on J2EE 6.20.
    Is there a way to publish web service for existing portal services ??

    I have upgraded to EP 6.0 SP4. Is there a way to expose portal services as web service since the Netweaver Studio does not have the same wizards as that of SP2 ??
    The tutorial for EP 6.0 SP4 shows how to expose EJB's using the new wizard but if I want to expose an existing portal service, how would I do it ??

  • Portal service as webservice?

    hi,
    How to expose portal service as webservice? Any template kind of thing to achieve it?
    Regards,
    S R

    hi,
    See this documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/f0/581140d72dc442e10000000a1550b0/frameset.htm
    Regards,
    Ganesh N

  • How to expose/convert my Portal Service as/to a Web Service??

    Hi Experts,
    How can i expose my Portal Service as a Web Service??
    What configuration i need to do for that???
    Please reply.
    Help will be rewarded and Appreciated.

    hi
    In NWDS go to
    New ->other -> portal application -> portal application object ->
    portal web services -> portal web services from portal services and select ur portal service.
    Generate portal web service with PDK wizard by choosing  Portal web service from portal service
    Select the interfaces by clicking the browser button.
    select the methods to be exposed to web service.
    Now WSDL files are generated for portal services.
    You can view the WSDL by going to
    System administration->support->portal runtime -> soap admin -> web services
    Regards,
    Ganesh N

  • Blank SOAP Action in Soap Request- Portal Service calling Web Service

    Hi
    I'm trying to access an Web Service through a client portal service which was generated by NWDS. I called this service from a basic component and tried to execute the WS function after populating all the needed fields. When I started the component I encountered the following error.
    java.lang.IllegalArgumentException: The SOAP Action "" include in the soap request not corresponding to the Portal service method..
    I initially thought it was because I was downloading the WSDL to my local and using that in the portal service generation. Maybe not all the information about the web service was being obtained. I tried it again after generating the portal service from the WSDL online but still obtained the same error.
    Any insight on what's causing the error would be appreciated. Thanks!

    Dear expert.
    i got the same problem with Reyes. anyone can solve this issue?
    thank in advance.

  • Access Portal Services within Web Dynpro

    Hi,
    I created a portal service and would like that some values of the same have to be set by a Web Dynpro application, but i have a problem to access this
    service. Always that a i try to get a reference of this service the object isn't instantiated and i get a null instantiated.
    What i`m trying to do is the broadcast message described in [/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1 |/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1]with a variation that need of some
    more Attributes and that the same will be pass by the Web Dynpro, like the broadcast message i`ll just use the alert concept and don't the publication.
    Follow below the describe of executed actions.
    1 - I did all the process as the [Weblog|/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1].
    2 - I generated the Jar and insert the same in a DC.
    3 - I generated the Web Dynpro application, in the used DCs and added the DC with the Jar, and i inserted the reference in a Sharing References. 
    4 - Did the deploy and insert the Web Dynpro in a Portal Iview.
    But always that i execute, i can't capture the reference of the service.
    Note: The reference in Sharing References was executed for several diferents forms of test, like for exemple:
    PORTAL:<vendor>/com.teste.broadcast
    PORTAL:com.teste.broadcast
    PORTAL:<vendor>/com.teste.broadcast.alertreceiver
    PORTAL:com.teste.broadcast.alertreceiver
    But always adding one at a time.
    Until put the saller like sap.com i already try.
    The creation of the service as described in the weblog can be accessed for a Web Dynpro? What the problem to access the Service??
    The codes follow Bellow.
    portalapp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.runtime.system.notification"/>
        <property name="ServicesReference" value="com.teste.broadcast"/>
      </application-config>
      <services>
        <service name="alertreceiver">
          <service-config>
            <property name="className" value="com.teste.broadcast.alertreceiver"/>
          </service-config>
        </service>
      </services>
    </application>
         BroadcastAppView.java
    import com.sap.security.api.IUser;
    import com.sap.tc.webdynpro.clientserver.portal.WDPortalUtils;
    import com.sap.tc.webdynpro.clientserver.portal.sf.WDPortalServiceType;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sapportals.portal.prt.service.notification.INotificationService;
    import com.sapportals.portal.prt.service.notification.NotificationStringBufferPool;
    import com.sapportals.portal.prt.service.notification.StreamData;
    import com.sapportals.portal.prt.service.notification.TopicData;
    import com.sapportals.portal.prt.service.notification.TopicDataContainer;
    import com.teste.broadcast.Ialertreceiver;
    public void onActionSendMessage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSendMessage(ServerEvent)
            IWDMessageManager msgManager = wdComponentAPI.getMessageManager();
            INotificationService notService = null;
            try {
                    notService =    (INotificationService)
                            WDPortalUtils.getServiceReference("com.teste.broadcast");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference("com.teste.broadcast.alertreceiver");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference(IAlertreceiver.KEY);
            } catch (Exception ex) {
                    msgManager.reportWarning("2-" + ex.getMessage());
            TopicDataContainer container = new TopicDataContainer(TOPIC_NAME);
            StreamData  messageStream = new StreamData(new ByteArrayInputStream(textMessage.getBytes()));
            TopicData durationdata =
                    new TopicData(TopicDataContainer.STRING, "60");
            TopicData userdata =
                    new TopicData(TopicDataContainer.STRING, user.getUniqueName());
            container.addTopicData("message", messageStream);
            container.addTopicData("duration", durationdata);
            container.addTopicData("user", userdata);
            container.addTopicData("group", "GROUP_ACCESS");
            //notService.publish(TOPIC_NAME, container);
            msgManager.reportWarning("-" + notService);
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private final static String SERVICE_NOTIFICATION = "com.sap.portal.runtime.system.notification.notification";
      private final static String TOPIC_NAME = "USTBroadCastAlerts";
      //@@end
    Thank.
    Luciano Feletti Aponte

    Hi Luciano,
    Take a look at for your answer:
    /thread/833576
    Regards,
    Rogério

  • Calling a Portal Service from within a Web Dynpro DC

    Hello,
    I am trying to call a Portal Service from within a Web Dynpro development component without sucess.
    Can anyone give me some hints on the necessary steps in order to accomplish this task?
    Thanks
    Diz

    Hi Diz,
    I tried doing the same thing by following the steps as mentioned by you. Just to re iterate,
    1. Created a DC "Portal Application Standalone" project by the name myservice.
    2. Created a portal service inside myservice by the ame AmitsService.
    3. Exposed IAmitsService.class in the public part.
    4 Build and deployed the DC on server and tested it through an abstract portal component and it worked FINE !!
    Now..
    5. Created anoter DC of type WebDynPro
    6. Added SAP_JTECHS -> epbc.prtapi._api as a "Used DC" with dependency build time and runtime
    7. Specified the sharing reference in the properties as PORTAL:sap.com/myservice
    8. Tried to reference the service using the following code..
    IAmitsService portalservice=(IAmitsService)WDPortalUtils.getServiceReference(IAmitsService.KEY);
    9.Build and deployed the DC.
    10. When I run the application I am getting the following error
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.engine.frame.core.load.SAPNoClassDefFoundError: com/sapportals/portal/prt/service/IService
    Exception id: [000D6008418B005C0000002C00000D200004163CE6719E1D]
    PLEASE ADVISE

  • Web dynpro using a portal service

    Hello All,
    We are using the JDI.
    We want to use a portal service DC from a web dynpro DC.
    The web dynpro DC is part of a software component.
    When the portal service is a local DC it is working fine (except failing later on the CBS build)
    but when the service is part of a software component as well I get a runtime exception: a java.lang.NullPointerException.
    The WD sharing reference I'm using is: PORTAL:sap.com/<dc service prefix>.<service name>
    I assume that this is the right reference because without this exact phrase I get a java.lang.NoClassDefFoundError: com/sap/<name of service>
    <b>Does anybody know how to use a portal service that is part of software component?</b>
    Thanks a lot in advance, Adi.

    Thanks Bharathwaj , but I already solved my problem.
    The solution was  to change the next code line in the service client code :
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(Idb_srv.KEY)
    to:
    Idb_srv DB_Service = (Idb_srv) WDPortalUtils.getServiceReference(""<PARFilename>.<service name>");
    Regards, Adi.

  • TP3 bug when exposing app module to web service

    Hello,
    I created a simple appmodule with 3 methods:
    public class AppModuleTestImpl extends ApplicationModuleImplApp
        /**This is the default constructor (do not remove).
        public AppModuleTestImpl()
        public String method1()
            return "hello world";
        public SomeBean method2()
            return new SomeBean();
        public String method3( SomeBean bean )
            return "hello world";
    }I want to expose those methods in a web service but in the "service custom methods" selection I can only see method1 even if SomeBean implements java.io.Serializable:
    public class SomeBean implements Serializable
        private String someField;
        public SomeBean()
        public void setSomeField(String someField)
            this.someField = someField;
        public String getSomeField()
            return someField;
    }The documentation says: "Your custom method parameters and return types can use any datatype that implements the java.io.Serializable interface."
    When I look in the message tab I see this:
    Business Components: Method "method2():SomeBean" cannot be exposed via service interface because the return type "(package).SomeBean" is not supported
    Business Components: Method "method3(SomeBean):String" cannot be exposed via service interface because parameter type "(package).SomeBean bean" is not supported
    where (package) is the correct package of the bean.
    Is this a bug?
    Thanks
    Message was edited by:
    user608288

    Can anyone confirm this problem please?

  • Consume Portal Service from J2EE web application

    hi, i am a newbie to portal content development. My team have developed a J2EE web application to be run on the portal. Is it possible to consume a Portal Service from J2EE web application? If possible, deeply appreciate if you could provide some guidelines. Kindly advise. Thanks.

    Hi Theodore Yu,
    You need to expose your portal service as a webservice to consume it in a j2ee web application.
    For exposing a portal service to webservice check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/frameset.htm
    Thanks,
    Padmaja
    Edited by: Padmaja Pedapudi on May 20, 2008 2:03 PM

  • RFID and web services problem

    Hi,
    I must send event from oracle edge sensor server to a queue throught a web services.
    I have implementing a session stateless ejb and I have exposed it with a web services (in the code there is a method processEvent(long, long, string, string...).
    If the web services is rpc-literal the queue work fine but if the web services is document-literal it doesn't work....
    Can you help me?

    Hi,
    I have solved my problem...with wsconsole I have generated a rpc/encoded web services. It work fine with C#.Net, EJB and Oracle Sensor Edge Server...
    WOW !!!
    Bye Bye
    Mauro

  • Convert portal service to web service option in NWDS

    Hi all,
    I am using SAP NetWeaver Developer Studio (Version: 7.0.14), in this I couldn't find option to convert portal service to web service.
    Please help me out, how to convert portal service to web service through NWDS or any other way to do it.
    Helpful answer will appreciate.
    Thanks,
    Regards,
    Kathiresan R

    Hi
    In NWDS go to New ->other -> portal application -> portal application object -> portal web services -> portal web services from portal services and select ur portal service.
    Generate portal web service with PDK wizard by choosing Portal web service from portal service
    Select the interfaces by clicking the browser button.
    select the methods to be exposed to web service.
    Now WSDL files are generated for portal services.
    You can view the WSDL by going to
    System administration->support->portal runtime -> soap admin -> web services.
    Hope this works for you. Please excuse any small mistakes if I have made.
    Regards,
    Shitij

Maybe you are looking for