External c program call from plsql

hi,
my db version is:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
entry in my listener.ora file
===========================
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(PROGRAM = extproc)
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
ADR_BASE_LISTENER = /u01/app/oracle
entry in tnsnames.ora file:
===============================
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
(CONNECT_DATA =
(SERVICE_NAME = orcl.example.com)
listener is running perfectly.
created c program,
compile the program by gcc -c <filename>
ld -shared -o <filename.so> <filename.o>
cp <filename.so> $ORACLE_HOME/bin
create library & function from db. when I am invoking this function it is throwing error message:
ORA-28546: connection initialization failed, probable Net8 admin error
tnx in advance

Here's a working example (11.2.0.3 using Oracle Linux 5.9):
SQL> !cat test.c
#include <ctype.h>
int upcase(char *istr, char *ostr){
        int i = 0;
        while(istr){
ostr[i] = toupper(istr[i]);
i++;
return 0;
SQL>
SQL> --// compile
SQL> ! gcc -fPIC -c test.c
SQL> --// result
SQL> ! ls -l test*
-rw-r--r-- 1 oracle oinstall 140 Jan 26 18:40 test.c
-rw-r--r-- 1 oracle oinstall 1480 Jan 26 18:48 test.o
SQL>
SQL> --// create shared object
SQL> ! ld -shared -o libtest.so test.o
SQL>
SQL> ! file libtest.so
libtest.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
SQL>
SQL> --// wrapper library and function
SQL> create or replace library libtest as '/home/oracle/sql/libtest.so';
2 /
Library created.
SQL>
SQL> create or replace function upcase( instr in varchar2, outstr out varchar2 ) return binary_integer is
2 external
3 library libtest
4 name "upcase"
5 language C
6 calling standard C
7 parameters(
8 instr string,
9 outstr string
10 )
11 ;
12 /
Function created.
SQL>
SQL> declare
2 str1 varchar2(20);
3 str2 varchar2(20);
4 rc binary_integer;
5 begin
6 str1 := 'hello world';
7 rc := upcase( str1, str2 );
8 dbms_output.put_line( 'rc='||rc||' instr='||str1||' outstr='||str2 );
9 end;
10 /
rc=0 instr=hello world outstr=HELLO WORLD
PL/SQL procedure successfully completed.
SQL>
The following 2 configuration settings are needed - in the +listener.ora+ (server) and the +tnsnames.ora+ (client).
For the Listener - add the ADDRESS line for EXTPROC to the LISTENER config, and add the EXTPROC SID entry to the SID list.LISTENER=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=ipc)(KEY=extproc))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME= <insert oracle home here> )
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ANY")
The client needs to have a TNS alias that defines how to contact EXTPROC. This is done in +tnsnames.ora+:EXTPROC_CONNECTION_DATA =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=ipc)(KEY=extproc))
(CONNECT_DATA=(SID=plsextproc))
Are you using RAC? if so, I do not think IPC connections are allowed by default between an Oracle db  server process and the Grid listener process. In which case, you can create an IPC only listener in the Oracle o/s user.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Java Program Call from PLSQL

    First I have created two Java files
    FileName1-TestPLSQL.java
    package TestJava;
    public class TestPLSQL {
      * @param args
      public static void main(String[] args) {
      // TODO Auto-generated method stub
      test2.world();
    FilaName2-test2.java
    package TestJava;
    public class test2 {
       public static void world()
        System.out.println("Hello world");
    Then i have loaded the class in Oracle using Loadjava-
    loadjava -user TEST/TEST -v TestPLSQL.java
    loadjava -user TEST/TEST -v test2.java
    It successfully loaded without any error.
    Then i have created one function-
    create or replace
    FUNCTION F_JAVA_PGM
    /*Specify the return type as per the method in the java class*/
    RETURN VARCHAR2
    AS
    /*Specify the external programs base language*/
    LANGUAGE JAVA NAME 'TestJava.TestPLSQL(java.lang.String)
    return java.lang.String';
    While executing the below query -
    SELECT F_JAVA_PGM FROM DUAL;
    Its giving error-
    ORA-29540: class TestJava does not exist
    Can anybody help me on this?

    INRi wrote:
    While executing the below query -
    SELECT F_JAVA_PGM FROM DUAL;
    Its giving error-
    ORA-29540: class TestJava does not exist
    Can anybody help me on this?
    The call specification is incorrect :
    You must publish a method, not a class.
    None of the methods return a value, why are you creating a function ?
    So, in short, for the specific test case you've submitted here, use a procedure that interfaces the TestJava.TestPLSQL.main method with a String array parameter :
    create or replace procedure P_JAVA_PGM
    AS LANGUAGE JAVA
    NAME 'TestJava.TestPLSQL.main(java.lang.String[])';
    Tested OK after loading the sources directly via CREATE JAVA SOURCE :
    create or replace and compile java source named file2 as
    package TestJava;
    public class test2 {
       public static void world()
        System.out.println("Hello world");
    create or replace and compile java source named file1 as
    package TestJava;
    public class TestPLSQL {
      * @param args
      public static void main(String[] args) {
      // TODO Auto-generated method stub
      test2.world();
    create or replace procedure P_JAVA_PGM
    AS LANGUAGE JAVA
    NAME 'TestJava.TestPLSQL.main(java.lang.String[])';
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exec p_java_pgm
    PL/SQL procedure successfully completed.
    Result can be seen in a trace file :
    *** 2013-08-11 12:44:51.513
    Hello world

  • Journal import fails when called from PLSQL

    Hi,
    When journal import is called from plsql code it is failing with error in 'gllacc() Function returning without value and no data found'.
    Same transaction is run succesfully from front end.
    I checked both gl_interface and gl_interface_control table but couldnt find the issue.
    Any info on this would be very helpful.
    Thanks
    Sandhya

    FOR l_rec IN (SELECT ledger_id,group_id from apps.gl_interface
    WHERE status='NEW'
    AND user_je_source_name='GIS_DATA_CONVERSION'
    GROUP BY ledger_id,group_id
    ORDER BY group_id
    LOOP
    apps.gl_journal_import_pkg.populate_interface_control (user_je_source_name => 'GIS_DATA_CONVERSION',
    GROUP_ID => l_rec.group_id,
    set_of_books_id => l_rec.ledger_id,
    interface_run_id =>vl_interface_id,
    table_name => 'GL_INTERFACE',
    processed_data_action=>'D'
    COMMIT;
    vl_request_id := apps.fnd_request.submit_request (application => 'SQLGL', -- application short name
    program => 'GLLEZLSRS', -- program short name
    description => NULL, -- program name
    start_time => NULL, -- start date
    sub_request => FALSE, -- sub-request
    argument1 => 2065, --Data access set id
    argument2 => 'GIS_DATA_CONVERSION', --Source
    argument3 => l_rec.ledger_id, -- set of books id
    argument4 => l_rec.group_id,
    argument5 => 'N', -- error to suspense flag
    argument6 => NULL, -- create summary flag
    argument7 => 'N' -- import desc flex flag
    COMMIT;
    IF ( vl_request_id = 0 ) THEN
    xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','E001: Journal Import Submission Failed. ' || SQLERRM);
    retcode := 2;
    EXIT;
    ELSE
    xxgis.gis_conv_util_pkg.debug_print_p(1,'FND_LOG','P001: Submitted Journal Import Program for group id: ' || l_rec.group_id ||
    'and ledger :'||l_rec.ledger_id|| ', Request ID: ' || vl_request_id);
    END IF;
    END LOOP;

  • External Web Service call from Sandbox Solution in SharePoint 2010

    Can anyone from this forum can tell me how to call an external web service from Sandbox solution?
    It would of great help as got stuck on it for a long time.
    Note:- Cannot use Silverlight and JQuery to call web service from client side.Cannot use full trust proxy.

    Hi Dibyendu,
    Sorry for delay but fact that we can not call webservice in sand box solution(It's does not support).
    The reason behind of this sand box solution support only full trust code.
    One or more assemblies referenced by the XmlSerializer cannot be called 
      from partially trusted code.
    When you create a reference to a Web service, Microsoft Visual Studio®.NET creates and places one or more objects in your assembly to store the argument data passed to the method(s) in the Web service. These objects are serialized using the XmlSerializer class
    when you invoke one or more of the methods in the Web service. By default, if your assembly is strongly named and resides in the BIN directory, callers with partial trust cannot access objects within that assembly. When you make the call to the Web service
    method, the XmlSerializerdetects that there are partially trusted callers on the callstack (i.e. your assembly) and prevents the serialization from taking place even though the object resides in the same assembly.
    Er.vinay

  • External Web services call from within Oracle Pl/SQL

    Hi there,
    can anyone guide me whether there is any option to create web services call from Oracle Stored procedure ? ( External web services are available using SOAP)
    Thanks in advance.
    Regards,
    Jatin

    http://bit.ly/Uiaies

  • Api to call from plsql as clicking button "Configurator" from OM screen

    Hi,
    I need to call an API from Plsql Procedure which performs hte same action as clicking the configurator button in sales order screen.
    Can you please help me out in getting the api name and syntax.
    Thanks,
    Vijaya.

    If you are getting 404 page not found error, then there may a problem in deployment of servlet.
    Are you able to launch your servlet URL directly when requesting from the browser. Type your servlet URL in browser and check the response.
    If you want to have control when configurator finishes its action, you should specify the your servlet url in the return_url parameter in the initialize message used to launch configurator.
    HTH

  • Facing problem in JavaStoredProc being called from plsql pass JPublisher

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

  • Html page calling from plsql

    i am using following version
    ===================
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    "CORE 10.2.0.4.0 Production"
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    <Location /pls>
    SetHandler pls_handler
    Order deny,allow
    Allow from all
    AllowOverride None
    PlsqlDatabaseUsername scott
    PlsqlDatabasePassword tiger
    PlsqlDatabaseConnectString 192.168.5.49:1521:x.y.com SIDFormat
    PlsqlAuthenticationMode Basic
    -- can i write sql statement here like select id from tab , if id is null then call html_page else call html_page1 PlsqlDefaultPage html_page
    </Location>

    anutosh wrote:
    -- can i write sql statement here like select id from tab , if id is null then call html_page else call html_page1 PlsqlDefaultPage html_pageNo. You cannot write a SQL statement there.
    Yes, you can make it conditional. The PlsqlDefaultPage has to refer to a procedure (or a procedure in a package). That procedure renders the HTML for the default HTML page for that URL location.
    This PL/SQL procedure can do conditional processing. E..g.
    create or replace procedure DefaultPage is
    begin
      ..using sql to determine state..
      --// page result determines what procedure to call to render the page
      case pageResult
        when pageResult = 'abc' then DisplayPageLogon;
        when pageResult = '123' then DisplayStatsPage;
      else
        DisplayDefaultPage;
      end case;
    end;If the page to display is external - i.e. a page that is created/serviced by another location, then you can use the same approach as above. But instead call owa_util.redirect_url() to redirect the browser to that page (e.g. to http://google.com for example).

  • External web service call from WebDynpro for ABAP

    Hi...
    I'm inspecting Web Dynpro For ABAP, and trying to call external web services.
    I'm created Web Service, CAF-AS.
    I create the proxy class(se80) and Logical Port(lpconfig), and I take the web service in componentcontoroller of my web dynpro using Web Dynpro Wiserd.
    Though I expected the context to be registered by the same type as the service interface,
    they are created strange structure as follow.
    <Context>
    CONTEXT
    ---FIND_BY_PARAMS
    IMPORTING
    INPUT
    CONTROLLER
    ORDER_TEXT_BY_PARAMS_REQ
    ---EXPORTING
    OUTPUT
    CONTROLLER
    ORDER_TEXT_BY_PARAMS_RES
    The CONTOROLLER is defined by the type PRXCTRLTAB, and
    ORDER_TEXT_BY_PARAMS_* has deep structure, as follow.
    ORDER_TEXT_BY_PARAMS_REQ
    ---CONTROLLER    type:PRXCTRLTAB(structure)
    ---QUERY_TABLE  type:ZTABLE_NAME
    ---QUERY_FIELD   type:ZFIELD_NAME
    ---QUERY_OPTIONS  type:ZORDER_TEXT_QUERY_OPTION_TAB
    I want to use only service paralmeters,  that is named query_*.
    I tried to excute the webService but dump  "OBJECTS_OBJREF_NOT_ASSIGNED" occurs.
    I think I must set any value to CONTOROLLER,?but I have no idea What & How I should set value.
    please let me know, what is the CONTOROLLER, and how to call external web services.
    Regards,
    Naoya Tsugo,

    I solved problem by myself.
    There was carelessmiss in activation of LP.
    Now, I'm closing the topic.
    Thanks and Regards.
    Naoya Tsugo,

  • How to pass variables to a program called from long text of an error msg ?

    Hi,
    The aim is the following: in the long text of an error message, there should be a link; this link must call a program or a transaction and pass to this program or transaction the four variables of the error message. Is it possible to insert such a link with parameters in the long text of the error message ? If yes, what is the syntax for this ?
    (I searched in the forum and found the way to insert a link to a transaction, but I found nothing about parameters).

    Thank you for the answer.
    Unfortunately, this solution is not applicable in my case. I'm using the application log and the scenario is the following:
    - the user displays the application log in transaction SLG1
    - he sees a lot of error and succes messages
    - by dubble-clicking on these messages, he displays the long text of the messages
    - I want a link in these long texts to a transaction using the variables of the messages. I tried inserting a link to a transaction, and the transaction is well called, but with a breakpoint I checked variables SY-MSGV1 to MSGV4 and they are empty.

  • External Rest API call from SharePoint 2013 On Premises

    Hi All,
    May my questions is silly but I am totally tired by trying different things.
    I need to call a third party rest api from my SharePoint Designer page using &Ajax call.First time when i tried it gave me access denied then added this line
    jQuery.support.cors =true;
    Again error changed to "No Transport" last time i had the same situation i saw some sites where people mentioned some power shell script to enable something at web app level but didn't remember if possible can some help me please i already wasted
    my half long weekend :(
    Note :- This is SharePoint On Premises
    Thanks in Advance :)

    Hi All,
    May my questions is silly but I am totally tired by trying different things.
    I need to call a third party rest api from my SharePoint Designer page using &Ajax call.First time when i tried it gave me access denied then added this line
    jQuery.support.cors =true;
    Again error changed to "No Transport" last time i had the same situation i saw some sites where people mentioned some power shell script to enable something at web app level but didn't remember if possible can some help me please i already wasted
    my half long weekend :(
    Note :- This is SharePoint On Premises
    Thanks in Advance :)

  • Calling perl script from PLSQL

    Hi All,
    I have created Java stored procedure and oracle function to execute the os commnad, this works fine for calling batch scripts but when i used same function to call perl script,
    like how we call in batch script
    perl <script name> the sql gets hanged.
    Is it possible to call perl like this?
    or is their any other way to call from plsql
    Thanks Chandra

    Are you able to run that perl script at DOS command line?
    Did you call the perl script directly from the java proc or you put the perl command line in a DOS .BAT scirpt and called that from the java proc?

  • Is it possible to call a java function from plsql?

    I have a plsql script which loads data in to a table. One of the fields is a notes field. I would like to use advance offerings of java to manipulate the data before inserting. Is there away I can pass the data to a java function and have it return the manipulated data?
    Thanks
    Aaron

    You can use java stored procedure to call java function from plsql.
    1. Create a java class with a static function(which will be called from plsql).
    2. Compile and load the class into database using LOADJAVA command.
    3. Create a wrapper stored procedure or function in plsql which calls the above java function.
    4. Access this plsql procedure like normal database procedure. This will invoke underlying java function in which you can do all the processing and return result.
    Refer this url for help on implementing above steps :
    http://otn.oracle.com/tech/java/jsp/pdf/developing_o8i_apps_with_plsql_and_java_twp.pdf
    Samples on java stored procedure :
    http://otn.oracle.com/sample_code/tech/java/jsp/oracle9ijsp.html
    Chandar

  • Calling java class from PLSQL  that returns date/time a file was saved

    Does anybody know, is there a java class I can compile into Oracle DB, and call from PLSQL that returns me the date/time a file was saved.
    As far as I'm aware this cannot be achieved using UTL_FILE.
    Please advise
    Thanks
    Warren

    I found this thread from before that might be helpful
    how to connect to UNIX OS from oracle stored procedure

  • JTOpen: Program Call Not Working

    I can't seem to get the program sample from the following site working from my project within Creator.
    http://www.itjungle.com/mpo/mpo011702-story04.html
    The code works as a stand alone program called from command line. However when I add the same code to my java class it will not work. The code is being accessed from the Application Server. This is the exception that is returned;
    java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)

    The permission needs to be given to the code that is trying to create a class loader. Permissions are set in the server.policy file for the appserver.
    - Edit <creatordir>//SunAppServer8>//domains/creator/config/server.policy file.
    - Add the line "permission java.lang.RuntimePermission     "createClassLoader";" before the line containing " permission java.lang.RuntimePermission "loadLibrary.*";".
    The above will give the permission to all code; you can restrict the premission by granting permission to only some apps by using 'grant codebase' sections instead of the global grant section...

Maybe you are looking for

  • Creating a link to a pdf and then being able to come back to first pdf

    hi there! I want to be able to create a link in my InDesign document to the glossary (another InDesign document). Of course I am exporting as PDFs and then the user would be able to close the glossary and come back to the first document in the place

  • BPM Inbox not displayed, gives Javascript error

    Hi, I am trying to open the BPM Inbox via https://<host>:<port>/bpminbox, but it throws a Javascript error: Uncaught TypeError: Cannot read property 'dataServices' of undefined in ODataMetadata.js:13 If I remove the roles UnifiedInboxUserRole and com

  • How to tell which version of 1130AP

    The Aironet 1130AG Series is available in: A lightweight version An autonomous version that can be field-upgraded to lightweight operation A single-band 802.11g version for use in regulatory domains that do not allow 802.11a/5 GHz operation Is this f

  • How do I return the page width and height as a text variable?

    Hi I'm trying to create a media box for use in job to return information in the slug area. I have a script that will return the username of the computer as a text variable but I would also like to return the height and width in mm as a text variable

  • Send to Broadcaster button in 0Analysis_pattern

    Hi Experts, We are in process of migrating our system from 3.5 to Netweaver 2004s. When we try executing the 'Send' button for broadcaster after running a migrated query on portal, it doesn't open the broadcaster. Instead, it opens a blank 3.5 web te