Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Changing SOAP header variables(From/To) in ABAP webservice

$
0
0

Hi All,

 

I have developed a ABAP  web service consumer in  SAP ECC  6.0 & NW 7.01. I have tested this web service consumer and its working fine. However I would like to change the values of soap header attributes/variables/fields like  "From/To" to default my own value. .

 

The below is the soap message details for the web service I have consumed. I the attributes/variables/fields which I want to change are "To" and "From", which is highlighted in the below message.

 

I used the interface "if_wsprotocol_ws_header" to add values to SOAP header, but I don't know whether this interface has provision to change the standared SOAP header message attributes/variables/fields. Can some one shed some light on this.

 

*<env:Header>

*<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing" *env:mustUnderstand="true">http://abc.com:8000/sap/bc/srt/rfc/sap/yservice1/800/yservice1_b1/yservice1_b1</wsa:To>

*  <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">

*  <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

*  </wsa:From>

*  <wsa:ReplyTo xmlns:wsa="http://www.w3.org/2005/08/addressing">

*  <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

*  </wsa:ReplyTo>

*  <wsa:FaultTo xmlns:wsa="http://www.w3.org/2005/08/addressing">

*  <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

*  </wsa:FaultTo>

*  <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing" env:mustUnderstand="true">urn:sap-com:document:sap:soap:functions:mc-*style:YSERVICE1:YFm1Request</wsa:Action>

*  <wsa:MessageID xmlns:wsa="urn:uuid:000c29bc-b190-1ed2-baa6-138f5779002dhttp://www.w3.org/2005/08/addressing">urn:uuid:000c29bc-*b190-1ed2-baa6-138f5779002d</wsa:MessageID>

*  </env:Header>

 

 

Regards,

Basha.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>