You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by jim <ji...@landoloons.com> on 2010/09/29 22:38:39 UTC

how to deserialize the envelope?

  Can someone point me to a CURRENT example of how to serialize a 
response's SOAP envelope to a string that can be sent to the console?

I know this is a perennial question - I've searched the archives and 
found some discussions, but the examples tend to be long and verbose, 
and some apparently are out of date and rely on APIs no longer 
available.  I've not been able to find anything that works.

I know I can get the envelope with 
axis2_svc_client_get_last_response_soap_envelope (maybe there's a better 
way). From there I'm lost in a forest of axis/axiom XML readers, 
writers, document objects, elements, and streams...

Thanks

Jim Hughes

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


Re: how to deserialize the envelope?

Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
>  Can someone point me to a CURRENT example of how to serialize a 
> response's SOAP envelope to a string that can be sent to the console?
soap_envelope = 
axis2_svc_client_get_last_response_soap_envelope(svc_client, env);
axiom_node_t *node = axiom_soap_envelope_get_base_node(soap_envelope, env);
printf("%s\n", axiom_node_to_string(node, env));

Damitha
>
> I know this is a perennial question - I've searched the archives and 
> found some discussions, but the examples tend to be long and verbose, 
> and some apparently are out of date and rely on APIs no longer 
> available.  I've not been able to find anything that works.
>
> I know I can get the envelope with 
> axis2_svc_client_get_last_response_soap_envelope (maybe there's a 
> better way). From there I'm lost in a forest of axis/axiom XML 
> readers, writers, document objects, elements, and streams...
>
> Thanks
>
> Jim Hughes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

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


Re: how to deserialize the envelope?

Posted by Damitha Kumarage <da...@wso2.com>.
jim wrote:
>  Can someone point me to a CURRENT example of how to serialize a 
> response's SOAP envelope to a string that can be sent to the console?
soap_envelope = 
axis2_svc_client_get_last_response_soap_envelope(svc_client, env);
axiom_node_t *node = axiom_soap_envelope_get_base_node(soap_envelope, env);
printf("%s\n", axiom_node_to_string(node, env));

Damitha
>
> I know this is a perennial question - I've searched the archives and 
> found some discussions, but the examples tend to be long and verbose, 
> and some apparently are out of date and rely on APIs no longer 
> available.  I've not been able to find anything that works.
>
> I know I can get the envelope with 
> axis2_svc_client_get_last_response_soap_envelope (maybe there's a 
> better way). From there I'm lost in a forest of axis/axiom XML 
> readers, writers, document objects, elements, and streams...
>
> Thanks
>
> Jim Hughes
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-dev-help@axis.apache.org
>
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

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