Hi,

I'm running cocoon 2.1.7 under Tomcat 5 as a sevlet. I have a simple piece of XML that i'm running through the CInclude transformer. I'm using it to send XML to our server which will respond with more XML back. The problem I am having is that, although the CML I am sending to the CInclude transformer has namespaces, they are being stripped off when they are being sent to the server. The CInclude block (with the XML being sent) is below :

<?xml version="1.0" encoding="ISO-8859-1"?>
<cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0";>
 <cinclude:src>http://localhost:9345/server</cinclude:src>
 <cinclude:configuration>
   <cinclude:parameter>
     <cinclude:name>method</cinclude:name>
     <cinclude:value>POST</cinclude:value>
   </cinclude:parameter>
 </cinclude:configuration>
 <cinclude:parameters>
   <cinclude:parameter>
     <cinclude:name>Data</cinclude:name>
     <cinclude:value>
       <Transaction:Authorise 
xmlns:Transaction="http://www.waltonmobile.com/schema/wms/v1_0/transaction/v1_0"; 
xmlns="http://www.waltonmobile.com/schema/wms/v1_0/common/v1_0";>
         <Transaction:Authorisation>
           <Entity>
             <Authenticate>
               <Name Context="Wallet:Entity">********</Name>
               <Password>********</Password>
             </Authenticate>
           </Entity>
         </Transaction:Authorisation>
         <Transaction:Request>
           <Entity>
             <Authenticate>
               <Name Context="Wallet:Entity">[EMAIL PROTECTED]</Name>
               <Password>aaaaaaa</Password>
             </Authenticate>
           </Entity>
         </Transaction:Request>
       </Transaction:Authorise>
     </cinclude:value>
   </cinclude:parameter>
 </cinclude:parameters>
</cinclude:includexml>

The Transaction:Authorise block is being sent to the server, but the namespaces are not. Also, it is being sent as a GET not a POST, which shouldn't make a difference but is still odd.

Any help would be greatly appreciated

Cheers,
   Rob.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to