Skip to Content
avatar image
Former Member

Calling RESTful webservice in SAP PI

Hello All,

Please drive me for calling RESTful webservice in SAP PI 7.30.

We do not have any REST adapter to call this webservice, I guess SOAP adapter not works. So how we going to achieve this step in PI?

Please share your experience and knowledge on this topic, it was very helpful at this time.

Thank you very much for reading this thread.

Gayatri.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 08, 2014 at 05:06 PM

    Thanks for your valuable advises.

    Following one is design we concerned at this point for development, may be source may change later time.

    for Initial/delta loads, this is one or 2 times.

    File(CSV) --->PI---->Java mapping ---->request---->REST webservice ----->response-->same java mapping ---> PI/JDBC--->DB.

    for recurring loads(live) : source is not decided, based on delta loads then design will change:

    Webpage/webservice(soap)/file--->PI-->java mapping -->request-->REST webservice  --> response--> same java mapping--->PI/JDBC-->fDB.

    Other design concern was, when we get any error while response throw, then we need to catch that error and send a email to users.

    So please tell me , how do I include this step in my design, I think i have to use BPM ? with mail adapter should send this errors.

    If you have chance , pls. explain me BPM flow, if at all.

    May be we may not get firewall issue , because these all applications reside in with in intranet , if at all required I'll contact to Network team.

    Thanks,

    Gayatri.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 07, 2014 at 08:42 PM

    Thanks for your ideas on this question.

    We got our Java code to call that RESTwebservice, in java code we are passing parameters to call the methods in RESTwebservice and getting the response back.

    Now please tell me, how do I call this java code in PI?

    Is it Java mapping and along with SOAP/Axis Adapter for invoke that webservice?

    bit confusion here..

    Thanks,

    Gayatri

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gayatri,

                           You need a triggering event from ECC.

      1. "Now please tell me, how do I call this java code in PI?"

      ans)

      Thus scenario can be like this

      ECC--->proxy--->PI--->java mapping---->request--->REST webservice--->response---->same java mapping---->proxy---->ECC.

      2. Is it Java mapping and along with SOAP/Axis Adapter for invoke that webservice?

      ans) only  java mapping is sufficient.

      Challenges

      1. when you send the request to REST webservice from PI server , the firewall may stop our request and you will get an exception

      solution: Network team consultation is necessary in this regard

      else all is well.

      Regards

      Anupam

  • Jan 02, 2014 at 10:44 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 02, 2014 at 01:53 PM

    Hi Gayatri,

                        I am not sure if SOAP adapter will be able to work if resultant payload becomes more in size. REST web service follows client server architecture. Thus you can send a request via socket and receive a response. The entire code can be represented using java mapping. Alternatively you can also send a http request in mapping instead of Java Socket programming.

    Regards

    Anupam

    Add comment
    10|10000 characters needed characters exceeded