on 2014 Feb 17 10:32 AM
Can I consume a Restful web service that needs to post a XML file? I like to call a Redmine web service to register hours for a project. I need to call a web service described in this url: http://www.redmine.org/projects/redmine/wiki/Rest_TimeEntries How do I pass the needed XML string to the web service?
Tia Hans
Request clarification before answering.
I solved the problem as follows. Maybe somebody else can us this in the future.
CREATE PROCEDURE "DBA"."zz_redmine_test"(IN "time_entries.xml" LONG VARCHAR) URL 'https://bb<--My API key-->>ca:pwd@pj.tsd.nl:1443/redmine/time_entries.xml' CERTIFICATE 'CERT=-----BEGIN CERTIFICATE----- MIIE7zCCA9egAwIBAgIQJYaVVWDj...... ...... -----END CERTIFICATE-----' TYPE 'HTTP:POST:text/xml' CALL "DBA"."zz_redmine_test" ('<time_entry> <issue_id>1139</issue_id> <activity_id>9</activity_id> <hours>1.0</hours> <comments>Testfall</comments> <spent_on>2012-02-16</spent_on> </time_entry>')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
47 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.