Hi,

We are using CForms with cocoon 2.1.8

We basically want to generate an xml file from a from with a
namespace. This is shown below

<?xml version="1.0" encoding="ISO-8859-1"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Body>
   <modifyRequest requestID="1"
execution="urn:oasis:names:tc:SPML:1:0#asynchronous">

     <modifications>              
                <modification name="FirstName"
operation="replace"><value></value></modification>
        <modification name="LastName"
operation="replace"><value></value></modification>
     </modifications>

   </modifyRequest>
 </soap:Body>
</soap:Envelope>


However when we use the same, the xml values are properly generated,
but without the namespace as follows

<?xml version="1.0" encoding="ISO-8859-1"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Body>
   <modifyRequest requestID="1"
execution="urn:oasis:names:tc:SPML:1:0#asynchronous">

     <identifier type="urn:oasis:names:tc:SPML:1:0#UserIDAndOrDomainName">
       <id></id>
     </identifier>

     <modifications>              
                <modification name="FirstName"
operation="replace"><value></value></modification>
        <modification name="LastName"
operation="replace"><value></value></modification>
     </modifications>

   </modifyRequest>
 </soap:Body>
</soap:Envelope>

How do I enable the namespace....

We are running cocoon 2.1.8 on Tomcat 5.0.28

Sanket

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

Reply via email to