InvalidSecurity need help

187 views
Skip to first unread message

Paweł Fatyga

unread,
May 18, 2016, 10:06:39 AM5/18/16
to wse-php
Hi
I get soap fault
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body><soap:Fault>
<faultcode xmlns:ns1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">ns1:InvalidSecurity
</faultcode><faultstring>An error was discovered processing the &lt;wsse:Security> header.</faultstring></soap:Fault></soap:Body></soap:Envelope>



My Header should looks like below. How do request should looks like? Thanks for any help.What can be reason of this fault?
<soapenv:Header>
<ds:Signature Id=SIG-97BA842629420A032F146167487779410 xmlns:ds=http://www.w3.org/2000/09/xmldsig#>
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#>
<ec:InclusiveNamespaces PrefixList=chan soapenv xmlns:ec=http://www.w3.org/2001/10/xml-exc-c14n#/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm=http://www.w3.org/2000/09/xmldsig#rsa-sha1/>
<ds:Reference URI=#id-97BA842629420A032F14616748777939>
<ds:Transforms>
<ds:Transform Algorithm=http://www.w3.org/2001/10/xml-exc-c14n#>
<ec:InclusiveNamespaces PrefixList=chan xmlns:ec=http://www.w3.org/2001/10/xml-exc-c14n#/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm=http://www.w3.org/2000/09/xmldsig#sha1/>
<ds:DigestValue>DigestValue</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>VALUE</ds:SignatureValue>
<ds:KeyInfo Id=KI-97BA842629420A032F14616748777937>
<wsse:SecurityTokenReference wsu:Id=STR-97BA842629420A032F14616748777938>
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>IssuerName</ds:X509IssuerName>
<ds:X509SerialNumber>SerialNumber</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</soapenv:Header>
Reply all
Reply to author
Forward
0 new messages