cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice

Former Member
0 Kudos

Hi All,

I have to develop the scenario Webservice to PI to R/3.I gone through the blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2292. [original link is broken] [original link is broken] [original link is broken] I understood up to testing part.I am confused at Developing and Deploying a simple Webservice part. Is it mandatory configuration?

Thank you,

regards,

Kartikeya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey,

Deployement of Web Services:-

Step 1)

In your NDS(Netvewear development studio i.e java editor)

Goto Windows->Open Perspective->J2EE development.

Step 2)

Goto File->new->Ejb module(give project name).

Step 3)

Right Click on the <project name> eg. work_ejb select new->Ejb.

Step 4)

Give an appropriate EJB name and default package (eg. com.xxx.yyy).

Also select stateless Ejb.

Click next then next and then next.

Step 5)

Add method with an appropriate name.

Mention the return type and also assign the required parameters.

Logic is written in the EJB module bean.

Step 6)

Right click on the <project name> and build.

Creates .jar

Step 7)

Goto File->new->Enterprise Application project(to create EAR)

Step 😎

Give project name, assign EJB and build.

Creates EAR.

Step 9)

Right Click on the EJB.

Goto new->Web services.

Specify name of the web service.

Specify EAR in the WEB service.

Step 10)

Build EAR.

Build Ejb.

Step 11)

Goto Windows->Prefrences->SAP j2EE engine.

Give the message server host name.

Step 12)

Right Click on EAR and deploy.

Step 13)

Goto-> http://<host name>:<port no.>/index.

Step 14)

Choose the web service name,test it and download it(default WSDL).

Step 15)

Import port(WSDL) in External definition of SAP PI.

reward points if useful,

regards,

Milan

Answers (3)

Answers (3)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi,

It should be mandatory, based on the webservicess only it takes the data from the source.

Former Member
0 Kudos

Hi ,

Please let us know exactly what you are referring .

Pls let us know your requirement ( source & target ) & details.

Regards,

Kishore

Former Member
0 Kudos

Hi Nanda,

In my scenarion Source is remote webservice and target is R/3 system.I need to pass the data which is coming from remote webservice to R/3 through PI.

As of my understanding we can provide the WSDL document to remote webserver client by defining the webservice in integration directory. We can test it by using Altovaxmlspy.

I am not getting the purpose of this step(deploying webservice through NWDS).

Thank you

kartikeya

prateek
Active Contributor
0 Kudos

In ur scenario, "Developing and Deploying a simple Webservice" is not a mandatory part.

This is because u already have a remote SOAP client to send the request to PI.

Regards,

Prateek

Former Member
0 Kudos

Thank you prateek my doubt is cleared now. I will start the development.

points awarded

kartikeya

Former Member
0 Kudos

Hi ,

As far as i understood, ur scenario is Webservice - pi - RFC.

For that you dont have to deploy anything any where.

Go thru the following link:

which basically is step to step guide for Webservice - pi - Jdbc, you need to take care that you are doing this for RFC as receiver. Once you are done with the configuration, in Integration Directory you have the option Tools->Define Webservice.. Give the details of your Outbound interface.

Generate the wsdl and give it to the remote web development team. They can make the call to XI system from their application using this WSDL.

Regards,

Shailesh

Former Member
0 Kudos

Hi ,

In this case you need to provide WSDL for remote application to create a web service based application.

I am not getting the purpose of this step(deploying webservice through NWDS). -


You need to use NWDS to develop a webservice appliaction using java proxy which will be running on SAP XI WebAS to server the request from external systems.

Regards,

Kishore