summaryrefslogtreecommitdiffstats
path: root/examples/create_resource.c
diff options
context:
space:
mode:
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);