‎2022 Oct 25 7:50 PM
Hi Team,
Thanks in Advance,
How to add Custom HTTP Header to a Consumer SOAP Webservice?
Currently we consumed the External SOAP Service and generated WSDL and configured the same into SOAMANAGER tp PUSH the desired data to External System. In general, its SAP PROXY PUSH Call which uses the generated Proxy Methods.
Requirement is to add Custom HTTP Headers to the SOAP Proxy PUSH, can it be possible, if so, could you please let me know how to achieve this.
Regards,
JSR
‎2022 Oct 26 9:20 AM
I'm not sure what kind of proxy you are talking about. Is it what you are looking for? (you can search more precise answers in other same questions)
DATA(soap_header) = CAST if_wsprotocol_ws_header( client_proxy->get_protocol( IF_WSPROTOCOL=>WS_HEADER ) ).
... "(prepare)
soap_header->set_request_header( name = ... namespace = ... dom = ... ).