Skip to Content
0

PROXY to Webservice (Synchronous call)

Jan 13, 2017 at 02:21 AM

114

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raghuraman S Jan 13, 2017 at 03:37 AM
0

Hello Senthil,

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

Share
10 |10000 characters needed characters left characters exceeded
Anoop Rai Jan 13, 2017 at 02:57 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded