Find Jobs
Hire Freelancers

Build a sql query to get sku, description and quantity through JSON API by using UTL_HTTP

$10-30 USD

已关闭
已发布超过 3 年前

$10-30 USD

货到付款
Before you panic, I will help you with the methods. A ton of information is available online. StoreHippo is a SAAS E-commerce platform and below is help on their API information: [login to view URL] I have oracle 11g on Linux, what I want to do is retrieve all the products in a row format, each line with a product and just 3 columns (SKU, description, and quantity) Below is the functioning SQL query and I have already added the access key, it gives the complete product data. The Job: modify the SQL query to get the SKU, description, and quantity in a tabular format, each product in a row. SQL Query beings: /* Formatted on 12/11/2020 10:23:31 AM (QP5 v5.114.809.3010) */ DECLARE t_http_req [login to view URL]; t_http_resp [login to view URL]; t_request_body varchar2 (30000); t_respond varchar2 (30000); t_start_pos integer := 1; t_output varchar2 (2000); BEGIN /*Construct the information you want to send to the webservice. Normally this would be in a xml structure. But for a REST- webservice this is not mandatory. The webservice i needed to call excepts plain test.*/ t_request_body := 'I dont know what to write here'; /*Telling Oracle where the webservice can be found, what kind of request is made and the version of the HTTP*/ t_http_req := UTL_HTTP.begin_request ( '[login to view URL]', 'GET', 'HTTP/1.1' ); /*In my case the webservice used authentication with a username an password that was provided to me. You can skip this line if it's a public webservice.*/ UTL_HTTP.set_authentication (t_http_req, 'access-key', '6a3b8566d83da3f1037164f42cbd10e2'); /*Describe in the request-header what kind of data is send*/ UTL_HTTP.set_header (t_http_req, 'Content-Type', 'text/xml charset=UTF-8'); /*Describe in the request-header the lengt of the data*/ UTL_HTTP.set_header (t_http_req, 'Content-Length', LENGTH (t_request_body)); /*Put the data in de body of the request*/ UTL_HTTP.write_text (t_http_req, t_request_body); /*make the actual request to the webservice en catch the responce in a variable*/ t_http_resp := UTL_HTTP.get_response (t_http_req); /*Read the body of the response, so you can find out if the information was received ok by the webservice. Go to the documentation of the webservice for what kind of responce you should expect. In my case it was: <responce> <status>ok</status> </responce> */ UTL_HTTP.read_text (t_http_resp, t_respond); DBMS_OUTPUT.put_line (t_respond); /*Some closing?1 Releasing some memory, i think....*/ UTL_HTTP.end_response (t_http_resp); END; More Information: If you have a problem accessing SSL data through oracle and it requires oracle wallet, there is a workaround as follows: Just add this to [login to view URL]: SSLProxyEngine on ProxyPass /my-selected-merchant-site [login to view URL] ProxyPassReverse /my-selected-merchant-site [login to view URL] *make sure that you have mod_ssl installed (with default options) and “ProxyRequests Off” After that, change the package from this: utl_http.begin_request(‘[login to view URL]’,’POST’,’HTTP/1.1′); to this: utl_http.begin_request(‘http://myhost/my-selected-merchant-site/’,’POST’,’HTTP/1.0′); And forget about the wallet.
项目 ID: 28130288

关于此项目

6提案
远程项目
活跃3 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
6威客以平均价$56 USD来参与此工作竞价
用户头像
Hello, I am Oracle certified professional programmer and I have been working with PL/SQL for over last five years. I have done very similar work. I have access to Oracle database and I can start this right now and finish in few hours. Thank you.
$30 USD 在1天之内
5.0 (12条评论)
4.1
4.1
用户头像
Hi, I can do this for you but two questions: 1- what do you mean by tabular format? you mean saving products data returned by API in a table? 2- will you give me access to your environment to test my modifications on query? Regards Ramin.
$30 USD 在1天之内
4.7 (12条评论)
3.8
3.8
用户头像
I have done wallet creation in amazon ec2. I think this is something similar. ping me to discuss more.
$56 USD 在3天之内
5.0 (2条评论)
1.4
1.4
用户头像
Hi There, I'm data analyst with six years of experience. I can easily get you the required data in efficient way with minimal time. Please drop me a text if you need assistance. Thanks.
$40 USD 在2天之内
0.0 (0条评论)
0.0
0.0
用户头像
I have 4 years experience working in Oracle database. I understand your problem and will provide result quickly and efficiently. let's connect and discuss more.
$30 USD 在3天之内
0.0 (0条评论)
0.0
0.0

关于客户

KUWAIT的国旗
Kuwait City, Kuwait
5.0
1
付款方式已验证
会员自8月 1, 2019起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。