summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiang Hou <houliang@intel.com>2007-12-13 01:27:44 +0000
committerLiang Hou <houliang@intel.com>2007-12-13 01:27:44 +0000
commitabfed18cf21e433677ec7a38f0400fef467cefc9 (patch)
tree3a5d2c5a0a8fc0bd82b96d8c4d612624e22bcad6 /src
parent237f6a8028acf724035afdab4ffac87cf42f1c6e (diff)
downloadwsmancli-abfed18cf21e433677ec7a38f0400fef467cefc9.tar.gz
wsmancli-abfed18cf21e433677ec7a38f0400fef467cefc9.tar.xz
wsmancli-abfed18cf21e433677ec7a38f0400fef467cefc9.zip
fix an error in renew
Diffstat (limited to 'src')
-rw-r--r--src/wsman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wsman.c b/src/wsman.c
index b3f6bb2..4ef6ce0 100644
--- a/src/wsman.c
+++ b/src/wsman.c
@@ -814,7 +814,7 @@ int main(int argc, char **argv)
}
break;
case WSMAN_ACTION_UNSUBSCRIBE:
- snprintf(subscontext, 512 , "<?xml version=\"1.0\" encoding=\"UTF-8\"?><wsa:ReferenceParameters xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" \
+ snprintf(subscontext, 512 , "<wsa:ReferenceParameters xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" \
xmlns:wse=\"http://schemas.xmlsoap.org/ws/2004/08/eventing\"><wse:Identifier>%s</wse:Identifier> \
</wsa:ReferenceParameters>", event_subscription_id);
rqstDoc = wsmc_action_unsubscribe(cl, resource_uri, options, subscontext);
@@ -829,7 +829,7 @@ int main(int argc, char **argv)
snprintf(subscontext, 512 , "<wsa:ReferenceParameters xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" \
xmlns:wse=\"http://schemas.xmlsoap.org/ws/2004/08/eventing\"><wse:Identifier>%s</wse:Identifier> \
</wsa:ReferenceParameters>", event_subscription_id);
- rqstDoc = wsmc_action_renew(cl, resource_uri, options, event_subscription_id);
+ rqstDoc = wsmc_action_renew(cl, resource_uri, options, subscontext);
wsman_output(cl, rqstDoc);
if (rqstDoc) {
ws_xml_destroy_doc(rqstDoc);