summaryrefslogtreecommitdiffstats
path: root/examples/create_resource.c
diff options
context:
space:
mode:
authorVadim Revyakin <vadimr@intel.com>2007-01-29 12:42:47 +0000
committerVadim Revyakin <vadimr@intel.com>2007-01-29 12:42:47 +0000
commitb713a21ee8f35e163a610f4ceb82994a69f5f15e (patch)
treed758c3b33c139e26da39ba92d31233b71ec2bc2e /examples/create_resource.c
parent0117e6866b9becd6a4ff338b71705be27e21ce65 (diff)
downloadwsmancli-b713a21ee8f35e163a610f4ceb82994a69f5f15e.tar.gz
wsmancli-b713a21ee8f35e163a610f4ceb82994a69f5f15e.tar.xz
wsmancli-b713a21ee8f35e163a610f4ceb82994a69f5f15e.zip
Modified client API. Ruby is not fixed
Diffstat (limited to 'examples/create_resource.c')
-rw-r--r--examples/create_resource.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/create_resource.c b/examples/create_resource.c
index 043faee..41aa6a2 100644
--- a/examples/create_resource.c
+++ b/examples/create_resource.c
@@ -159,11 +159,10 @@ int main(int argc, char** argv)
d->Handles.count = count;
d->Handles.data = array;
- doc = ws_transfer_create_serialized(cl, RESOURCE_URI, d,
- EXL_ExamplePolicy_TypeInfo, options);
-
- if (doc)
- ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc));
+ doc = ws_transfer_create_serialized(cl, RESOURCE_URI, options, d,
+ EXL_ExamplePolicy_TypeInfo);
+ if (doc)
+ ws_xml_dump_node_tree(stdout, ws_xml_get_doc_root(doc));
if (uri) {
u_uri_free(uri);