Hi Frank,
It is an identified issue, use axiom_node_serialize_sub_tree instead,

I think the rational is axiom_node_serialize assumes that it is the
root node it serialize, so it to the job with better performance.
axiom_node_serialize_sub_tree aware that it is the sub tree it is
serializing, but less performance than the axiom_node_serialize.

Thanks
Dimuthu

On Sat, Mar 29, 2008 at 5:55 AM, Frank Zhou <[EMAIL PROTECTED]> wrote:
> Hi, All,
>
>  I run into an issue that has to do with namespace. I
>  called a web service and get a response using the
>  following method:
>
>  axiom_node_t * node =
>  axis2_svc_client_send_receive(_wsf_service_client,
>  _env, payload);
>
>  However, when I serialize the node to xml, I noticed
>  that the root element has a namespace abbreviation but
>  no namespace is declared, hence the xml is invalid.
>  Here is an example:
>
>       <ns1:getLiteEntityResponse>
>          <ns1:return>
>             <ns1:ListElement>
>                <ns1:chebiId>CHEBI:16551</ns1:chebiId>
>
>  <ns1:chebiAsciiName>alpha,alpha-trehalose</ns1:chebiAsciiName>
>             </ns1:ListElement>
>           </ns1:return>
>       </ns1:getLiteEntityResponse>
>
>
>  I used the following method to serialize the node:
>
>  axiom_node_serialize(node, _env, om_output);
>
>  When I used soapUI to look at the response, I got the
>  following (the namespace is declared in
>  soapEnv:Envelope node):
>
>  <soapenv:Envelope
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>  xmlns:ns1="http://www.ebi.ac.uk/webservices/chebi";>
>    <soapenv:Body>
>       <ns1:getLiteEntityResponse>
>          <ns1:return>
>             <ns1:ListElement>
>                <ns1:chebiId>CHEBI:16551</ns1:chebiId>
>
>  <ns1:chebiAsciiName>alpha,alpha-trehalose</ns1:chebiAsciiName>
>             </ns1:ListElement>
>           </ns1:return>
>       </ns1:getLiteEntityResponse>
>    </soapenv:Body>
>  </soapenv:Envelope>
>
>  Is this a bug or a problem in the response itself?
>
>  Thanks!
>  Frank
>
>
>
>
>       
> ____________________________________________________________________________________
>  OMG, Sweet deal for Yahoo! users/friends:Get A Month of Blockbuster Total 
> Access, No Cost. W00t
>  http://tc.deals.yahoo.com/tc/blockbuster/text2.com
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to