diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2005-04-11 07:09:49 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2005-04-11 07:09:49 +0000 |
| commit | bc2e4973fef94307ecc82c71ef5fe64b6bb587af (patch) | |
| tree | b4633ddd4c4005fea39f599cf5c212eae592b4af | |
| parent | ffb2307e4adcdec0155a91ded498202edfaacdbe (diff) | |
| download | lasso-bc2e4973fef94307ecc82c71ef5fe64b6bb587af.tar.gz lasso-bc2e4973fef94307ecc82c71ef5fe64b6bb587af.tar.xz lasso-bc2e4973fef94307ecc82c71ef5fe64b6bb587af.zip | |
Updated Discovery : now it binds his messages in liberty wsf SOAP envelope.
| -rw-r--r-- | lasso/id-wsf/discovery.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lasso/id-wsf/discovery.c b/lasso/id-wsf/discovery.c index 5e938d1c..0d0b54b6 100644 --- a/lasso/id-wsf/discovery.c +++ b/lasso/id-wsf/discovery.c @@ -223,16 +223,22 @@ lasso_discovery_init_query(LassoDiscovery *discovery, LassoDiscoResourceOffering *resourceOffering, LassoDiscoDescription *description) { + LassoSoapEnvelope *envelope; + LassoDiscoQuery *query; + 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_query_new()); - /* - * after the call of this method, app must add requested service types - */ + query = lasso_disco_query_new(); + LASSO_WSF_PROFILE(discovery)->request = LASSO_NODE(query); + + 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, query); + return lasso_discovery_init_request(discovery, resourceOffering, description); } |
