Skip to main content

WS interoperability with .NET

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
hlavki
Offline
Joined: 2005-04-19

Hi, I need to integrate web service implemented in .NET. I am using metro 2.1.
Problem is with signature algorithm in WS-Policy:

<sp:AlgorithmSuite signatureAlgorithm="SHA256withRSA">
    <wsp:Policy>
        <sp1:Basic256Sha256/>
    </wsp:Policy>
</sp:AlgorithmSuite>

Output from metro says that is uses:
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1">

Which is not correct. Is there any way how to fix this without changing .NET service?
thanks, miso

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hlavki
Offline
Joined: 2005-04-19

Ok, when I change it as:

<sp:AlgorithmSuite signatureAlgorithm="SHA256withRSA">
    <wsp:Policy>
        <sp1:Basic128/>
    </wsp:Policy>
</sp:AlgorithmSuite>

I can see in log:

<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />

But DigestMethod is still:

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