diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-02 17:11:24 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-02 17:11:24 +0100 |
commit | 70aee6e9dfece2760fc6d616e7151f41cc7625bf (patch) | |
tree | 311649a1e05b42bab8c259068623f4508e080f6d /lib/model.rb | |
parent | 3aaae5a3fe341073fc0537606aababe387d830e0 (diff) |
resclient wrapper: headers <-> payload, error report from rdf
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/model.rb b/lib/model.rb index 80d7ec4..7cf52ad 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -17,7 +17,7 @@ module OpenTox end end LOGGER.info "running model "+@uri.to_s+", params: "+params.inspect+", accept: "+accept_header.to_s - RestClientWrapper.post(@uri,{:accept => accept_header},params,waiting_task).to_s + RestClientWrapper.post(@uri,params,{:accept => accept_header},waiting_task).to_s end # Generic OpenTox model class for all API compliant services @@ -303,7 +303,7 @@ module OpenTox # Save model at model service def save(subjectid) - self.uri = RestClientWrapper.post(@uri,{:content_type => "application/x-yaml", :subjectid => subjectid},self.to_yaml) + self.uri = RestClientWrapper.post(@uri,self.to_yaml,{:content_type => "application/x-yaml", :subjectid => subjectid}) end # Delete model at model service |