santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prakasa Nedunuri <pnedu...@cisco.com>
Subject Namespace problem
Date Fri, 18 Feb 2005 02:04:46 GMT
Hi,
   I am trying to encrypt and decrypt SOAP body using xmlsec library.
Before encrypting, my original SOAP message is

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
   <StockQuoteRequest 
xmlns="http://stockservice.contoso.com/wse/samples/2003/06">
         <symbols>
                 <Symbol>FABRIKAM</Symbol>
                 <Symbol>CONSTOSO</Symbol>
         </symbols>
         <symbols1>
                 <Symbol>CSCO</Symbol>
                 <Symbol>JNPR</Symbol>
         </symbols1>
         <symbols2>
                 <Symbol>ttt</Symbol>
                 <Symbol>ppp</Symbol>
         </symbols2>
    </StockQuoteRequest>
   </soapenv:Body>
</soapenv:Envelope>

However, after I decrypt the message, I see that StockQuoteRequest element 
has additional namespaces which are
not present in the original message before encrypting.
  <StockQuoteRequest 
xmlns="http://stockservice.contoso.com/wse/samples/2003/06" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<symbols>
<Symbol>FABRIKAM</Symbol>
<Symbol>CONSTOSO</Symbol>
</symbols>
         <symbols1>
<Symbol>CSCO</Symbol>
<Symbol>JNPR</Symbol>
</symbols1>
<symbols2>
<Symbol>ttt</Symbol>
<Symbol>ppp</Symbol>
</symbols2>
    </StockQuoteRequest>

Any reason why the additional namespaces are getting added to 
StockQuoteRequest element?
Anyway I can retain the original message without having these namespaces 
getting added.

Thanks,
Prakasa

Mime
View raw message