From 9c961db386b2987b6a1d3f96558b6acaecc71140 Mon Sep 17 00:00:00 2001 From: Liang Hou Date: Tue, 20 Nov 2007 07:01:14 +0000 Subject: update the example for serialization API update --- examples/wsmid_identify.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/wsmid_identify.c b/examples/wsmid_identify.c index 1c755fe..cc77284 100644 --- a/examples/wsmid_identify.c +++ b/examples/wsmid_identify.c @@ -40,6 +40,7 @@ #include "wsman-api.h" +#include "wsman-xml-serialize.h" struct __wsmid_identify { @@ -77,7 +78,7 @@ int main(int argc, char** argv) client_opt_t *options; char retval = 0; u_error_t *error = NULL; - WsContextH cntx = NULL; + WsSerializerContextH cntx = NULL; initialize_logging(); @@ -143,7 +144,7 @@ int main(int argc, char** argv) WsXmlNodeH soapBody = ws_xml_get_soap_body(doc); if (ws_xml_get_child(soapBody, 0, XML_NS_WSMAN_ID, "IdentifyResponse")) { - cntx = wsmc_get_context(cl); + cntx = ws_serializer_init(); debug("cntx: %p", cntx); wsmid_identify *id = ws_deserialize(cntx, -- cgit