BusinessObjects Board

SAP Data Services adding EncodingType attribute to Nonce

Hello,

I have succesfully setup web service connections with SAP DS to SAP (integration services) more then a year ago, but due perfomance issues they have changed the server side for a couple of web services, the most will stay on the old situation.

the only thing I need to add is an attribute to the Nonce element: /wsse:UsernameToken/wsse:Nonce/@EncodingType.

What I have:

 <soapenv:Header>
      <ns6:ChainLogHeader xmlns:ns6="">
         <ns6:requestId/>
      </ns6:ChainLogHeader>
      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>********</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">**********</wsse:Password>
            <wsse:Nonce>******</wsse:Nonce>
            <wsu:Created>******</wsu:Created>
         </wsse:UsernameToken>
      </wsse:Security>
 </soapenv:Header>

What I want:

<soapenv:Header>
		<ns6:ChainLogHeader xmlns:ns6="">
			<ns6:requestId/>
		</ns6:ChainLogHeader>
		<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
			<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
				<wsse:Username>*******</wsse:Username>
				<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">*******</wsse:Password>
				<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0">*******</wsse:Nonce>
				<wsu:Created>*******</wsu:Created>
			</wsse:UsernameToken>
		</wsse:Security>
</soapenv:Header>

Can someone help me with this configuration?

Gr. Jaap
Policy.zip (0.0 KB)


Jsmit83 (BOB member since 2015-08-14)

try modifying the policy.xml as below
change the following line
<rampc:RampartConfig xmlns:rampc=“http://ws.apache.org/rampart/c/policy”></rampc:RampartConfig>

to
<rampc:RampartConfig xmlns:rampc=“http://ws.apache.org/rampart/c/policy”>
rampc:User</rampc:User>
rampc:PasswordTypeDigest</rampc:PasswordType>
</rampc:RampartConfig>

and specify the user also, not sure this would matter but give it a try
if this doesn’t work, open a support case

looking at the examples for RAMPART C, it shows as you are expecting, with encodingType attribute, so it should work from DS also


manoj_d (BOB member since 2009-01-02)

unfortunately, nothing changes in the header.

I am trying different options, with no luck.

When I search the problem, I have found other simular questions but no solutions…(yet).


Jsmit83 (BOB member since 2015-08-14)

Added support case @SAP


Jsmit83 (BOB member since 2015-08-14)

The server has changed the attribute to optional, this solved my problem with the security header.


Jsmit83 (BOB member since 2015-08-14)