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

Re: Change SOAP Header: Consuming Webservice

$
0
0


Hi Chaiphon,

 

I able to find the Base64 code where the password is pulling from and I decoded using the below code , I am still getting error.

 

 

 

data: l_string_base64 type string value 'VU5JQ0VGV1NQVVA6UzR2NHlVOGE='.
data: l_string1 type string.
CALL METHOD cl_http_utility=>if_http_utility~decode_base64
    EXPORTING
      encoded = l_string_base64
    RECEIVING
      decoded = l_string1.
write: l_string1.

 

 

 

Now I have my password in l_string1

 

passing this variable as header shown below

 

*********************************************
* get WS_HEADER protocol
    lr_header_protocol ?= client_proxy->get_protocol( if_wsprotocol=>ws_header ).
CONCATENATE
'<Header>'
'<AuthHeader xmlns="http://webservices.test.com.ie/Value/ValueService/">'
'<sUserName>TSTUSER</sUserName>'
'<sPassword>l_string1</sPassword>'
'</AuthHeader>'
'</Header>'
INTO l_string.

 

 

Now I am getting the below error even my l_string1 has right password.

 

do I need to encrypt l_string1 value and pass to soap header? Not sure.

 

Program ZZ_Test                                                                                                                                        1

CLEINTNAME:Test123@
SoapFaultCode:5  Receiver (  Server was unable to process request.    > The type ValueService.WebService.ValueUpService  could not be initialized. Unable to determin

 


Viewing all articles
Browse latest Browse all 1056

Trending Articles