axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stadelmann Josef" <josef.stadelm...@axa-winterthur.ch>
Subject AW: XML Encoding information in soap message.
Date Mon, 27 Sep 2010 12:42:01 GMT
  i.e.

I am serializing my root_node ....  and add some version / encoding information

    /*
     * serializing stuff
     */
    writer = axiom_xml_writer_create_for_memory(env, "UTF-8", AXIS2_TRUE, 0, AXIS2_XML_PARSER_TYPE_BUFFER);
    om_output = axiom_output_create(env, writer);

    AXIS2_LOG_DEBUG     (env->log, AXIS2_LOG_SI, "\n %s %d", "Serialize root_node to om_output",
2);

    axiom_output_write_xml_version_encoding(om_output, env);
    status = axiom_node_serialize(response_node, env , om_output);
    if (status != AXIS2_SUCCESS) {
        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, " \n %s %d", "root_node serialization FAILED",
2);
        return status;
    }
    else
        AXIS2_LOG_DEBUG     (env->log, AXIS2_LOG_SI, "\n %s %d", "root_node serialization
SUCCESS", 2);
    /*
     * end serializing stuff
     */

    output_buffer = (axis2_char_t*)axiom_xml_writer_get_xml(writer, env);
    scnt = (unsigned __int16)strlen(output_buffer);


Josef


-----Urspr├╝ngliche Nachricht-----
Von: Rico M [mailto:rickomuer@gmail.com] 
Gesendet: Montag, 27. September 2010 11:33
An: Apache AXIS C User List
Betreff: XML Encoding information in soap message.

Hi All!

All soap messages i am sending are intercepted as :

<soap:Envelope>
  <soap:Header>
   </soap:Header>
   <soap:Body>
   </soap:Body>
</soap:Envelope>


What i am looking for is adding xml encoding information to the message...

´╗┐<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope>
  <soap:Header>
   </soap:Header>
   <soap:Body>
   </soap:Body>
</soap:Envelope>


Any idea how i can achieve the above ?

Cheers!

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org

Mime
View raw message