APEX post restful service inserts null value
Oracle APEX 4.2.5
Oracle Rest Data Service 2.0.7
Apache Tomcat 7
Oracle database 11.2.0.4
Oracle APEX PUT web service inserts null value into column. This is either a bug or the documentation does not properly cover how to correctly set PUT restful services.
GET web services works fine.
I have granted the role of apex_rest_public_user to both apex_public_user and the schema owner.
The payload is a small xml document, but even a text document will yield the same result.
I am using the Oracle REST Data Service 2.0.5
Web service code:
RESTful Service Module: software_details/
URI Template: xml_parser
Method: POST
Source Type: PL/SQL
MIME: Types Allowed: application/xml
Requires Secure Access: NO
Source :
begin
insert into clob_test (x)
values (blob_to_clob(:body)); ## according to some online post, :body is where APEX places any data being transferred through a web service. I have yet to find any official ##documentation on it.
commit:
end;
##Blob_to_clob function code
CREATE OR REPLACE FUNCTION blob_to_clob (blob_in IN BLOB)
RETURN CLOB
AS
v_clob CLOB;
v_varchar VARCHAR2(32767);
v_start PLS_INTEGER := 1;
v_buffer PLS_INTEGER := 32767;
BEGIN
DBMS_LOB.CREATETEMPORARY(v_clob, TRUE);
FOR i IN 1..CEIL(DBMS_LOB.GETLENGTH(blob_in) / v_buffer)
LOOP
v_varchar := UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(blob_in, v_buffer, v_start));
DBMS_LOB.WRITEAPPEND(v_clob, LENGTH(v_varchar), v_varchar);
v_start := v_start + v_buffer;
END LOOP;
RETURN v_clob;
END blob_to_clob;
#Table code
create table clob_test(
x clob));
Thank you,
I am experiencing the same issue.
I implemented the 'chunked file loading' example from Kris Rice's blog at Kris' blog: August 2013 in y workspace at the Oracle hosted APEX site and everything works fine.
However, I get a null value for 'data' when I implement the same example at my work site.
Work Site config is
Apache Tomcat 7
Oracle REST Data Services version : 2.0.6.27.18.06
Application Express 4.2.2.00.11
Oracle RDBMS 11.2.0.3
I am NOT using SSL at my work site. However this does not seem to affect a POST with form values.
Varad.
Similar Messages
-
ORACLE APEX POST Restful Web services
Any examples and/or ideas into how to insert a XML or JSON style document into column with XMLtype, varchar2, clob or blob type using an Apex post restful web service? I don't want to use SQL loader, external tables or something that requires a directory in the database server.
Oracle Apex 4.2
Apache tomcat 7 web server
Oracle Apex Listener 2.0
Oracle database 11.2.0.3
thank you!MK,
I am able to insert into a table the following json document;
{"name": "John", "age": "21"}
Here is the code behind it.
<code>
create table students (
name varchar2(100),
age varchar2(100));
begin
insert into students(name, age)
values(:name, :age);
end;
</code>
This works, But the following will fail,
{"name": "John", "age": "21"}, {"name": "Mary", "age": "22"}.
I would like to load the document into memory and insert into a table. -
POST - RESTful Service to insert a row
Hello,
How can We utilize Post method in APEX RESTful ?
I would like to insert a row (contact details) into the database from a form on a STATIC / Standalone HTML page.
I found this example, but I have no idea how to accomplish my objective ?
http://s15.postimg.org/65w6i858r/Screen_Shot_2014_04_02_at_7_13_38_AM.png
Regards,Hi Faraz,
You have several options:
In any APEX application, go to Shared Components / Web Service References. Here you can define a reference to a RESTful web service from the same Cloud service and specify POST or PUT method (among others).
Some browsers have plug-ins that implement REST web service clients (for example, "Advanced REST client" for Chrome).
You can also use command line tools like wget and curl.
Vlad -
Inserting null values from FileAdapter to DB Adapter thru Transform activit
Hi,
i am trying to insert a record from a file to DB for that i have used FileAdapter and DB Adapter in between it have used Tranform activity for passing from fileadpter receive var to Db Adapter Invoke var can .in the Bpel Instance values are passed up to tranform activity
below the xsl code and Bpel code
Xsl
+<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
<!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
<mapSources>
<source type="XSD">
<schema location="test3_1.xsd"/>
<rootElement name="readrecord" namespace="http://TargetNamespace.com/pickfile"/>
</source>
</mapSources>
<mapTargets>
<target type="XSD">
<schema location="insertintoTbl_table.xsd"/>
<rootElement name="XxempCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"/>
</target>
</mapTargets>
<!-- GENERATED BY ORACLE XSL MAPPER 10.1.3.5.0(build 090730.0200.1754) AT [FRI MAY 20 16:46:20 IST 2011]. -->
?>
<xsl:stylesheet version="1.0"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"
xmlns:tns="http://TargetNamespace.com/pickfile"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
exclude-result-prefixes="xsl xsd nxsd tns ns0 bpws ehdr hwf xref xp20 ora orcl ids">
<xsl:template match="/">
<ns0:XxempCollection>
<ns0:Xxemp>
<ns0:empcode>
<xsl:value-of select="/tns:readrecord/tns:C1"/>
</ns0:empcode>
<ns0:emptr>
<xsl:value-of select="/tns:readrecord/tns:C2"/>
</ns0:emptr>
<ns0:name>
<xsl:value-of select="/tns:readrecord/tns:C3"/>
</ns0:name>
<ns0:division>
<xsl:value-of select="/tns:readrecord/tns:C4"/>
</ns0:division>
<ns0:dept>
<xsl:value-of select="/tns:readrecord/tns:C5"/>
</ns0:dept>
<ns0:doj>
<xsl:value-of select="/tns:readrecord/tns:C6"/>
</ns0:doj>
<ns0:designation>
<xsl:value-of select="/tns:readrecord/tns:C7"/>
</ns0:designation>
<ns0:qualification>
<xsl:value-of select="/tns:readrecord/tns:C8"/>
</ns0:qualification>
</ns0:Xxemp>
</ns0:XxempCollection>
</xsl:template>
</xsl:stylesheet>
+
Bpelcode
+
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Thu May 19 19:43:57 IST 2011
Author: naveenv
Purpose: Empty BPEL Process
-->
<process name="FileToTbl" targetNamespace="http://xmlns.oracle.com/FileToTbl"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns5="http://xmlns.oracle.com/pcbpel/adapter/db/insertintoTbl/"
xmlns:client="http://xmlns.oracle.com/FileToTbl"
xmlns:ns6="http://xmlns.oracle.com/pcbpel/adapter/db/top/insertintoTbl"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/file/pickfile/"
xmlns:ns3="http://TargetNamespace.com/pickfile"
xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/inserttoTbl/"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<partnerLink myRole="Read_role" name="pickfile"
partnerLinkType="ns1:Read_plt"/>
<partnerLink name="insertintoTbl" partnerRole="insertintoTbl_role"
partnerLinkType="ns5:insertintoTbl_plt"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<variable name="Receive_1_Read_InputVariable"
messageType="ns1:readrecord_msg"/>
<variable name="Invoke_1_insert_InputVariable"
messageType="ns5:XxempCollection_msg"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<receive name="Receive_1" partnerLink="pickfile" portType="ns1:Read_ptt"
operation="Read" variable="Receive_1_Read_InputVariable"
createInstance="yes"/>
<assign name="Transform_1">
<bpelx:annotation>
<bpelx:pattern>transformation</bpelx:pattern>
</bpelx:annotation>
<copy>
<from expression="ora:processXSLT('Transformation_1.xsl',bpws:getVariableData('Receive_1_Read_InputVariable','readrecord'))"/>
<to variable="Receive_1_Read_InputVariable" part="readrecord"/>
</copy>
</assign>
<invoke name="Invoke_1" partnerLink="insertintoTbl"
portType="ns5:insertintoTbl_ptt" operation="insert"
inputVariable="Invoke_1_insert_InputVariable"/>
</sequence>
</process>
+
can anyone please help meHi,
yes i could see the values in the trsnaform activity
Receive_1
[2011/05/20 06:02:49 PM] Received "Receive_1_Read_InputVariable" call from partner "pickfile" less
-<Receive_1_Read_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readrecord">
-<readrecord xmlns="http://TargetNamespace.com/pickfile">
<C1>579
</C1>
<C2>EMPLOYEE
</C2>
<C3>NITIN RAO
</C3>
<C4>IME
</C4>
<C5>ORACLE
</C5>
<C6>4-Jan-99
</C6>
<C7>Senior Consultant
</C7>
<C8>B.TECH
</C8>
</readrecord>
</part>
</Receive_1_Read_InputVariable>
Transform_1
[2011/05/20 06:02:49 PM] Updated variable "Receive_1_Read_InputVariable" less
-<Receive_1_Read_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="readrecord">
-<readrecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/" xmlns="http://TargetNamespace.com/pickfile">
<db:EMPCODE>579
</db:EMPCODE>
<db:EMPTR>EMPLOYEE
</db:EMPTR>
<db:NAME>NITIN RAO
</db:NAME>
<db:DIVISION>IME
</db:DIVISION>
<db:DEPT>ORACLE
</db:DEPT>
<db:DOJ>4-Jan-99
</db:DOJ>
<db:DESIGNATION>Senior Consultant
</db:DESIGNATION>
<db:QUALIFICATION>B.TECH
</db:QUALIFICATION>
</readrecord>
</part>
</Receive_1_Read_InputVariable>
Invoke_1
[2011/05/20 06:02:50 PM] Invoked 1-way operation "inserttoDb" on partner "inserttoDb". less
-<Invoke_1_inserttoDb_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/APPS/BPELINSERT/"/>
</part>
</Invoke_1_inserttoDb_InputVariable -
Inserting NULL values from getParameterValues("name");
I want to get values from collection of checkboxes in JSP into servlet through getParameterValues("name");
But the problem is if the user does not tick a particular checkbox I want null to come in the array where getParameterValues("name") is storing values.
How to acheive that.I don't think that is possible, checkboxes which are not checked are simply not submitted at all.
What you can do is take the array and turn it into a Map, put the checkbox form element names as your keys. Then you can fetch the values from the Map, and the keys (form element names) that don't exist will turn up as null. -
4.0EA3 RESTful Services
Hi,
I noticed that Kris Rice blogged about the new ability to define APEX Listener RESTful Services in SQL Developer 4.0:
http://krisrice.blogspot.com/2013/08/sql-developer-meets-rest.html
However, I have some trouble connecting to the RESTful Services in 4.0EA3 (same thing in 4.0EA2, didn't try it in 4.0EA1). First of all, I use the same "adminlistener" account that I use to connect to APEX Listener administration from sqldev (I don't know if this is the correct way), and when connecting, I get "500 Internal Server Error". The application server log contains this:
oracle.dbtools.rt.web.WebErrorResponse internalError
SEVERE: null
JDBCException [kind=NO_DATA]
at oracle.dbtools.common.jdbc.JDBCException.wrap(JDBCException.java:99)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:63)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:38)
at oracle.dbtools.rt.jdbc.entity.JDBCEntityProviderBase.query(JDBCEntityProviderBase.java:358)
at oracle.dbtools.rt.oauth.jdbc.JDBCScopesProvider.scopeRoles(JDBCScopesProvider.java:224)
at oracle.dbtools.rt.oauth.jdbc.JDBCScopesProvider.retrieved(JDBCScopesProvider.java:111)
at oracle.dbtools.rt.oauth.jdbc.JDBCScopesProvider.retrieved(JDBCScopesProvider.java:47)
at oracle.dbtools.rt.jdbc.entity.JDBCEntityProviderBase.entity(JDBCEntityProviderBase.java:316)
at oracle.dbtools.rt.jdbc.entity.JDBCEntityProviderBase.entity(JDBCEntityProviderBase.java:328)
at oracle.dbtools.rt.oauth.jdbc.JDBCScopesProvider.byScopeName(JDBCScopesProvider.java:66)
at oracle.dbtools.rt.oauth.scope.Scopes.byScopeName(Scopes.java:33)
at oracle.dbtools.rt.oauth.builtin.jdbc.SQLDeveloperScopePaths.sqlDeveloperScope(SQLDeveloperScopePaths.java:100)
at oracle.dbtools.rt.oauth.builtin.jdbc.SQLDeveloperScopePaths.scopeForPath(SQLDeveloperScopePaths.java:86)
at oracle.dbtools.rt.oauth.ScopeAuthorizationPolicies.scope(ScopeAuthorizationPolicies.java:35)
at oracle.dbtools.rt.oauth.BearerTokens.authenticate(BearerTokens.java:61)
at oracle.dbtools.rt.authentication.AuthenticationService.authenticate(AuthenticationService.java:53)
at oracle.dbtools.rt.authentication.AuthenticationService.verify(AuthenticationService.java:79)
at oracle.dbtools.rt.web.RequestDispatchers.authenticate(RequestDispatchers.java:126)
at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:91)
at oracle.dbtools.rt.web.ETags.checkPrecondition(ETags.java:53)
at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:423)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:886)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1175)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1288)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3656)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1495)
at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:111)
at $Proxy118.executeQuery(Unknown Source)
at oracle.dbtools.common.jdbc.JDBCQueryImpl.resultSet(JDBCQueryImpl.java:92)
at oracle.dbtools.common.jdbc.JDBCResultRowIterator.<init>(JDBCResultRowIterator.java:29)
at oracle.dbtools.common.jdbc.JDBCQueryImpl.execute(JDBCQueryImpl.java:52)
at oracle.dbtools.common.jdbc.JDBCQueryProvider.query(JDBCQueryProvider.java:60)
... 34 more
Could anyone shed some light on how to make this feature work? I've been unable to find any mention of it, apart from Kris' blog entry.
I use APEX 4.2.2, APEX Listener 2.0.3 and Weblogic 10.3.6.
Thanks,
TobiasThanks Kris, somehow I missed the workspace field in the connection dialog. However, I'm still having problems.
My APEX Listener setup looks like this: I use the routing based on Request Path prefix to define separate databases under /apex: /apex/db_1, /apex/db_2 and so on. For each of these, I've configured a particular workspace which contains the RESTful Services (which means that the workspace isn't included in the URL when calling the services, unlike the default APEX Listener setup). When I include the workspace name (let's call it wspace1) in the connection dialog in sqldev, it automatically transforms the name from wspace1 to /wspace1/, which I assume means it tries to append the workspace to the URL (so the full URL to the RESTful services becomes /apex/db_1/wspace1). When connecting, I get 404 Not Found, because (again, I'm assuming here) it uses /apex/db_1/wspace1 rather than the correct URL /apex/db_1. On the other hand, if I remove the workspace name from the connection dialog, I get "access_denied" (without an HTTP status code).
Is there a way to get the sqldev functionality to work in my case, assuming my understanding of why it doesn't work is correct?
Thanks,
Tobias -
ORA-00600 error when inserting NULL in BLOB column
Hi,
I want to insert NULL value into a BLOB column w/o using empty_blob(), but I am getting the following error upon submission (both through program and upon directly executing it from TOAD/SQL*):
java.sql.SQLException: ORA-00600: internal error code, arguments: [kxtotolc_lobopt], [], [], [], [], [], [], []
The query is as follows:
insert into image_rendering r
(r.Version_date_time, r.id, r.Name, r.Type, r.Image_url, r.Image_filesize, r.Html, r.Original_Text, r.Redirect_url, r.Version, r.Rendering_size) values
(sysdate, '1963884', '468x60_1.gif', '0', '225/9-468x60_1.gif', '1471', null, null, null, '1', '30670908')
In the table r.Html, r.Original_Text are blob and clob columns respectively.
If I remove the column r.Html (blob) and its corresponding value the following query executes fine :
insert into image_rendering r
(r.Version_date_time, r.id, r.Name, r.Type, r.Image_url, r.Image_filesize, r.Original_Text, r.Redirect_url, r.Version, r.Rendering_size)
values
(sysdate, '1963884', '468x60_1.gif', '0', '225/9-468x60_1.gif', '1471', null, null, '1', '30670908')
I know I can also insert the query using the string empty_blob(), but I dont want to do it without using empty_blob() since it will involve changing my generic DB classes.
The strange thing is that I created another table involving blob and clob columns through TOAD.
In this table I can insert NULL values in the blob column without any error.
Is there anything that can be done to insert a NULL into my blob column? Am I missing anything?
Is there a setting in the database that will allow me to do this? cuz one table accepts null and the other doesn't. Its strange.
I am using Oracle8i Enterprise Edition Release 8.1.7.0.0
The query doen't execute through toad or sql* plus or through program (I am using thin oracle drivers: the usual classes12.zip file)
thanks in advance
- NileshFrom metalink
Oracle 9i Message~~~~~~~~~~~~~~~~~
Error: ORA-14400 (ORA-14400)
Text: inserted partition key does not map to any partition
Cause: An attempt was made to insert a record into, a Range or Composite
Range object, with a concatenated partition key that is beyond the
concatenated partition bound list of the last partition -OR- An
attempt was made to insert a record into a List object with a
partition key that did not match the literal values specified for
any of the partitions.
Action: Do not insert the key. Or, add a partition capable of accepting
the key, Or add values matching the key to a partition
specification
>
So check the date .
What is your insert statement.
Anand
Edited by: Anand... on Mar 4, 2009 5:42 PM -
How to set the HTTP headers in HTTP Binding to call RESTful service
I'm calling a RESTful service from the SOA Composite through a BPEL process. The RESTful service need few values to be set in the HTTP header to authorize the request. I tried several different options like setting the headers in the invoke service etc., but in vain. Apparently, the web service call fails for not having header information.
I have burnt several days on this. Can somebody help me to get through this please?
I'm using SOA composite 11.1.1.4 on WLS 10.3.4.
Thanks in advance.
The exception -
<Oct 19, 2011 1:01:59 PM CDT> <Error> <oracle.webservices.service> <OWS-04086> <javax.xml.rpc.soap.SOAPFaultException: oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://txganguat.txd
ps.state.tx.us/TxGang
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.generateSoapFaultException(WebServiceEntryBindingComponent.java:1053)
at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:890)
at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1187)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:581)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:192)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:459)
at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)any updates on this? Running into the same issue!
Thanks -
Inserting blank values and retrieving blank values
I really want to Insert blank values into Oracle database,and also want to retrieve blank values from table.
When I try to insert blank values ,Its inserting null values.
I don't want to insert null for blank.
Please provide me solution for this.
Thank youuser631179, logically if you have a descrition or other printable
character column where the value is blanks you do not have a value.
The data item is logically unknown or non-existent, hence NULL.
You can assign blanks (spaces) for NULL in the querying program
like SQLPlus does on display. The Pro*C and other language tools
provides null indicator bytes for this purpose.
UT1 > l
1 select fld1, fld2, rpad(nvl(fld4,' '),10,' '), length( rpad(nvl(fld4,' '),10,' '))
2* from marktest
UT1 > /
FLD1 FLD2 RPAD(NVL(F LENGTH(RPAD(NVL(FLD4,''),10,''))
one 1 10
TWO 2 USER51 10
4 USER51 10HTH -- Mark D Powell --
Message was edited by: Mark to try to keep the test from requiring scrolling
mpowel01 -
Range interval partitioning with null value
Hello,
I have question, how can I create table with partition and after that I will insert null value in the partition key like this kind of
range interval partitioning with null value.
I have Oracle 11g.
Thanks
Mohammeduser13777053 wrote:
Thank you, but my question is about range interval not for range?http://docs.oracle.com/cd/E11882_01/server.112/e25523/partition.htm#VLDBG00220
A MAXVALUE literal can be defined for the highest partition. MAXVALUE represents a virtual infinite value that sorts higher than any other possible value for the partitioning key, *including the NULL value.*
So since you're trying to partition by interval (which doesn't support a MAXVALUE clause) you're out of luck.
There's probably fancy hacks and what not you could try to implement, but i'm not about to recommend any of those here :)
Cheers, -
Procedure Array Binding a Null Value
Can you perform array binding in ODP.NET (to a procedure for example that inserts values) and assume that if there are null values in the array that the records inserted will have the corresponding null values in their records?
Here's a quick sample using pl/sql associative arrays to insert null values into a table (I think this is what you mean)...
SQL*Plus: Release 10.1.0.3.0 - Production on Fri Feb 18 09:38:55 2005
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect /
Connected.
SQL> create table null_array_insert
2 (
3 first_name varchar2(32) not null,
4 middle_name varchar2(32) null,
5 last_name varchar2(32) not null
6 );
Table created.
SQL> create or replace package null_array_test as
2 -- create a type for each column
3 type t_first_name is table of null_array_insert.first_name%type
4 index by binary_integer;
5
6 type t_middle_name is table of null_array_insert.middle_name%type
7 index by binary_integer;
8
9 type t_last_name is table of null_array_insert.last_name%type
10 index by binary_integer;
11
12 -- the procedures that will perform our work
13 procedure bulk_insert (p_first_name in t_first_name,
14 p_middle_name in t_middle_name,
15 p_last_name in t_last_name);
16 end null_array_test;
17 /
Package created.
SQL> create or replace package body null_array_test as
2 procedure bulk_insert (p_first_name in t_first_name,
3 p_middle_name in t_middle_name,
4 p_last_name in t_last_name) is
5 begin
6 forall i in p_first_name.first..p_first_name.last
7 insert into null_array_insert (first_name,
8 middle_name,
9 last_name)
10 values (p_first_name(i),
11 p_middle_name(i),
12 p_last_name(i));
13 end bulk_insert;
14 end null_array_test;
15 /
Package body created.
Here's the C# code:
using System;
using System.Data;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace Associative
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
string connStr = "User Id=/";
OracleConnection oraConn = new OracleConnection(connStr);
oraConn.Open();
// create the command object and set attributes
OracleCommand cmd = new OracleCommand("null_array_test.bulk_insert", oraConn);
cmd.CommandType = CommandType.StoredProcedure;
// create parameter objects for each parameter
OracleParameter p_first_name = new OracleParameter();
OracleParameter p_middle_name = new OracleParameter();
OracleParameter p_last_name = new OracleParameter();
// set parameter type for each parameter
p_first_name.OracleDbType = OracleDbType.Varchar2;
p_middle_name.OracleDbType = OracleDbType.Varchar2;
p_last_name.OracleDbType = OracleDbType.Varchar2;
// set the collection type for each parameter
p_first_name.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p_middle_name.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
p_last_name.CollectionType = OracleCollectionType.PLSQLAssociativeArray;
// set the parameter values
p_first_name.Value = new string[4]{"First 1", "First 2", "First 3", "First 4"};
p_middle_name.Value = new string[4]{"Middle 1", "", "Middle 3", ""};
p_last_name.Value = new string[4]{"Last 1", "Last 2", "Last 3", "Last 4"};
// set the size for each array
p_first_name.Size = 4;
p_middle_name.Size = 4;
p_last_name.Size = 4;
// set array bind size for the columns since they
// are a variable size type (varchar2)
p_first_name.ArrayBindSize = new int[4]{32, 32, 32, 32};
p_middle_name.ArrayBindSize = new int[4]{32, 32, 32, 32};
p_last_name.ArrayBindSize = new int[4]{32, 32, 32, 32};
// add the parameters to the command object
cmd.Parameters.Add(p_first_name);
cmd.Parameters.Add(p_middle_name);
cmd.Parameters.Add(p_last_name);
// execute the insert
cmd.ExecuteNonQuery();
p_last_name.Dispose();
p_middle_name.Dispose();
p_first_name.Dispose();
cmd.Dispose();
oraConn.Dispose();
And after running the code:
SQL> select * from null_array_insert;
FIRST_NAME MIDDLE_NAME LAST_NAME
First 1 Middle 1 Last 1
First 2 Last 2
First 3 Middle 3 Last 3
First 4 Last 4
4 rows selected.
SQL> select * from null_array_insert where middle_name is null;
FIRST_NAME MIDDLE_NAME LAST_NAME
First 2 Last 2
First 4 Last 4
2 rows selected.
SQL>Hope that helps,
- Mark -
Restful service unable to insert data using PL/SQL.
Hi all,
Am running: AL 2.01 standalone mode on OEL 4.8 in VM box A.
Oracle database 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in VM box B.
Able to performed oracle.example.hr Restful services with no problem.
Unable to insert data using AL 2.0.1 but works on AL 1.1.4.
which uses the following table (under schema: scott):
create table json_demo ( title varchar2(20), description varchar2(1000) );
grant all on json_demo to apex_public_user; and below procedure ( scott's schema ):
CREATE OR REPLACE
PROCEDURE post(
p_url IN VARCHAR2,
p_message IN VARCHAR2,
p_response OUT VARCHAR2)
IS
l_end_loop BOOLEAN := false;
l_http_req utl_http.req;
l_http_resp utl_http.resp;
l_buffer CLOB;
l_data VARCHAR2(20000);
C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
BEGIN
-- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
-- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
-- rather than just returning the text of the error page.
utl_http.set_response_error_check(false);
-- Begin the post request
l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1);
-- Set the HTTP request headers
utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT);
utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8');
utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message));
-- Write the data to the body of the HTTP request
utl_http.write_text(l_http_req, p_message);
-- Process the request and get the response.
l_http_resp := utl_http.get_response (l_http_req);
dbms_output.put_line ('status code: ' || l_http_resp.status_code);
dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase);
LOOP
EXIT
WHEN l_end_loop;
BEGIN
utl_http.read_line(l_http_resp, l_buffer, true);
IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN
l_data := l_data||l_buffer;
END IF;
EXCEPTION
WHEN utl_http.end_of_body THEN
l_end_loop := true;
END;
END LOOP;
dbms_output.put_line(l_data);
p_response:= l_data;
-- Look for client-side error and report it.
IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN
dbms_output.put_line('Check the URL.');
utl_http.end_response(l_http_resp);
-- Look for server-side error and report it.
elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN
dbms_output.put_line('Check if the Web site is up.');
utl_http.end_response(l_http_resp);
RETURN;
END IF;
utl_http.end_response (l_http_resp);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line (sqlerrm);
raise;
END; and executing in sqldeveloper 3.2.20.09 when connecting directly to box B as scott:
SET serveroutput ON
DECLARE
l_url VARCHAR2(200) :='http://MY_IP:8585/apex/demo';
l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
l_response VARCHAR2(30000);
BEGIN
post( p_url => l_url, p_message =>l_json, p_response => l_response);
END;which resulted in :
anonymous block completed
status code: 200
reason phrase: OK
with data inserted. Setup using 2.0.1
Workspace : wsdemo
RESTful Service Module: demo/
URI Template: test
Method: POST
Source Type: PL/SQLand executing in sqldeveloper 3.2.20.09 when connecting directly to box B as scott:
SET serveroutput ON
DECLARE
l_url VARCHAR2(200) :='http://MY_IP:8585//apex/wsdemo/demo/test';
l_json VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
l_response VARCHAR2(30000);
BEGIN
post( p_url => l_url, p_message =>l_json, p_response => l_response);
END;which resulted in :
status code: 500
reason phrase: Internal Server Error
Listener's log:
Request Path passes syntax validation
Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH]
Applied database connection info
Attempting to process with PL/SQL Gateway
Not processed as PL/SQL Gateway request
Attempting to process as a RESTful Service
demo/test matches: demo/test score: 0
Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]
Determining if request can be dispatched as a Tenanted RESTful Service
Request path has one path segment, continuing processing
Tenant Principal already established, cannot dispatch
Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test
demo/test is a public resource
Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator
Performing JDBC request as: SCOTT
Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
INFO: Error occurred during execution of: [CALL, begin
insert into scott.json_demo values(/*in:title*/?,/*in:description*/?);
end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription]
Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
INFO: ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "" was ignored.
ORA-06550: line 2, column 74:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-id
java.sql.SQLException: ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "" was ignored.
ORA-06550: line 2, column 74:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-id
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242)
at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101)
at $Proxy46.execute(Unknown Source)
at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44)
at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176)
at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309)
at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88)
at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412)
at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
Error during evaluation of resource template: ORA-06550: line 1, column 6:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "" was ignored.
ORA-06550: line 2, column 74:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-idPlease advise.
Regards
ZackZack.L wrote:
Hi Andy,
Sorry, forgot to post the Source that's use by both AL1.1.4 and AL2.0.1.
Source
begin
insert into scott.json_demo values(:title,:description);
end;
it's failing during the insert?
Yes, it failed during insert using AL2.0.1.
So the above statement produces the following error message:
The symbol "" was ignored.
ORA-06550: line 2, column 74:
PLS-00103: Encountered the symbol "" when expecting one of the following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted delimited-idThis suggests to me that an unprintable character (notice how there is nothing between the double quotes - "") has worked its way into your PL/SQL Handler. Note how the error is reported to be a column 74 on line 2, yet line 2 of the above block should only have 58 characters, so at a pure guess somehow there's extra whitespace on line 2, that is confusing the PL/SQL compiler, I suggest re-typing the PL/SQL handler manually and seeing if that cures the problem. -
There was a problem inserting the Service Request: null
I am trying out service desk. When I try to create a request I get:
There was a problem inserting the Service Request: null
I can't see what the issues is. All fields marked in red are filled.
TomThomas,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Using Native Oracle XML DB Web Services - REST POST web service possible?
My goal is to expose some pl/sql procedures as a REST web services.
The Database is 11gR2
The request method needs to be a POST (not GET as a request will perform insert/updates ) - the request body will contain a xml structure
Have setup XMLDB Database-native Web Services as per
11g documentation "Using Native Oracle XML DB Web Services"
It seems this setup support only SOAP requests!?
RESTful webservice with GET is (sort of) supported using
Embedded PL/SQL Gateway as describer here:
http://ora-00001.blogspot.com/2009/07/creating-rest-web-service-with-plsql.html
Although no support for POST
Obviously the post is from 2009 so just want to know if anything changed since.
Has anyone found a way to expose pl/sql procedures using XML DB or other approach as a REST POST web services?
(As the relative low number of calls/hour and also the aim to have the least amount of moving parts therefor looking for a DB centric solution)
Thanks
PeteI think the post referred to was more an exercise of what could be achieved. The quickest way, nowadays, to get this done with not too much hassle is via APEX
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35128/restful_svc.htm
M. -
Calling Apex restful service in android
Hi frnds i have created apex restful service, now i want to access it in android...
So any one can help me how to call restful services using ksoap2.jarI got solution using HttpClient, but i can acces only "GET" method of restful services
But how to access Restfukl service using "POST" method
here is my code that i use to access rest service using "GET"
String url = "http://198.16.11.12:2000/apex/jigar/mr/employees/10";
HttpClient httpclient = new DefaultHttpClient();
HttpGet hg = new HttpGet(url);
HttpResponse response = httpclient.execute(hg);
str = inputStreamToString(response.getEntity().getContent());
Now insted of GET when i use POST to access service it returns null, what can be my URl in case of post?
Maybe you are looking for
-
I have a LG optimus mobile. Can I find a download for firefox mobile
My phone cannot find the searched for item when I choose download for android on fire fox for mobile page.
-
Privately Owned and Cascade Delete in DB
HI, What is the relationship between setting privately owned in Toplink vs creating a cascade delete in Oracle DB? If I've the cascade delete in DB then what is the advantage of setting the privately owned flag in toplink? Thanks
-
Best Export Settings For Fast/Low-Res QuickTime Movies
I couldn't find a discussion room for FCP 7 so I figured if anybody is proficiant with FCP X, they could help me. Hello, I really could use some help with my export settings using FinalCut Pro 7. Most of my shows are no more than 20 minutes and I pr
-
Compilation with java1.4 vs java1.3
I have an application which running and compiling well with java1.3. We have installed the version java1.4 and the application isn't compiling now!!! in my directory src/ I have 2 files: 1. toto.java [the main] (include "import titi;" and "import Pac
-
Aperture does not import Aperture library
I am trying to import several Aperture Libraries created in Aperture on one computer (MacBook Pro) into an existing "Main" Library on a second computer (iMac). After being created on the MacBook Pro, the Libraries are Finder-copied to the iMac's desk