summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Clapies <nclapies@entrouvert.com>2005-04-11 09:49:43 +0000
committerNicolas Clapies <nclapies@entrouvert.com>2005-04-11 09:49:43 +0000
commit5efb71d36c1882dd41ebbb4bf5d4982fcb2447c3 (patch)
tree0d24b9008c720a6883fb7d391735214d67924e4d
parentb6972e8c1881148ffb940d459837de34af91fc38 (diff)
downloadlasso-5efb71d36c1882dd41ebbb4bf5d4982fcb2447c3.tar.gz
lasso-5efb71d36c1882dd41ebbb4bf5d4982fcb2447c3.tar.xz
lasso-5efb71d36c1882dd41ebbb4bf5d4982fcb2447c3.zip
Fixed lasso_discovery_init_modify() : added missing code for liberty wsf soap binding.
-rw-r--r--lasso/id-wsf/discovery.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/lasso/id-wsf/discovery.c b/lasso/id-wsf/discovery.c
index 9eff304a..4c4ff191 100644
--- a/lasso/id-wsf/discovery.c
+++ b/lasso/id-wsf/discovery.c
@@ -206,16 +206,22 @@ lasso_discovery_init_modify(LassoDiscovery *discovery,
LassoDiscoResourceOffering *resourceOffering,
LassoDiscoDescription *description)
{
+ LassoSoapEnvelope *envelope;
+ LassoDiscoModify *modify;
+
g_return_val_if_fail(LASSO_IS_DISCOVERY(discovery), LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
g_return_val_if_fail(LASSO_IS_DISCO_RESOURCE_OFFERING(resourceOffering),
LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
g_return_val_if_fail(LASSO_IS_DISCO_DESCRIPTION(description),
LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
- LASSO_WSF_PROFILE(discovery)->request = LASSO_NODE(lasso_disco_modify_new());
- /*
- * after the call of this method, app must add InsertEntry and RemoveEntry
- */
+ modify = lasso_disco_modify_new();
+ LASSO_WSF_PROFILE(discovery)->request = LASSO_NODE(modify);
+
+ envelope = lasso_wsf_profile_build_soap_envelope(NULL);
+ LASSO_WSF_PROFILE(discovery)->soap_envelope_request = envelope;
+ envelope->Body->any = g_list_append(envelope->Body->any, modify);
+
return lasso_discovery_init_request(discovery, resourceOffering, description);
}