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
Similar Messages
-
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 -
Converting Poral Service to Web Service
Hi
Can any one help me in converting a portal service to a web service or point me to a link where i can get some documentation on the same.
Rgds
NagaKishoreHi NagaKishore,
This following link has great tutorial on how to creat a webservice from portal service.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/unkown/how to create a web service from a portal service.mht
PS:Please reward points if this is any help to you .thank you. -
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
SathishHi
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 -
Need info on Accessing portal services within a Web Dynpro application
Hi,
I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
Thanks in advance.
Rajani NHi
how to reference a portal service with web dyn pro ?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
Best Regards
Jakub Krecicki -
Urgent- Issues in Creation of Web Service extending Portal Service
Hi Experts,
I am facing following issues,
1.I've created Portal Service and extended it as Web Service, this web service I am not able to view in Webservice Navigator.
2.When I am trying to send request to WS from EP Web Service checker in NWDS I am getting an error that "The User Authentification is not correct to access to the Portal Service com.sap.portal.prt.soap.PortalUMEService or the service was not found"
Any Help from you is highly appreciated.
Regards,
Maruti Prasadhi Marti ,
I have few pdf Reg this i did sample WSDl and tested its workingf fine
plese send me e mail i will send you
Regards ,
venkat -
How to make use of Portal service in the web dynpro application
hi
I have some portal service and how to use that in the web dynpro application.
and also what is the main diff between Portal Component and web dynpro application.
do we required portal to run web dynpro application.
thanks
mmukeshHi,
>> I have some portal service and how to use that in the web dynpro application.
Yes. U can use Portal service in webdynpro. Check the link given by subathra.
>> and also what is the main diff between Portal Component and web dynpro application
Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
>> do we required portal to run web dynpro application.
No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
Regards,
Vijai -
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 DanielHi 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
DominiqueHIIII...
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 -
Making portal services as web services
hi,
i have created a portal service. i want to publish this as web service . anyone know how to do this ...
padmahi padma,
in your project folder follow the path new->other->portal application -> portal application object ->
portal web services -> portal web services from portal services and select ur portal service.
to view ur wsdl file go to System administration->support->portal runtime -> soap admin -> web services
Regards,
jeyasingh Samuel -
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. -
DB access in Web Dynpro Portal Service / or EJB with WebService ?
Hi,
I will develop a web dynpro application which will run in the EP and use an DB. How are the best practices in this scenario ? Should I use a Web Dynpro Model (EJB or WebService) for the persistence operations or should I use Portal Services ?
Regards
FloThanks,
ok some words more... , I want to find out the differences between VC, PDK and Web Dynpro. Most of the parts of the application will be written in Web Dynpro. It´s possible to access portal services in Web Dynpro. But not with a Web Dynpro Model, so will going to use EJB/Webservice.
But here I have one more question... I am wondering why EJB a n d Webservice in combination !?!? Can´t I only write a Webservice o r a EJB to achieve the DB connectivity ?
Thanks
Flo -
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 -
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 AponteHi Luciano,
Take a look at for your answer:
/thread/833576
Regards,
Rogério -
Calling portal service from web service
Hello,
I'm trying to call portal service from web service. Is this possible? I'm getting an error.
For example, code:
IJCOClientService clientService = (IJCOClientService) PortalRuntime.getRuntimeResources().getService(IJCOClientService.KEY);
.. is generating exception:
java.lang.LinkageError: Class com/sapportals/portal/prt/runtime/IPortalRuntimeResources violates loader constraints
Do anybody knows what's wrong?
Best regards,
Josef MotlHi Josef,
Is the IJCOClientService located on the producer side or on the consumer side?
Amit
Maybe you are looking for
-
I have Apple Mail set up to read my Gmail imap account. Occasionally I'll receive an attachment that is just all code. Example: IHDR ½H(\)iCCPICC Profilex½kaÇ?(-ã±t8ªBZ®/Rë6/%ö¨Gz¶I'»kÍËÃå«Vè h.X7;8¸8`tqòhéRJÎ� ?xàóûñ{{¾ÏÁ¼P 9vfzJÎæå
-
Image size format in PS Touch Ipad
Hi folks, I cannot understand what the image size box is giving me. I assume it to be mm or pixels. However if I enter say - 50.0 as assumed 50.0 mm, it reduces the image to a ridiculously small size. I wanted that size as it is what I need to upload
-
Pages Crash: Possible Document Recovery?
Hey, as I was inserting a table into an extensive lab report I was typing Pages crashed. I selected relauch from the crash window and was not greeted by a recovered version of my document. The last time I saved was a about and hour ago, and I would r
-
Remove/hide navigation panel header
Hi, I tried making the expand and collapse icons to 0px and also made the detailed navigation iView "tray" property to false but it did not help me. I have to hide or remove the navigation panel header(the expand/collapse panel). Thanks in advance. R
-
Defferla Sales Tax Benefit.
Dear Gurus, Our implementation is for automobile spare parts industry sold to dealers all over country. We have a particular case where a same / single part can be both manufactured in the company or the same part can also be bought out part (externa