Skip to Content
avatar image
Former Member

Problem with Synchronous Restful Service in PI 7.3.1

Hi Experts,

We are working on Synchronous Proxy to Restful Service

Interface. Connecting to RestService through SOAP Axis Adapter as per the below blog.

http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/11/calling-synchronous-restful-web-service-with-pi--i

But we are facing below issues. Could you please help us regarding the steps what needs to done

Error from Axis Adapter :

Axis: error in invocation: java.lang.IllegalArgumentException: object type invalid: class com.sap.aii.adapter.xi.ms.XIMessage

Exception caught by Adapter framework: Object Type Invalid: class com.sap.aii..adapter.xi.ms.XiMessage

Delivery of the message to the application using the connection SOAP_http://sap.com/xi/XISystem failed, due to com.sap.engine.interfaces.message.api exception. Messaging exception:java.lang.illegalArgument:object type invalid class com.sap.aii.adapter.xi.ms.XIMessage .

Thanks

reyaz

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 25, 2013 at 03:44 AM

    Hi All,

    The Issue Got Resolved.

    we did Added Accept Header Parameter in the Receiver SOAP Axis Adapter. Given the Value for Accept header is "/*/". So PI can able to accept any header format.

    Thanks

    Reyaz

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15, 2013 at 01:01 PM

    I guess you are missing some libraries. Please check the link http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/08/11/calling-synchronous-restful-web-service-with-pi--i

    and I see similar problem over there. Post a question to the blog owner and see if that helps.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Bhaskar,

      I am using Pi 7.31. Will SAP Note: 1039369 support for the PI 7.31 version or do i need to refer any other SAP Note.

      when i had discussion with basis he said that sap note 1039369 supports till PI 7.1. But in PI 7.3 he installed latest patch even though we are getting the error as mentioned in the initial thread.

      Thanks

      Reyaz

  • avatar image
    Former Member
    Feb 15, 2013 at 05:01 PM

    Hi Reyaz,

    If selected the connection parameters - Authentication as None, then please check the XI parameoers given in Module tab.

    please assign the handlers as given in below url

    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/45/a3c48c87cd0039e10000000a11466f/frameset.htm

    Regards,

    Prasanth

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 15, 2013 at 06:21 PM

    Hi Reyaz,

    As mentioned by Baskar, it may be the issue with missing libraries.

    I assume you have mentioned correct Module names with correct module key with its corresponding value. Adapter is not getting able identify the value of the argument and throwing this error.

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 17, 2013 at 01:44 PM

    Hi Reyaz,

    SOAP axis adapter is suitable for small payloads when used for REST webservice.

    You can see this thread http://scn.sap.com/thread/3239003 . Did you check the response from the webservice using other external tools or code ?

    Regards

    Anupam

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Nabendu,

      Although the response from REST webservice is dynamic , still it maintains a specific format. This format remains constant. Programmer needs to know this format and decide on how to accept the response. Whatever REST webservices I worked with, there was no WSDL but according to this link http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/ description of REST webservice is possible with WSDL 2.0. Thus the corrrect statement would be WSDL is not mandatory for REST webservices. Please ignore my previous comment. You might have been right when you refferred WSDL for REST webservices earlier and depends on whether Reyaz is using one or not.

      Regards

      Anupam