Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8608

WS-Policy configuration in SOAMANAGER

$
0
0

Hello Web Service experts,

 

System: NW 701/SP6

 

we are trying to consume a WebService which requires UsernameToken authentication and XML signature of the ds:SignedInfo element. The SOAP request message from consumer, should look like the following SOAP example. Unfortunately the WebService provider is not providing the WS-Policy in the WSDL file.

For my understanding we need the WS-Policy in SOAMANAGER to create the Logical Port with the needed security settings. Without the WS-Policy the Logical Port will be created without authentication method and therefore no security header will be created in SOAP message.

 

Question: Can we configure the Logical Port without WSDL?

If yes how can we set the LP configuration, because we can't find them in SOAMANAGER.

If not we like to create the WS-Policy manually, but how should it looks like to fulfill the required security configuration? 

 

-


<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

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

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Header>

<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2003/06/secext"

xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility">

<wsse:UsernameToken wsu:Id="ID_USER">

<wsse:Username>XYZ</wsse:Username>

<wsse:Password Type="wsse:PasswordDigest">rbrm1yxP8Km9JXbuQna1cnaD85A=

</wsse:Password>

<wsse:Nonce>512587878178554348718655381255</wsse:Nonce>

<wsu:Created>2010-03-08T08:17:24Z</wsu:Created>

</wsse:UsernameToken>

<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">

<ds:SignedInfo>

<ds:CanonicalizationMethod

Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />

<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />

<ds:Reference URI="#ID_USER">

<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />

<ds:DigestValue>Uk1YjsnUmk9D+3SjUbs6dHRs2SM=</ds:DigestValue>

</ds:Reference>

</ds:SignedInfo>

<ds:SignatureValue>Kc92Y7ORwb/u2026 u2026 u2026=</ds:SignatureValue>

</ds:Signature>

</wsse:Security>

</soapenv:Header>

<soapenv:Body>

<n0:searchByBirthDate>

<input>

<birthDate>01/05/1978</birthDate>

<lastName>RO</lastName>

</input>

</n0:searchByBirthDate>

</soapenv:Body>

</soapenv:Envelope>

-


 

Thank you very much in advance....

 

Kind regards

 

Axel


Viewing all articles
Browse latest Browse all 8608

Trending Articles



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