Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Payload consumption - silly error message?

Former Member
0 Likes
5,334

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,706

I eventually discovered that you get this misleading error message when SAP receives a SOAP response containing data in a namespace that it was not expecting.

So if you are waiting for <ns1:data>.....  and SAP instead gets <ns2:data....> you will get this error.

Mystery over.

7 REPLIES 7
Read only

JL23
Active Contributor
0 Likes
3,706

did you just post this or had you you done what the message told you to do?

read OSS note 1118825 from SAP market place

Read only

Former Member
0 Likes
3,706

Of course I have read note 1118825.

That is why I am calling ANNOUNCE_PAYLOAD_CONSUMPTION

Hence my lack of understanding of the error message ""Payload consumption has not been announced" when I can see the request payload correctly...

Read only

Former Member
0 Likes
3,706


the problem could be that your provider expects a value in the SOAP Action
header. You can set this on the Operation Specific tab in Ta.
SOAMANAGER editing the logical port's configuration.

In the ICM trace you should see the following error:
Server did not recognize the value of HTTP Header SOAPAction

Let me know it this helps. All the best

Read only

0 Likes
3,706

Hello Keith,

Thanks for the advice. Unfortunately I don't think that is the solution for us - we have no errors in the ICM log.

Currently this error is appearing hand-in-hand with an exception when we call the proxy:

GENERAL_ERROR Error during proxy processing (PART UNKNOWN (NULL)  

It is as if sometimes SAP is receiving some combination of data which prevents it from storing the response payload. If I can work it out I'll post results here.

On a positive note, over the past few days we have had some response messages come through and we can see the response payload. When this happens, the exception payload works as well, you get text explaining that there is no exception to see.

Thanks,

Stuart.

Read only

Former Member
0 Likes
3,707

I eventually discovered that you get this misleading error message when SAP receives a SOAP response containing data in a namespace that it was not expecting.

So if you are waiting for <ns1:data>.....  and SAP instead gets <ns2:data....> you will get this error.

Mystery over.

Read only

0 Likes
3,706

Hello,

I am getting the same issue.

Have you been be able to resolve it ?

Kindly please help.

Regards.

Read only

Nico_Cuevas
Discoverer
0 Likes
1,983

If the proxy is consumer service, you can try used this configuration the service:

Add these fields proxy and port, this data is provided by the basis team.

nico_cuevas_0-1749220620475.png