Skip to Content
0
Former Member
Aug 03, 2012 at 09:26 AM

Payload consumption - silly error message?

1627 Views

Hello,

I am working with a Client Proxy webservice implementation. I'm getting a confusing error message from SAP when trying to view the payloads.

My the logic looks something like this:

CREATE OBJECT my client proxy

lo_payload_protocol ?= my client proxy->get_protocol( if_wsprotocol=>payload ).

CALL METHOD lo_payload_protocol->ANNOUNCE_PAYLOAD_CONSUMPTION( ).

CALL METHOD my client proxy webservice

CALL METHOD lo_payload_protocol->get_sent_request_payload

CALL METHOD lo_payload_protocol->get_sent_response_payload

Now I can see the request payload fine, it works as expected. However when I try to view the response payload, SAP gives me a strange error:

"Payload consumption has not been announced (see note 1118825)"

This seems strange to me as I am announcing the consumption, and it works for the request payload!

Any advice is much appreciated! I'm currently wondering if the reponse from the external webservice provider is not being handled correctly and SAP is just mis-reporting the error.

Stuart.