BeSimple / BeSimpleSoapClient

NOT MAINTAINED - [READ-ONLY] Subtree split of the BeSimpleSoap -- clone into BeSimple/SoapClient/ (master at BeSimple/BeSimpleSoap)
http://besim.pl/
57 stars 53 forks source link

Exception when connecting to .Net WSE Enabled Webservice using Password Digest Mechanism #18

Open njvinod opened 9 years ago

njvinod commented 9 years ago

When BeSimple Soap client uses Ws:Security filter and connects to .Net WSE enabled webservices with Password Digest mechanism, the following Exception is thrown

The security token could not be authenticated or authorized ---> System.InvalidOperationException: WSE563: The computed password digest doesn't match that of the incoming username token.

There is a issue in the Way the BeSimple Soap client calculates the Digest.

njvinod commented 9 years ago

The Issue is fixed by changing date format of WsSecurityFilter.php line 126 from $createdTimestamp = $dt->format(self::DATETIME_FORMAT);

To $createdTimestamp=$dt->format("Y-m-d\TH:i:s").'Z';