cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Development Component (DC) project for the Web service?

Former Member
0 Kudos

Hi experts,

I was refferring to this url:

<a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/037446dcc721ace10000000a1553f6/content.htm">http://help.sap.com/saphelp_nw70/helpdata/en/43/037446dcc721ace10000000a1553f6/content.htm</a>

How can i create Development Component (DC) project for the Web service?

I m unable to do that.

Please help me out.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pankaj,

Link you have given is for converting portal service to web service. Do you want to add this converted Web Service to DC?

If you want to create a new Web service into a DC, it is straight forward , select DC component project ,select the type "web services" choose standalone or deployable based on your need.

Thanks,

Vijay

Former Member
0 Kudos

Hi Vijaya,

I have created a web service out of portal service, but i m unable to use it.

I dont know how can i add/expose it to the "wsnavigator".

Please help me out.

I will be very thankful to u.

Former Member
0 Kudos

Hi Pankaj,

Once you deploy the Web Service into portal, it will be visible in the WSNavigator.

Thanks,

Vijay

Former Member
0 Kudos

Hi vijaya,

How to deploy WS into Portal?

Former Member
0 Kudos

Hi vijaya,

I did following to create a web service out of portal service:

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.

I got 3 WSDLs as a result included in my project.

Now i m unable to expose my Web Service in to the WSNavigator????

How to do that???

Former Member
0 Kudos

Hi Pankaj,

Steps you have fallowed is correct, it should have created 3 files with the .wsdl in the same project.Portalapp.xml will also be updated by the studio. Now you need to deploy this project (normal procedure).

you can see the wsdl file using this url..

http://<server>/irj/servlet/prt/soap/<proj name>

you can also see in the system configuration-SOAP-Web services.

Hope it helps!

Thanks,

Vijay

Former Member
0 Kudos

Hi Vijaya,

On using this url

http://<server>/irj/servlet/prt/soap/<proj name>

i m getting the following error on my browser page

-


Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

Access denied (Object(s): com.sap.portal.system/security/sap.com/NetWeaver.Portal/high_safety/com.sap.portal.runtime.system.console/components/default).

Exception id: 04:46_03/12/07_0128_14261850

See the details for the exception ID in the log file

-


Former Member
0 Kudos

Hi Pankaj,

you have to remove the "security level" tags from the portalpp.xml and then deploy again.

Thanks,

Vijay

Former Member
0 Kudos

Hi Vijay,

I checked portalapp.xml, there is no security-level tag present there.

Former Member
0 Kudos

Hi Vijay,

Thanks for ur replies,

Folllowing link is working:

<a href="http://ps3075:50100/irj/servlet/prt/soap/com.sap.portal.prt.soap.myService">http://ps3075:50100/irj/servlet/prt/soap/com.sap.portal.prt.soap.myService</a>

But how do i use this webservice in my j2ee application?

Can u give me an example for how to access the function of a web service from any java program?

Former Member
0 Kudos

Hi Pankaj,

Have you considered creating the Web Dynpro application to access the web service? It does have a wonderful wizard and it is also quite simple to create an appliation. Here is also an example with wizard on

Creating a web service with attachments

http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm

Regards,

Dharmi

Message was edited by:

Dharmi Tanna

null

Answers (0)