2 Replies Latest reply on Dec 14, 2010 2:08 PM by Earnest Dyke

    Problem signing a web service request

    Earnest Dyke Novice

      Greetings all,

       

      We are running JBoss EAP 5.0 with JDK 1.6 on Windows. There is a web service on an Ubuntu/Apache server somewhere in the cloud that we need to call over https. We have everything working but the call fails and returns fault code The signature or decryption was invalid. The soap body that is generated by our client running in JBoss is as follows:

       

      {code:xml}<soapenv:Body  wsu:Id="id-12001189" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <ns1:MaxUnmaskedDigits>4</ns1:MaxUnmaskedDigits>
        <ns1:isUnmaskedFromLeft>0</ns1:isUnmaskedFromLeft>
        <ns1:strRawValue>4545111111111111</ns1:strRawValue>
      </ns1:sEncrypt_Input>
        </soapenv:Body>{code}
      We can pass this body through SoapUI and get the same response. If we pass this body through SoapUI, the service returns a valid response.
      {code:xml}<soapenv:Body  wsu:Id="id-12618762" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
      - <xis:sEncrypt_Input>
        <xis:MaxUnmaskedDigits>4</xis:MaxUnmaskedDigits>
        <xis:isUnmaskedFromLeft>0</xis:isUnmaskedFromLeft>
        <xis:strRawValue>4545111111111111</xis:strRawValue>
        </xis:sEncrypt_Input>
        </soapenv:Body>{code}

      The only real difference is the namespaces. Can anyone tell me why this is happening and how I can get our JBoss client to generate a body in the later format?
      Thanks in advance for any and all relevant responses.
      Earnie!