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

Another webservice authentication issue (SOAP Header)

$
0
0

Hi experts,

 

I am trying to call a webservice in a CE7.3 system from an ABAP function module. I build up my SOAP Header like described here:

 

Setting up the Soap Header when consuming a web service.

 

'<SOAP-ENV:Header>'
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"'

' xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"'

' xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">'

'    <wsse:UsernameToken>'
'      <wsse:Username>XXXXXXXX</wsse:Username>'
'      <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXXXXX</wsse:Password>'
'    </wsse:UsernameToken>'
</wsse:Security>'
'</SOAP-ENV:Header>'

 

 

Now, if the service is set to un-autheticated in NWA (no http/message username/password/logon ticket) then the service gets called as the Guest user and runs OK. If I enable Username/Password authentication at HTTP or Message level then I get an unauthorised error in the log. Can anyone give me a guide/pointers? I thought I understood this but I clearly don't.

 

Cheers,

Russ.


Viewing all articles
Browse latest Browse all 1056

Trending Articles



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