Quantcast
Channel: SCN: Message List - Service-Oriented Architecture (SOA) and SAP
Viewing all articles
Browse latest Browse all 1056

Change the SOAP header from web service call

$
0
0

Hi all,

 

I need to modify the XML header generated from a web service call. I have the following code:

 

data: ws_header    type ref to if_wsprotocol_ws_header.


data: lv_string    type string,
        lv_xstring  type xstring.

 

     concatenate
     '<soap-env:Envelope xmlns:soap env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header>'
     '</soap-env:Header>'
     '<soap-env:Body>' into lv_string.

* convert to xstring
       lv_xstring = cl_proxy_service=>cstring2xstring( lv_string ).
       if not lv_string is initial.

         call function 'SDIXML_XML_TO_DOM'
           exporting
             xml           = lv_xstring
           importing
             document      = xml_document
           exceptions
             invalid_input = 1
             others        = 2.


But when the function SDIXML_XML_TO_DOM is called, it always returns an invalid input error. Any Ideas?


Any help is much appreciated.


Viewing all articles
Browse latest Browse all 1056

Trending Articles



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