cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP header in HTTP reponse

former_member200339
Participant
0 Kudos

i have a HTTP request--->BPM--->Http Response, there is a S/A bridge to implement this

for which i there is a

1. HTTP sender channel (outbound synchronous message interface),

2. BPM,

the requirement is...in the sync HTTP response, i need the HTTP header "content-length"to be changed to 0,

for this i wanted to use the "Set adapter specific message attribute -> HTTP header fields (Synchronous response)" in the HTTP sender channel,

but i cant see this field in the sxi_monitor in the Dynamic configuration tab of the Response Message...

pls help me solving this

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member200339
Participant
0 Kudos

the problem is solved....in help.sap.com...in the descrition of sender http channel, it has described how HTTP header in the HTTP request and response can br manipulated...thanks

stefan_grube
Active Contributor
0 Kudos

> the requirement is...in the sync HTTP response, i need the HTTP header "content-length"to be changed to 0,

You cannot set content-length. Do you want to send an empty reponse? Then treat this as asynchronous, then the response is empty.

former_member200339
Participant
0 Kudos

hi,

the requirement is to send a proper response, and in case of an erroneous condition (this is a custom error), i need to send an empty return message,....

but but...when i form an empty message (by a transformation step in BPM) and try to send it from a send step in the BPM, the BPM encounters error saying..."cannot send from a empty container"

pls help.....

otherwise can u tell me how to send a empty message from the BPM send step (this send step actually closes a S/A bridge opened by a sync receiver)

former_member181985
Active Contributor
0 Kudos

We cannot send empty response in BPM.

at least pass some blank values(space) for 1 or 2 tags in the response.

former_member200339
Participant
0 Kudos

Thanks praveen.

<<List of params we can access or change for HTTP adapter http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm>>;

this link seems to be not working, pls resend it

former_member181985
Active Contributor
0 Kudos

Try this

[http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm]

Also the Stream Transformation Constants which we can access using Dynamic Configuration:

[http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants.html|http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/StreamTransformationConstants.html]

Edited by: Praveen Gujjeti on Apr 21, 2009 12:24 PM

Former Member
0 Kudos

hi Rana,

To see the Synchronous response in the monitoring, see with your admin team.

They has to use transaction SXMB_ADM, then IE configuration and choose category "Runtime" and add these parmaeters:

logging -> value = 1

logging_sync -> value = 1

[HELP SAP : Logging and Tracing|http://help.sap.com/saphelp_nw70/helpdata/EN/d6/49543b1e49bc1fe10000000a114084/content.htm]

regards.

Mickael

former_member181985
Active Contributor
0 Kudos

We cannot access content length using Dynamic Configuration.

List of params we can access or change for HTTP adapter [http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm]

BTW, why you want to change the content length? Any Reason......

Edited by: Praveen Gujjeti on Apr 20, 2009 5:18 PM