cancel
Showing results for 
Search instead for 
Did you mean: 

Can we wrap a RFC as webservice and use from external java application ?

former_member189387
Active Contributor
0 Kudos

Hi Friends ,

Our scenario is call a webservice ( wrapped form of RFC) from a external java application which will pass the input to that webservice and get back the result .

How XI will play a role here ?

Can we wrap a rfc as web service ?

Any blogs for that ?

Can you please give a brief details about this ?

Expecting yoour asap

Best Regards .,

V.Rangarajan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Answers (6)

Answers (6)

Former Member
0 Kudos

you can expose a RFC as a web service on Web AS 6.40 ...refer elearning catalog on SDN...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/3e2f3b5e-0501-0010-d39c-a3a8f... [original link is broken]

once you have the WSDL of the web service thus exposed with you, you can create a standalone web service proxy from that using NWDS and the library generated can be used in a external Java application

No role played by XI in this...

Former Member
0 Kudos

Hi ,

Let me tell u what I have done for this scenario

1.) Build all the data type , Mgg Type , Mgg Interface and Mappings in Repository

2.) Go the directory from Tools generate the webserice

Give in the interface name and other details while generating ur webserive

3.) Open browser http:// <server>:<port>/wsnavigation

4.) Download the WSDL

5.) If u have Netweaver Developer Studio import the model

6.) Build ur code and deploy it

Regards

Kavitha

udo_martens
Active Contributor
0 Kudos

Hi Rangarajan,

i think, you just have to build a simple scenario:

Java Application (WebClient) -> XI SOAP adapter -> Integration Enginge (Mapping and Routing) -> RFC Adapter -> ERP

You can build that synchronous (with response) or not.

<a href="/people/jin.shin/blog/2007/05/21/handling-web-service-soap-fault-responses-in-sap-netweaver-xi">Handling Web Service SOAP Fault Responses in SAP NetWeaver XI</a>

Regards,

Udo

Former Member
0 Kudos

To create a web service, refer the following help doc

http://help.sap.com/saphelp_nw04/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm

regards

krishna

Former Member
0 Kudos

Hi,

Yes we can do this. There are two ways:

1. You import RFC to XI and then create message interface based on it and use it.

2. You can directly create Webservice from a RFC and then there will not be any role of XI

Thanks,

Kulwant

"reward points if useful"

Former Member
0 Kudos

Hi

Can we wrap a rfc as web service ?

Yes.

<i>To use the SAP Web AS 6.40 you need to build a wrapper in the 6.40 system. This is a remote function call (RFC) enabled function module with the same interface or a similar interface that internally calls the required RFC-enabled function module in the old 4.6x system via RFC. The wrapper then can be exposed to the outside world as a Web service. Another option is to use the Integration Broker capabilities for calling Web services in an older system.</i>

How XI will play a role here ?

XI will pass the input to the external java application and get back the result to the webservice

regards

krishna

former_member189387
Active Contributor
0 Kudos

Hi krishna ,

ours is SAP WEB AS 6.20 . Can you explain little bit more .

I am new to xi .

Best Regards .,

V.Rangarajan

Former Member
0 Kudos

Hi ranga

follow this help doc with screen shots to help you create a webservice out of an RFc

http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/content.htm

regards

krishna