# HG changeset patch # User Sebastien Jodogne # Date 1494425447 -7200 # Node ID 288c948199e5c7b8de293a7bc3049a56214228c3 # Parent d2adc6189a95a7390a273e8869ad1a31906e5199 cont diff -r d2adc6189a95 -r 288c948199e5 Framework/Toolbox/IWebService.h --- a/Framework/Toolbox/IWebService.h Wed May 10 11:34:06 2017 +0200 +++ b/Framework/Toolbox/IWebService.h Wed May 10 16:10:47 2017 +0200 @@ -40,9 +40,10 @@ virtual void NotifyError(const std::string& uri, Orthanc::IDynamicObject* payload) = 0; - virtual void NotifyAnswer(const std::string& uri, - const std::string& answer, - Orthanc::IDynamicObject* payload) = 0; + virtual void NotifySuccess(const std::string& uri, + const void* answer, + size_t answerSize, + Orthanc::IDynamicObject* payload) = 0; }; virtual ~IWebService() diff -r d2adc6189a95 -r 288c948199e5 Framework/Toolbox/OrthancWebService.cpp --- a/Framework/Toolbox/OrthancWebService.cpp Wed May 10 11:34:06 2017 +0200 +++ b/Framework/Toolbox/OrthancWebService.cpp Wed May 10 16:10:47 2017 +0200 @@ -50,7 +50,7 @@ { std::string answer; orthanc_->RestApiGet(answer, uri); - callback.NotifyAnswer(uri, answer, tmp.release()); + callback.NotifySuccess(uri, answer.c_str(), answer.size(), tmp.release()); } catch (Orthanc::OrthancException&) { @@ -69,7 +69,7 @@ { std::string answer; orthanc_->RestApiPost(answer, uri, body); - callback.NotifyAnswer(uri, answer, tmp.release()); + callback.NotifySuccess(uri, answer.c_str(), answer.size(), tmp.release()); } catch (Orthanc::OrthancException&) {