Hi all,
   
  I used the following codes to generate a soap message with more than one 
namespace:
   
      ns0 = axiom_namespace_create(env, 
AXIOM_SOAP11_SOAP_ENVELOPE_NAMESPACE_URI, "SOAP-ENV");
    ns1 = axiom_namespace_create(env, 
"http://schemas.xmlsoap.org/soap/encoding/";, "SOAP-ENC");
    ns2 = axiom_namespace_create(env, 
"http://www.w3.org/1999/XMLSchema-instance";, "xsi");
    ns3 = axiom_namespace_create(env, "http://www.w3.org/1999/XMLSchema";, 
"xsd");
 ns4 = axiom_namespace_create(env, "http://stockquote";, "ns1");
   
   envelope_ele = axiom_element_create(env, NULL, "Envelope", ns0, 
&envelope_node);
 axiom_element_declare_namespace(envelope_ele, env, envelope_node, ns1);
    axiom_element_declare_namespace(envelope_ele, env, envelope_node, ns2);
 axiom_element_declare_namespace(envelope_ele, env, envelope_node, ns3);
    axiom_element_declare_namespace(envelope_ele, env, envelope_node, ns4);
   
  The generated namespace sequence is:
   
  SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/1999/XMLSchema"; xmlns:ns1="http://stockquote";>
   
  but I want to create an exact sequence namesapce like:
   
  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/1999/XMLSchema"; xmlns:ns1="http://stockquote";>
   
  How could I do this? I traced the souce codes of function 
axiom_element_declare_namespace, and I found it used "heap" data structure to 
store namespace. Need I modify the source codes to meet my requirements?
   
  Best regards.
   
  Kelvin.Lin


 
---------------------------------
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Reply via email to