cancel
Showing results for 
Search instead for 
Did you mean: 

REST Web service

former_member190536
Participant
0 Kudos

Hello,

How to make PO web service as Restful web service? Or can we make 3rd party application call our PO web service into Rest web service call?

1. I have web service as SOAP -> RFC scenario . This SOAP is PO Web service. Now 3rd party system  want to call this Web service into Restfull call from their .Net application, can we take those call? If yes how to change the web service configuration? I am using PI 7.4 version. Does I need to use REST Adapter? Or with existing SOAP or HTT_AAE adapters can I set that?If yes how to do that?

2. I have another scenario for acknowledgement, Proxy to Web service, This one also they need REST web service. So with SOAP adapter we can set this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member186851
Active Contributor
0 Kudos

Hello Khaja,

For Case 1:

Rest protocol is not supported by Soap Adapter.So you should have rest adapter .configure it and give the endpoint to third party team.They can trigger the message to PO.

For Case 2:

Rest webservice is already there?Then again you need to have rest adapter.If you wish to make Http call and get a response go ahead with Soap adapter.

Below link can be referred for all rest scenarios

former_member190536
Participant
0 Kudos

hi,

Yes I installed the REST Adaptor, Now how to provide the url to them? from where I will get that URL?

former_member186851
Active Contributor
0 Kudos

Hello Khaja,

Refer the the link I shared.

PI REST Adapter - Blog Overview

It has all the various REST scenarios.


Endpoint will like something below

http:<myHost>:<myPort>/RESTAdapter/API/V2.0/Customer.

former_member182412
Active Contributor
0 Kudos

Hi Khaja,

Add this http://<host>:<port>/RESTAdapter endpoint parameter in the sender channel then it will be your sender adapter URL. Check above mentioned blog for more details.

URL: http://<host>:<port>/RESTAdapter/demo/query/customer

Regards,

Praveen.

former_member190536
Participant
0 Kudos

hi,

I am getting the following error message.

with URL i am using http://c01xdcap.sss.com:50100/RESTAdapter/SI_SourceInvoice_REST

Error

No channel found to handle "GET" request to "/SI_SourceInvoice_REST"

REST_Sender_POC
OURL "/SI_SourceInvoice_REST" matches configured endpoint "/"
XURL pattern "/{service_part}/{resource_part}/{id_part}" matches request URL "/SI_SourceInvoice_REST"Invalid number of elements in URL "/SI_SourceInvoice_REST". 3 expected, 1 received.
RESTSenderInvoice_InfoAXS
OURL "/SI_SourceInvoice_REST" matches configured endpoint "/"
XURL pattern "/{service_part}/{resource_part}/{id_part}" matches request URL "/SI_SourceInvoice_REST"Invalid number of elements in URL "/SI_SourceInvoice_REST". 3 expected, 1 received.
former_member186851
Active Contributor
0 Kudos

Hello Khaja,

Please post your channel configurations.

former_member182412
Active Contributor
0 Kudos

Hi Khaja,

Channel Selection tab endpoint give like below.

Just give the pattern as '/' in REST Resources and test the scenario.

Regards,

Praveen.

former_member190536
Participant
0 Kudos

hi,

Sender REST adapter configuration, plz find the attachment.

former_member186851
Active Contributor
0 Kudos

Hello Khaja,

As Praveen suggested make sure you maintained end points.

former_member190536
Participant
0 Kudos

hi,

I set as per your suggestion

Now i am getting following error.

Error

GET variable GET not found
former_member186851
Active Contributor
0 Kudos

Hello Khaja,

Try like below,It worked for me.

former_member190536
Participant
0 Kudos

hi Praveen,

Can you send me the complete screen shots of the communication channel?

former_member190536
Participant
0 Kudos

from SoupUI we can call this REST web service? if yes then how to call this?

Now from browser  now I am getting the following message.

What is expected from browser? How to identify this URL is working?

This XML file does not appear to have any style information associated with it. The document tree is shown below.

former_member182412
Active Contributor
0 Kudos

Hi Khaja,

Rest Operation tab look like below, last tab Operation Determination no need to give anything.

And use HTTP operation POST when you send the message.

Regards,

Praveen.

former_member186851
Active Contributor
0 Kudos


you can call from SOAP UI..

Give this endpoint in the SOAP UI and the XML input,message will be triggered to SAP PI rest adapter.

former_member190536
Participant
0 Kudos

hi,

How to test this REST web service from SOAPUI? I used  this url from soapui then it is not coming anything when I post it.

How use test data in it?

former_member186851
Active Contributor
0 Kudos


Ok..you can try testing mozilla rest client as well

former_member190536
Participant
0 Kudos

ok, Now I can able to rest in SOAPUI, now it is working, now I can able to send data to RFC from REST call, thank you all for helping me.

problem is I provided the test file of SOAP adapter in soapui for REST service, I correct the test data then it is working.

Regards,

Khaja.

Answers (0)