summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-09-11 15:51:39 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-09-11 15:51:39 +0000
commit52d0b8cc6adf606448d8ec904b14791b7cb93f7e (patch)
treef0e2b35c4bb91e0bfc29ad9f57a540992441269f
parent8f6e7dcb4920e0561bd9892abf4d4facbc553e82 (diff)
ID-WSF 2.0: add accessor for field of LassoIdWsf2Profile
* lasso/id-wsf-2.0/profile.c lasso/id-wsf-2.0/profile.c: add two accessor to get to soap_response and soap_request object, next step is to make those two fields really private.
-rw-r--r--lasso/id-wsf-2.0/profile.c32
-rw-r--r--lasso/id-wsf-2.0/profile.h5
2 files changed, 37 insertions, 0 deletions
diff --git a/lasso/id-wsf-2.0/profile.c b/lasso/id-wsf-2.0/profile.c
index a368472b..b8609bd4 100644
--- a/lasso/id-wsf-2.0/profile.c
+++ b/lasso/id-wsf-2.0/profile.c
@@ -189,6 +189,38 @@ lasso_idwsf2_profile_process_soap_response_msg(LassoIdWsf2Profile *profile, cons
return res;
}
+
+/**
+ * lasso_idwsf2_profile_get_soap_envelope_request:
+ * @idwsf2_profile: a #LassoIdWsf2Profile object
+ *
+ * Return the last parsed SOAP request object.
+ *
+ * Return value: a #LassoSoapEnvelope object or NULL if no request as ever been parsed with this
+ * object. You must free this object.
+ */
+LassoSoapEnvelope* lasso_idwsf2_profile_get_soap_envelope_request(LassoIdWsf2Profile *idwsf2_profile)
+{
+ return g_object_ref(idwsf2_profile->soap_envelope_request);
+
+}
+
+/**
+ * lasso_idwsf2_profile_get_soap_envelope_response:
+ * @idwsf2_profile: a #LassoIdWsf2Profile object
+ *
+ * Return the last parsed SOAP response object.
+ *
+ * Return value: a #LassoSoapEnvelope object or NULL if no response as ever been parsed with this
+ * object. You must free this object.
+ */
+LassoSoapEnvelope* lasso_idwsf2_profile_get_soap_envelope_response(LassoIdWsf2Profile *idwsf2_profile)
+{
+ return g_object_ref(idwsf2_profile->soap_envelope_response);
+
+}
+
+
/*****************************************************************************/
/* overridden parent class methods */
/*****************************************************************************/
diff --git a/lasso/id-wsf-2.0/profile.h b/lasso/id-wsf-2.0/profile.h
index 7f171167..e766d685 100644
--- a/lasso/id-wsf-2.0/profile.h
+++ b/lasso/id-wsf-2.0/profile.h
@@ -82,6 +82,11 @@ LASSO_EXPORT LassoSoapEnvelope* lasso_idwsf2_profile_build_soap_envelope(
const char *refToMessageId,
const char *providerId);
+LASSO_EXPORT LassoSoapEnvelope* lasso_idwsf2_profile_get_soap_envelope_request(LassoIdWsf2Profile *idwsf2_profile);
+
+LASSO_EXPORT LassoSoapEnvelope* lasso_idwsf2_profile_get_soap_envelope_response(LassoIdWsf2Profile *idwsf2_profile);
+
+
#ifdef __cplusplus
}
#endif /* __cplusplus */