Web services RESTful, passing parameters of character
I am creating a RESTful web service outside of a standard report in APEX 4.1 I can make it work and even pass a numeric parameter to filter the data by year. However when I try and pass a character so of filetr data further, it does not support the parameter correctly (no data returned)...
URL for accessing the web service:
http://apexdevqaproxy.dpi.state.nc.us/pls/apexdev/apex_rest.getReport?app=112&page=666&reportid=666&parmvalues=2012,059,P666_FISCAL_YEAR,P666_LEA_NUMBER
Code for Report Select:
SELECT FISCAL_YEAR,
LEA_NUMBER,
PRC_NUMBER,
BUDGET_OR_AMENDMENT ,
BUDGET_AMENDMENT_NUMBER ,
APPROVAL_CODE,
FUND_CODE,
PURPOSE_CODE,
OBJECT_CODE,
SITE_NUMBER,
LOCAL_FIELD,
FIELD_503,
LINE_SEQUENCE,
APPROVAL_COMMENTS
FROM TBL_COMMUNICATIONS_LOGS
WHERE Fiscal_Year = :P666_Fiscal_Year AND
Lea_Number = :P666_LEA_NUMBER
If I remove the Lea_Number condition in the Where clause, the Fiscal_Year works filtering... Do I pass a string to the Web service call to be used wisely?Running under Weblogic web server, APEX 4.1, browser, with which I'm testing is IE 8...
Thank you
Tony MIller
Raleigh, NC
Thank you
Hello
I think that the URL does not contain the names of elements
Try
http://apexdevqaproxy.dpi.state.nc.us/pls/apexdev/apex_rest.getReport?app=112&page=666&reportid=666&parmvalues=2012,059
And you check that returns the data from a query?
SELECT FISCAL_YEAR,
LEA_NUMBER,
PRC_NUMBER,
BUDGET_OR_AMENDMENT ,
BUDGET_AMENDMENT_NUMBER ,
APPROVAL_CODE,
FUND_CODE,
PURPOSE_CODE,
OBJECT_CODE,
SITE_NUMBER,
LOCAL_FIELD,
FIELD_503,
LINE_SEQUENCE,
APPROVAL_COMMENTS
FROM TBL_COMMUNICATIONS_LOGS
WHERE Fiscal_Year = 2012 AND
Lea_Number = '059'
Kind regards
Jari
http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0
Tags: Database
Similar Questions
-
Consume the RESTful web service - by passing the values of URL parameters
Hello
I'm working on a RESTful web service call. It works fine if I encode a URL in the format below (it is not the actual URL, just for your information):
http://ws.webserviceproducer.com/KEYVALUE/FUNCTIONVALUE/COUNTRY/CP/champs
where KEYVALUE is required by the Web service provider text
FUNCTIONVALUE is again fixed and determines what the result is returned in the format
COUNTRY is the code of the country, e.g. UK, so would need to be replaced by a variable
Postcode is the postcode for example PO14 2JN or postal code and must be replaced by a variable
field text is again fixed and is used to determine the output format.
My question is simple how can I replace the two fields, COUNTRY and POSTAL code with variables of the elements of the apex.
I tried using the headers HTTP REST and the REST of the settings entry but without any luck so far. I tried substitution of variables directly in the URL also without success.
Thank you
Chris
Have you tried this APEX_WEB_SERVICE ?
-
Consume Web service REST to 8.52 PT with JSON body
We are on tools 8.52 and try to consume a web service from REST to the external address. I have successfully built a document and I am able to use the GET operation (where no body is necessary), but for the POST, I need to be able to provide the body in JSON format. 8.52 tools is not supported with native support for JSON, but it should always be possible generate the JSON string manually, it should not?
Has anyone else done this?
I thought you said you were on PeopleTools 8.52. Support JSON for Documents has not been added up to 8.53. Add an element with the attribute psnonxml to your load XML and put your JSON in this element. Integration Broker will remove XML Integration Broker exit. You can see an example here: http://jjmpsj.blogspot.com/2011/10/rest-like-peoplesoft-services.html.
-
How to consume web services REST in ADF - JDeveloper 11.1.1.6
I have an ADF application deployed on Java cloud and I'm trying everything to try to get the data into it. I could not set up a connection to the Oracle Cloud server, to remedy this I created my db cloud instance RESTful web services. Now, I need to consume web services in my ADF application.
Is there a way to link the ADF business components to RESTful web services in version 11.1.1.6?
If not, then how is it possible to get data in your ADF application deployed on Java cloud? You cannot connect to the DB, you can not link to REST web services, how are you supposed to use your data?
Thank you.
Check out hands-on experience on Oracle products: deploy Oracle Cloud database objects using JDeveloper for the part of the database and hands-on experience on Oracle products: deployment of Applications in the cloud to Oracle using JDeveloper ADF on how to deploy an application in the cloud.
Timo
-
Passing parameters from the request to an external Web Service
Hi all
I'm not new to ODI, but today I have to work with Web services, something I've never done before.
so I need help.
My new project aims to fill a DB table, but the only way to do it is passing data through a web service.
The web service already exists and I can't create a new one, so I guess that by using Data Services ODI is not a solution.
This web service is waiting for the values in the column, and there is an insert in the final table.
Finally, I want to call this Web Service and pass through the settings from a query of RDBMS.
Before creating this post, I searched around articles and documentations and the only thing I found was on the documentation of ODI, but was really short:
Using the mechanism of binding for applications:
It is possible to use the mechanism of binding when using a web service call in a procedure. With this method, it is possible to call a web service for each row returned by a query by setting the request based on the values of the line
So it seems to be possible, but if you have some clues on how to do it please let me know...Hi Brice...
How are you my friend?
It's not that difficult...
Have you ever used the tool of odiInvokeWebService?
All you need to do is call this tool in a target tab of proceedings and in the use of the source of the query.
Don't worry about variables "bind", call the kind of substitution ' # ', it will work better.
Does this make any sense?
Cezar Santos
http://odiexperts.com -
How to use the web service rest in the blackberry for the answers platform
Same as you would project in any other JavaScript. The only extra thing you need to do is Server whitelist in your config.xml file.
-
Problem during the call to an external web service - CRM 2013
Hello everyone.
It's my scenario:
I do a real-time CRM data integration with other software. I have deployed several plugins, for the most part in messages to create/update, for entities I want to synchronize. The developers of other software gave me the web service endpoint and I created the client using svcutil. Manually, I created the link and gave it to the generated client, as well as the end point. In the events of the first, I could synchronize some records, but I had a few mapping errors. I debugged the plugin, corrected errors, and when I want again to the tests, the plugin is throw me an exception when any method of the web service. Let me explain the problem:
The exception:
I have instantiated the web service client (passing the binding and endpoint). And when I try to call any method (e.g. Add), it throws the exceptions "InvalidOperationException. I started to debug the code and I noticed that just before calling the web service method, the stills in 'Opening' client state (as you can see in the picture above). Of course that throws the exception.
{ The complete exception is: ' cannot modify the purpose of communication, System.ServiceModel.ChannelFactory'1 [IAxxisWcfServices], although it is in the Opening State. "} System.SystemException {System.InvalidOperationException}
I did a test, outside the environment of the CRM, on a console application with the same conditions of the customer web services (generation with svcutil manually passing the same binding and endpoint), and the same order, the code of the plugin and everything works well. The State of the customer never stills 'Opening', so I put discarded any problem with the web service.
Does anyone know if I'm missing something in the code? or some configurations?
CRM is 2013 on site with the latest updates.
Thanks in advance.
This issue is beyond the scope of this site and must be placed on Technet or MSDN
-
RESTful Web services works only with input parameters
I want to create a RESTful Web Services APEX 4.2, who returns to the client, account information required to certain conditions.
SELECT NAME, AGE, ADDRESS
ACCOUNT
WHERE FINANCE >: FUNDS AND CONTROL >: AUDIT
I defined variables this way. I tried two URIS, and the Source Type of Httpentete, but nothing works.
Name Link the name of the Variable Access method Type of source Parameter type AUDIT OF AUDIT OF IN URI Double FUND FUND IN URI Double I would like to invoke Web Services from a custom page in a web browser, something like this:
http://localhost/user/customer?funds=1000 & checking = 200
I could not make passing the values of input in URI parameters to Web Services to work (got an error). I did anything wrong here? Is this supported?
Thank you.
After some research, I finally cracked. The URI template for my example should be: customer? funds {MONEY} = & check = {CURRENT} now, I can access web services using this URL: http://localhost/schema/customer?FUNDS=1000&CHECKING=200
-
With parameters rESTful Web services
Hello
I'm new to the RESTful Web Services and I have a few problems. Here's what I've done so far.
1.) created a web service in SQL workshop area.
2.) named the User_Test module
3.) named the model URI User_Test / {Userid} (requires secure access is set to no and format is set to JSON)
4.) created a query that looks something like this...
Select field1,
Field2,
field3
from schema.table
Where user_id =: userid
5.) created a parameter name and variable binding name are the two "userid".
Navigated 6) at the following URL:
_ http://localhost:9091 / apex/app_name/User_Test/1
The result is:
{
[items]
}
When I change my steps so that there is no parameter, it works fine. Any thoughts on what I am doing wrong?
Thank you
Brian
OK, looks like NOT specifying a parameter seems to solve this problem.
-
ApEx 4.0 the REST Web Services
I need to build a URL to pass parameters to query to a RESTful Web Service. Looks like the default in 4.0 is to specify the parameters as a query (http://myservice.com/customer?id=23)... I need build the query a directory (http://myservice.com/customer/id/23) is there a way to do this easily? I think of "Body specified with Substitutions" option sounded promising, but can't find any documentation or examples.user11985346:
Body specified with substitutions is used to DISPLAY or PUT a payload to the service. What you want to do, it is simply not set all the parameters for the query string, but only reference point substitutions in the endpoint URL. So in your example, you should have a URL endpoint:
http://myService.com/customer/ID/&CUSTOMER_ID.
Then, your application must contain an element named CUSTOMER_ID, and his session state should be established in function before calling the Web Service.
Kind regards
Jason
-
Oracle PL/SQL Web service - dynamic parameters... possible?
Oracle 11.2.0.3 - newbie on web services!
Currently we have a pl/sql web service takes 2 static parameters and return a response of varchar2.
Asked me today if it is possible for a web service in a dynamic set of parameters and return a set of results. It's as if I have to pass the web service a table with two columns and return an array from a column.
For example:
of course in XML output. Is it possible?Input Output 1 2 3 3 4 7 5 6 11
p.s. I posted this in OC4J also - no response so the re-post!Parameters related to the procedures. Web services require XML messages.
Where are the settings? You cannot pass a dynamic number of parameters in a procedure, but you can pass a structured as a parameter type that can contain multiple values, either a table/collection type or document XML itself.
All package values in the XML file and pass it to the web service.
If this isn't answering your question, please post more information, with some sample data and code. Read the FAQ: {message identifier: = 9360002}
-
Basic authentication with the RESTful WEb service and a Web Service reference
Hi all
We have made significant progress on getting an application to work with RESTful web services, but are now trying to understand how to lock a RESTful Web service while making it available for a particular application.
We use one of the 'emp' table sample web services come with Apex 4.2 and are trying to apply the Basic Auth to the WEb Service using Weblogic filter defined in the web.xml file. Which works very well. I now get challenged when I try to go to:
https://wlogic.edu/Apex/BNR/ACE/HR/empinfo/
And when I authenticate this challenge, I am able to get the data. (we are usiing the Weblogic-level LDAP authentication)
However, I'm not sure how to get even basic authentication to work with Web Service reference in my application. I see the error message in the application when I try to call this Web Service:
401 Unauthorized <
And I see:
"The request requires user authentication. It MUST contain a header field WWW-Authenticate (section 14.46) containing a fault that is applicable to the requested resource. The client MAY repeat the request with a suitable authorization (section 14.8) header field. If the request already includes identification of the authorization information»
How can I provide the credentials in the Web reference or provide credentials in the Application?
Web service works fine if I remove the auth basic RESTful web service in the Web.xml file.
We should NOT use basic auth and auth Weblogic web service definition basic RESTful Workspace use instead. If so, how would we implement THIS basic authentication in the definition of Web Service and the Web SErvice reference on the application?
Thank you
PatHello Scott,
Thank you. There is a function for rest in the package:
function make_rest_request( -- -- This function invokes a RESTful Web service with the supplied name value pairs, body clob, or body blob -- the response as an clob. -- -- Arguments: -- p_url The url endpoint of the Web service -- p_http_method The HTTP Method to use, PUT, POST, GET, HEAD or DELETE -- p_username The username if basic authentication is required for this service -- p_password The password if basic authentication is required for this service -- p_proxy_override The proxy to use for the request -- p_body The HTTP payload to be sent as clob -- p_body_blob The HTTP payload to be sent as binary blob (ex., posting a file) -- p_parm_name The name of the parameters to be used in name/value pairs -- p_parm_value The value of the paramters to be used in name/value pairs -- p_wallet_path The filesystem path to a wallet if request is https -- ex., file:/usr/home/oracle/WALLETS -- p_wallet_pwd The password to access the wallet -- p_url in varchar2, p_http_method in varchar2, p_username in varchar2 default null, p_password in varchar2 default null, p_proxy_override in varchar2 default null, p_transfer_timeout in number default 180, p_body in clob default empty_clob(), p_body_blob in blob default empty_blob(), p_parm_name in wwv_flow_global.vc_arr2 default empty_vc_arr, p_parm_value in wwv_flow_global.vc_arr2 default empty_vc_arr, p_wallet_path in varchar2 default null, p_wallet_pwd in varchar2 default null ) return clob;
My point was that using the API makes things easier if you have to look for a solution.
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
http://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
Could not find 'MAF Business objects of REST Web Service' in the Gallery
Hello
I installed Jdev studio 12.1.3.0.0 and installed updates for the extension of the MAF. It shows screen-Extensions on Jdev Mobile Application Framework.
I have windows 32-bit and using the version compatible jdev.
But there is no option for the creation of 'MAF Business objects of REST Web Service' in the gallery.
Can someone please help.
I am also attaching screenshot.
Thank you
Abbas Qureshi
Abbas,
This wizard is part of the A-team Mobile Accelerator persistence (AMPA), which is a separate JDeveloper extension that works on top of the MAF.
See this article start for more information.
Steven Davelaar,
Oracle Mobile & Cloud A-team.
-
Hello
Someone can let me know what kind of Web services, we can consume using bridge Oracle SOA that is integrated (type Type REST or SOAP).
Thank you
-Vijay G
Hello
Using the Version of the EBS: R12.1.3.
I found also that before R12.2.4 it only supports SOAP Web services and R12.2.4 supports both SOAP and REST.
Thank you
-Vijay
-
How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.
I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC
The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.
Maybe you are looking for
-
MI, iPhone 4S no detecta don't redes wifi
Hola.Tengo an iPhone 4S that I worked perfectly until a bright idea to fornuis 2015 tuve finals an iOS 9. Habia visitado diverse web pages to see if the podia traer algun problema/s en mi device type change y todas decian than iOS 9 worked correctame
-
I have problems on some sites, I she had fixed once but I forgot the method I used.
-
I have a laptop HP 15 - r032tx Notebook PC and I formatted my lappy because of some virus bad cuz its remained now my lappy is installed with WINDOWS 7 64-Bit. So after formatting I wasn't havnt readers so I got from HP website. in this case wen I do
-
Contained in the factory of recovery failure
3000 N100 Type: 0689 A42 Vista Basic Background: I pressed the F11 at startup the rescue and recovery program in order to have a recovery (content of the plant). Then, the system has begun to preload the customization. However, in State of play (the
-
why I took out of msn messenger explore 1nternet I have windows xp and the service pack 3
can you help me I have internet explore and I had msn messenger and her took me out of msn messenger can you help me to get back to