cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI Exposed as webservice timing out .

Former Member
0 Kudos

Hello Everyone ,

We have a BAPI exposed as a webservice. When an application is invoking this webservice it is timing out intermittently.

When it timed out on the application side it logged the below exception

com.sap.engine.services.httpserver.exceptions.HttpIOException: Read timeout. The client has disconnected or a synchronization error has occurred. Read [0] bytes. Expected [End-Of-Chunk].

As a solution we applied an SAP note and increased the ServletInputStreamTimeout to 10mins ;600000msecs.But it again logged an exception on the applicaiton side and this time it timedout after 10 mins .

We are not able to determine whether its timing out when the request is getting into XI or if its timing out on the SAP side . Even after turning the Synchronous logging on we don't see the failed messages in SXMB_MONI.

Is there a better way to monitor these.

Thanks Rahul.

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Have you checked if you are connecting to the correct port in PI? Also check your firewall settings. To check if the message is even getting into the Adapter Engine, go to RWB -> Message Monitoring -> choose adapter engine and filter your messages there.

Let us know of the results.

Hope this helps,

Mark

VijayKonam
Active Contributor
0 Kudos

When you said, BAPI is exposed as web service, how the application is calling it? Directly? In that case there is no PI in between. Otherwise, if you are calling the exposed bapi webservice from PI, your design is not correct. Proxy communication is always better from PI to ECC and the application should call the Web service exposed by PI.

VJ

Former Member
0 Kudos

Already did check the message monitoring . Looks like these messages are not making it into the XI integration engine and adapter engine . XI returns the error to the client saying

. Read [0] bytes. Expected [End-Of-Chunk]

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Rahul,

Please check your BAPI in ECC with your Data and check how much time it is taking to give response back,i suspect that your BAPI taking long time to give response, that was the reason your getting timeout error

Solution: if BAPI taking long time then check with ABAPer to debig BAPI coding ,he can freeze/optimize the code easily.

Regards,

Raj