Skip to Content

PROXY to Webservice (Synchronous call)

Synchronous Interface: PROXY <-- PI -->Webservice

My synchronous call is failing in response with below mapping error, and also I am not able to view the response payload in message monitoring.

Mapping "<OperationMappingName>” failed to execute: MappingException: Mapping failed, NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Payload.getContentType() of a null object returned from com.sap.engine.interfaces.messaging.api.Message.getMainPayload()

But when I change the sender adapter from XI 3.0 protocol (proxy) to SOAP 1.1 protocol and test using SOAP UI from sender its working flaw less without any issues and I am able to view the Response payload in message monitoring.

I am not able to understand why this problem in synchronous response happening only in Proxy mode.

If anyone has any idea or faced this kind of situation, please let me know. Thanks.

Note: In service interface for both request and response I have given external XSD. Will having external XSD in Service interface create any issue for proxy?

-Senthilprakash

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 13, 2017 at 03:37 AM

    Hello Senthil,

    check whether data is proper(using SXMB_MONI) and code is activated in ERP system.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 13, 2017 at 02:57 PM

    Hi,

    Response Webservice has some field that dont have any data type, but you mapped with any element that has data type.

    So just check your mapping and Webservice response metadata have any such element with no data type.

    Regards,

    Anoop Kumar Rai

    Add comment
    10|10000 characters needed characters exceeded