2 Replies Latest reply: Oct 19, 2011 7:19 AM by ilyas RSS

    Error when calling the business services with Encryption - MustUnderstand h

    VictorJabur
      I was getting this error when i invoke my business service through Oracle Service Bus Console:


      *<faultstring>*
      *MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood*
      *</faultstring>*
      *<faultcode>SOAP-ENV:MustUnderstand</faultcode>*


      <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
           <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
           </soap:Header>
           <soapenv:Body>
           <ger:gerarHashSenha      xmlns:ger="http://www.abc.com.br/SomeService">
           <!--Optional:-->
           <arg0>string</arg0>
           </ger:gerarHashSenha>
           </soapenv:Body>
           </soapenv:Envelope>
           <soapenv:Envelope      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
           <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
           <wsse:Security      soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
           <ns1:EncryptedKey      Id="FLTGqSbFbsmt2Q2l" xmlns:ns1="http://www.w3.org/2001/04/xmlenc#">
           <ns1:EncryptionMethod      Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"/>
           <ns2:KeyInfo      xmlns:ns2="http://www.w3.org/2000/09/xmldsig#">
           <wsse:SecurityTokenReference      wsu:Id="str_a6QZHoS8oRqxbtgS" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
           <ns2:X509Data>
           <ns2:X509IssuerSerial>
           <ns2:X509IssuerName>
           CN=SerasaACGlobal,OU=Serasa Autoridade Certificadora Global,O=Serasa,C=BR
           </ns2:X509IssuerName>
           <ns2:X509SerialNumber>5023300869337873804</ns2:X509SerialNumber>
           </ns2:X509IssuerSerial>
           </ns2:X509Data>
           </wsse:SecurityTokenReference>
           </ns2:KeyInfo>
           <ns1:CipherData>
           <ns1:CipherValue>
           l3um2rVftq5ddA24DPNpZpofHEcmCha9ZBraglFKKzTpL+PhKmRmAyaJC2V5xWqBssxQGRDWhN9z+eHP8ENLMDP/mlHRw89WWQ7VkATSAd+k8ny/lesTLO7RUuLAiPlueOYUN8vpD4BJcI/lL/8jL0utMrQ7k+fhELDnBMB0lIY=
           </ns1:CipherValue>
           </ns1:CipherData>
           <ns1:ReferenceList>
           <ns1:DataReference      URI="#Ak1K01RK8B6RKDn3"/>
           </ns1:ReferenceList>
           </ns1:EncryptedKey>
           </wsse:Security>
           </soap:Header>
           <soapenv:Body>
           <ns1:EncryptedData      Id="Ak1K01RK8B6RKDn3" Type="http://www.w3.org/2001/04/xmlenc#Content" MimeType="text/xml" Encoding="UTF-8" xmlns:ns1="http://www.w3.org/2001/04/xmlenc#">
           <ns1:EncryptionMethod      Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
           <ns1:CipherData>
           <ns1:CipherValue>
           RMu5vmRk3KczXzx57Wc8sIcdBDySyGOL4P0VrN+rwOjOcqc3ALCGbxu9VlRB4nJJTDb/1wxuh+lJlnBEgwS+7q1JVDuA81HDSqq4oPtqhQ2wYVMyxOY0YVm2Tj8ntUdTYh0OQrPg0TwmSsi3UUnuKDPR9tQqmZvHc+DF+j8yI71nSN4WPp1MVBr8E7Z7B9sPBDlI7Bp9n68=
           </ns1:CipherValue>
           </ns1:CipherData>
           </ns1:EncryptedData>
           </soapenv:Body>
           </soapenv:Envelope>
           Response Document      
      The invocation resulted in an error: Internal Server Error.
           <S:Envelope      xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
           <S:Body>
           <SOAP-ENV:Fault      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
           <faultstring>
           MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood
           </faultstring>
           <faultcode>SOAP-ENV:MustUnderstand</faultcode>
           </SOAP-ENV:Fault>
           </S:Body>
           </S:Envelope>
           Response Metadata      
           <con:metadata      xmlns:con="http://www.bea.com/wli/sb/test/config">
           <tran:headers      xsi:type="http:HttpResponseHeaders" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <tran:user-header      name="Set-Cookie" value="JSESSIONID=YypvL1RGdHs3fRGs3RSwvGrdQpzhTyY6FJ0z6VK1tRtLhR5L9V7S!-778340443; path=/"/>
           <tran:user-header      name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>
           <http:Cache-Control>no-cache="Set-Cookie"</http:Cache-Control>
           <http:Content-Type>text/xml;charset="utf-8"</http:Content-Type>
           <http:Date>Fri, 28 May 2010 00:41:40 GMT</http:Date>
           <http:Transfer-Encoding>chunked</http:Transfer-Encoding>
           </tran:headers>
           <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">2</tran:response-code>
           <tran:response-message      xmlns:tran="http://www.bea.com/wli/sb/transports">Internal Server Error</tran:response-message>
           <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
           <http:http-response-code      xmlns:http="http://www.bea.com/wli/sb/transports/http">500</http:http-response-code>
           </con:metadata>

      Edited by: victorjabur on May 27, 2010 5:48 PM