{"id":3083,"date":"2020-02-04T15:08:27","date_gmt":"2020-02-04T14:08:27","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=3083"},"modified":"2020-02-04T15:10:07","modified_gmt":"2020-02-04T14:10:07","slug":"ibm-doors-dxl-call-rest-services-rest-services-aufrufen","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=3083","title":{"rendered":"IBM Doors DXL: Call REST Services \/ REST-Services aufrufen"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>Von Doors aus sollen REST Services aufgerufen werden.<\/p>\n\n\n\n<p>REST Services shall be called within a DXL Script in IBM Doors<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Approach &#8211; Ansatz<\/h2>\n\n\n\n<p>Usage of OLE Automization<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution &#8211; L\u00f6sung<\/h2>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\npragma runLim,0\nOleAutoArgs args = create\nOleAutoArgs args2 = create\nOleAutoObj http = oleCreateAutoObject(&quot;WinHttp.WinHttpRequest.5.1&quot;)\nvoid sendResult(string commandId, string result) {\n\tclear(args)\n\tclear(args2)\n\tput(args, &quot;POST&quot;)\n\tput(args, &quot;https:\/\/my.url.de\/commands\/&quot; commandId &quot;\/result&quot;)\n\tOleAutoArgs args2 = create\n\tput(args2, result)\n\toleMethod(http, &quot;open&quot;, args)\n\tstring res = oleMethod(http, &quot;send&quot;, args2)\n\tif(!null(res)){\n\t\t\t\tprint &quot;\\n&quot; stringOf(dateAndTime(today)) &quot;: Sending data data Failed&quot;\n\t\t\t\tprint &quot;\\n&quot; res\n\t}\n}\nRegexp lines = regexp &quot;.*&quot;\nbool connected = true\nwhile(connected) {\n\tclear(args)\n\tput(args, &quot;GET&quot;)\n\tput(args, &quot;https:\/\/my.url.de\/nextCommand&quot;)\n\toleMethod(http, &quot;open&quot;, args)\n\toleMethod(http, &quot;send&quot;)\n\tint status\n\toleGet(http, &quot;status&quot;, status)\n\tconnected = status == 200\n\tstring response\n\toleGet(http, &quot;responseText&quot;, response)\n\tprint &quot;RESPONSE:&quot; response &quot;\\n&quot;\n\tlines response\n\tstring commandId = response&#x5B;0:end 0]\n\tstring resultUrl = &quot;https:\/\/my.urld.de\/rest\/connections\/107030b3-0a046c8d-7c2b9836-edaa752e\/commands\/&quot; commandId &quot;\/result&quot;\n\tstring command = &quot;pragma runLim,0\\nstring resultUrl = \\&quot;&quot; resultUrl &quot;\\&quot;\\n&quot; response&#x5B;end 0+2:]\n\tsendResult(commandId, eval_(command))\n}\n<\/pre><\/div><\/div><\/div>\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D3083&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem Von Doors aus sollen REST Services aufgerufen werden. REST Services shall be called within a DXL Script in IBM Doors Approach &#8211; Ansatz Usage of OLE Automization Solution &#8211; L\u00f6sung<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22,19],"tags":[94,84,91,82,93,90,95,92],"class_list":["post-3083","post","type-post","status-publish","format-standard","hentry","category-dxl","category-ibm-doors","tag-call-rest","tag-dxl","tag-http","tag-ibm-doors","tag-microservices","tag-rest","tag-rest-call","tag-webservices"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-NJ","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3083"}],"version-history":[{"count":4,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3083\/revisions"}],"predecessor-version":[{"id":3087,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3083\/revisions\/3087"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}