You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Rico M <ri...@gmail.com> on 2010/09/27 11:33:13 UTC
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
Re: XML Encoding information in soap message.
Posted by Rico M <ri...@gmail.com>.
Thanks Josef & Atanacio !
I tried what Atanacio suggested and i confirm it works!
PS : wrong rico atanacio :)
On Tue, Sep 28, 2010 at 8:56 AM, Stadelmann Josef
<jo...@axa-winterthur.ch> wrote:
> Which part of Axis2/C library/code reads axis2.xml "<parameter name="xml-declaration insert="true"/>"
> and then inserts this string into a soap message if parameter is true the way Rico wants to have it.?
>
> Josef
>
> -----Ursprüngliche Nachricht-----
> Von: Atanacio Reyes [mailto:areyesv@yahoo.com]
> Gesendet: Dienstag, 28. September 2010 05:31
> An: Apache AXIS C User List
> Betreff: Re: XML Encoding information in soap message.
>
> Hi Rico Martínez?:
>
> <?xml version="1.0" encoding="utf-8"?> is not part of soap message, but for
> backward compatibility you can uncomment the line:
>
> <parameter name="xml-declaration insert="true"/>
> in axis2.xml file.
>
>
> ----- Original Message ----
> From: Rico M <ri...@gmail.com>
> To: Apache AXIS C User List <c-...@axis.apache.org>
> Sent: Mon, September 27, 2010 2:33:13 AM
> Subject: 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
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
AW: XML Encoding information in soap message.
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Which part of Axis2/C library/code reads axis2.xml "<parameter name="xml-declaration insert="true"/>"
and then inserts this string into a soap message if parameter is true the way Rico wants to have it.?
Josef
-----Ursprüngliche Nachricht-----
Von: Atanacio Reyes [mailto:areyesv@yahoo.com]
Gesendet: Dienstag, 28. September 2010 05:31
An: Apache AXIS C User List
Betreff: Re: XML Encoding information in soap message.
Hi Rico Martínez?:
<?xml version="1.0" encoding="utf-8"?> is not part of soap message, but for
backward compatibility you can uncomment the line:
<parameter name="xml-declaration insert="true"/>
in axis2.xml file.
----- Original Message ----
From: Rico M <ri...@gmail.com>
To: Apache AXIS C User List <c-...@axis.apache.org>
Sent: Mon, September 27, 2010 2:33:13 AM
Subject: 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
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
Re: XML Encoding information in soap message.
Posted by Atanacio Reyes <ar...@yahoo.com>.
Hi Rico Martínez?:
<?xml version="1.0" encoding="utf-8"?> is not part of soap message, but for
backward compatibility you can uncomment the line:
<parameter name="xml-declaration insert="true"/>
in axis2.xml file.
----- Original Message ----
From: Rico M <ri...@gmail.com>
To: Apache AXIS C User List <c-...@axis.apache.org>
Sent: Mon, September 27, 2010 2:33:13 AM
Subject: 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
---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org
AW: XML Encoding information in soap message.
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
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