Not able to pass input to XMLType datatype.

hi,
CREATE TABLE xml_data_test(xml_data XMLTYPE);
Create Or replace procedure XML_SP (P_XML XMLType)
as
begin
Insert into xml_data_test Values ( (P_XML) );
end;
exec XML_SP ('<MAIN><INFO> <COLUMN_NAME>COL1</COLUMN_NAME><DATA_TYPE>CHAR(1)</DATA_TYPE></INFO></MAIN>');
Error report:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'XML_SP'
How to insert the XML string to a xmltype table.

If we want to pass from java or.ODP or OCCI we need to call as sp_name (xmltype(''));?
Not necessarily.
I'm not sure about OCCI but Java and ODP.Net support XMLType object client-side, so you can build an instance programmatically and directly pass it to the procedure.
Check the corresponding docs for more details :
OCCI : http://docs.oracle.com/cd/E11882_01/appdev.112/e10764/toc.htm
ODP : http://docs.oracle.com/cd/E11882_01/win.112/e23174/toc.htm
Java : http://docs.oracle.com/cd/E11882_01/appdev.112/e10769/toc.htm

Similar Messages

  • Not able to pass portal login page with valid credentials using WebDispatch

    Hi,
    We are implementing SAP BillerDirect Portal. To make BillerDirect Portal available over the internet, we Configured SAP WebDispatcher with SSL termination.  We followed the steps mentioned in SAP Help Documentaion for SAP WebDispatcher with SSL termination.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/76/6d4fa247d0d647b5bd40745400d873/frameset.htm
    We created certificate  and send it to CA (TrustCenter CA). We received the CA response and we imported the certificate.
    AS mentioned in the help document, we configured the SAP Web Dispatcher profile to support SSL termination
    We tried to access our BillerDirect Portal over the internet using below link
    https://company.com/bd
    We are getting login page, once we enter correct user ID and Password, portal is not loading (not going to next page) portal remains on same login page.
    If we enter invalid credentials portal login page is giving u201CUser Authentication Failedu201D error.
    If we try to access any portal login pages which brings a pop-up for login, login gets succeeded and we are able to see next pages
    Examples
    1)     https://company.com/bd/admin/xcm/init.do
    2)     https://company.com/monitoring/SystemInfo
    All pages which bring up portal login page without pop-up, not able to pass through portal login screen.
    We Tried the ProxyMapping option on Dispatcher using Visual admin. This option also didnu2019t work for us.
    Here is the WebDispatcher Profile
    SAPSYSTEMNAME = xxx
    SAPGLOBALHOST = xxxxx
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = hostnameofportalserver with FQDN
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTPS,PORT=443
    icm/server_port_1 = PROT=HTTP,PORT=80
    icm/HTTPS/verify_client = 0
    SAP Web Dispatcher Web Administration
    icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=D:\usr\sap\xxx\W00\data\icmanroot\admin,AUTHFILE= D:\usr\sap\xxx\SYS\global\security\data\icmauth.txt
    Parameters for the SAP Cryptographic Library
    ssl/ssl_lib = D:\usr\sap\xxxW00\sapcrypto.dll
    ssl/server_pse = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/name = D:\usr\sap\xxx\W00\sec\SAPSSLS.pse
    ssf/ssfapi_lib =  D:\usr\sap\xxx\W00\sapcrypto.dll
    sec/libsapsecu =  D:\usr\sap\xxx\W00\sapcrypto.dll
    wdisp/ssl_cred = D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    Parameters for Using SSL to the backend server
    wdisp/ssl_encrypt = 1
    wdisp/ssl_auth = 1
    wdisp/ssl_cred = D:\usr\sap\xxxW00\sec\SAPSSLC.pse
    wdisp/ssl_certhost = hostnameofportalserver with FQDN
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTP/j2ee_0 = PREFIX=/, HOST =hostnameofportalserver with FQDN PORT=50000,SPORT=50001, SSLENC=1,TYPE=1, CRED =D:\usr\sap\xxx\W00\sec\SAPSSLC.pse
    We also tried below options in WebDispatcher profile but we are getting same problem.
    wdisp/add_client_protocol_header = true
    wdisp/add_clientprotocol_header = 1
    wdisp/ssl_ignore_host_mismatch = true
    #ICM Parameters
    icm/HTTPS/forward_ccert_as_header = true
    icm/HTTPS/trust_client_with_issuer = *
    icm/HTTPS/trust_client_with_subject = *
    we also tried
    wdisp/ssl_encrypt = 0
    wdisp/ssl_auth = 0
    we also tried
    wdisp/ssl_encrypt = 2
    wdisp/ssl_auth = 2
    We are not able to resolve issue. Please help us on resolving this issue.
    Thanks
    Praveen

    ' in Host Names is not allowed. Our hosname has '_'.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm

  • Not able to pass table name as parameter in function

    Hi,
    i am not able to pass tablename as parameter. I am using below function.
    function count_test(tabname varchar2) return number is
    l_count number;
    begin
    select count(*) INTO l_count FROM tabname;
    RETURN l_count;
    END;

    You can't do it with static SQL.
    The only way is to do it with dynamic SQL:
    EXECUTE IMMEDIATE 'select count(*) FROM '|| tabname INTO l_count;
    Regards.
    Al
    Edited by: Alberto Faenza on May 10, 2012 1:44 AM
    Mispelling

  • Not able to Pass Reference Variables to Deferred task

    Hi All,
    I am not able to Pass the reference variables to Deferred task, With the following code, I am getting null values (for the passed refs) in Deferred Task.
    Code is as:
    <Action id='1' name='Set Deferred Task Action' application='com.waveset.session.WorkflowServices'>
    <Argument name='op' value='addDeferredTask'/>
    <Argument name='type' value='User'/>
    <Argument name='name' value='$(empId)'/>
    <Argument name='authorized' value='true'/>
    <Argument name='task' value='WF_User Deferred Task'/> // Task defination
    <Argument name='date'>
    <Date>2008-11-19T14:50:18.840Z</Date>
    </Argument>
    <Argument name='taskDefinition'>
    <block trace='true'>
    <defvar name='usrObject'> // This is the variable I am passing to 'WF_User Deferred Task'
    <new class='com.waveset.object.GenericObject'/>
    </defvar>
    <invoke name='setAttributes'>
    <ref>usrObject</ref>
    <map>
    <s>accId</s>
    <ref>empId</ref>
    <s>updStatus</s>
    <ref>newStatus</ref>
    </map>
    </invoke>
    </block>
    </Argument>
    </Action>
    <Transition to='End'/>
    Please suggest me.
    Thanks,
    Ravi.

    yeah, you don't have your usrObject available in the deffered task however all variables that you put inside the usrObject are avialble. Like <ref>accId<ref> and <ref>updStatus</ref>. If you still need them organized hierarchically, you might try to add one more level to the object before passing it to addDefferedTask
                <block>
                  <defvar name='objWrapper'>
                    <new class='com.waveset.object.GenericObject'/>
                  </defvar>
                  <defvar name='usrObject'>
                    <new class='com.waveset.object.GenericObject'/>
                  </defvar>
                  <invoke name='setAttributes'>
                    <ref>usrObject</ref>
                    <map>
                      <s>accId</s>
                      <s>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</s>
                      <s>updStatus</s>
                      <s>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</s>
                    </map>
                  </invoke>
                  <invoke name='setAttributes'>
                    <ref>objWrapper</ref>
                    <map>
                      <s>usrObject</s>
                      <ref>usrObject</ref>
                    </map>
                  </invoke>
                  <ref>objWrapper</ref>
                </block>I hope you ve got the idea. Cheerz.

  • We are not able to pass the presentation variables(date & Date1) to the det

    Hi,
    We have followed the below link to use the date between prompt and passed the presentation variables in the filter condition of the report criteria.
    http://obiee101.blogspot.com/2009/03/obiee-between-dates-prompt.html
    But we are not able to pass the presentation variables(date & Date1) to the detail report.
    Any suggestions are highly appreciated.
    Thanks in Advance
    Siva.

    Yes,I think it wont pass the parameters from one parent report to child report.one thing you can do is put the detailed report on a page in the same dashboard as that of prompt.Put the same between condition on that report also.Give navigation link to this page instead of report.You can hide this page as well so that it will be available only on navigation.
    i have not tried it.Give it a try.
    Regards,
    Sandeep

  • Not able to Pass header info to Microsoft MapPoint WebService using WLS10

    We are passing some Header info to the MapPoint Web Service from our client Web Service which is hosted in Weblogic 10, however we are not sure if the info is getting passed.
    The actual soap header which we are trying to postis as below:
    <env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
    <m:CustomerInfoFindHeader xmlns:m="http://s.mappoint.net/mappoint-30/">
    <m:CustomLogEntry>2</m:CustomLogEntry>
    </m:CustomerInfoFindHeader>
    </env:Header>
    We are using the below code snippet for setting the header:
    Document doc = null;
    try
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setNamespaceAware(true);
    doc = factory.newDocumentBuilder().newDocument();
    catch(ParserConfigurationException pce)
    System.out.println("ERROR -> " + pce.getMessage());
    Element header = doc.createElementNS("http://schemas.xmlsoap.org/soap/envelope/", "SOAP-ENV:Header");
    Element headerContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/","m:CustomerInfoFindHeader");
    Element headerChildContent = doc.createElementNS("http://s.mappoint.net/mappoint-30/", "m:CustomLogEntry");
    headerChildContent.appendChild(doc.createTextNode("2"));
    headerContent.appendChild(headerChildContent);
    header.appendChild(headerContent);
    Attr nsAttr = doc.createAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:m");
    nsAttr.setValue("http://s.mappoint.net/mappoint-30/");
    headerContent.setAttributeNodeNS(nsAttr);
    findServiceControl.setOutputHeaders(new Element[] {header});
    Here findServiceControl is the Service Control object.
    Even if the code is not throwing any error/exception I am not able to see the header portion which invoking the Mappoint Web Service (using the weblogic test client for testing the webservice).
    Is there any other methodology for setting the header.
    Regards
    Sanjeev Singh

    If you're not sure the header is being created properly, you should switch to using a javax.xml.transform.stream.StreamSource and javax.xml.transform.dom.DOMResult. For instance:
    import java.io.ByteArrayInputStream;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.dom.DOMResult;
    import javax.xml.transform.stream.StreamSource;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    StringBuffer xml = new StringBuffer()
    .append("<env:Header ")
    .append("xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\">")
    .append("<m:CustomerInfoFindHeader xmlns:m=\"http://s.mappoint.net/mappoint-30/\">")
    .append("<m:CustomLogEntry>2</m:CustomLogEntry>")
    .append("</m:CustomerInfoFindHeader>")
    .append("</env:Header>);
    TransformerFactory xformFactory = TransformerFactory.newInstance();
    Transformer transformer = xformFactory.newTransformer();
    ByteArrayInputStream bais = new ByteArrayInputStream(xml.toString().getBytes());
    DOMResult result = new DOMResult();
    transformer.transform(new StreamSource(bais), result);
    Document document = (Document)result.getNode();
    findServiceControl.setOutputHeaders(new Element[] {document.getDocumentElement()});
    If you want to see the SOAP request being sent to the Mappoint Web Service, add the following to the JAVA_OPTIONS environment variable (in the startWebLogic.cmd file), and bounce it:
    -Dweblogic.wsee.verbose=*
    -Dweblogic.log.RedirectStdoutToServerLogEnabled=true
    This will write the SOAP request (and SOAP response) to the server log of the WebLogic Server instance, which the service control is running in.

  • I have made a prg in your fuzzylogic toloolkit but not able to give input and getting output through DAQ.

    I AM WORKING WITH LABVIEW 6.1.MY PROJECT IS "WATER LEVEL CONTROL"USING "PID"AND FUZZY CONTROLLER. MY PID CONTROLLER IS WORKIN.BUT FOR THE FUUZY CONTROLLER I AM USING YOUR "FUZZY LOGIC TOOLKIT"I HAVE MADE A PROGRAM IN IT. BUT I AM NOT ABLE TO GIVE MY INPUT THROGH DATA ACQUISTION.AND ALSO NOT ABLE TO GET THE OUTPUT(CONTROL SIGNAL).
    WHERE I CAN SEE THE ANSWER.

    Are you using NI's PID control VIs for your PID controller? Are you able to acquire any signals through your data acquisition? What I would suggest is that you try to run one of the shipping examples that comes with the Control Toolkit (perhaps the one titled, "Tank - fuzzy DAQ.vi"). Hope that helps.

  • Not able to pass user credentials in a full trust proxy to call web service in Sandbox solution

    Hello,
    I am trying to build a sandbox webpart that calls a windows authenticated webservice to fetch some data. I tried to pass the DefaultCredentials to the webservice proxy but The credentials passed are that of the
    usercodeserviceproxy process ( in my case it is network service) . I  see that the user account trying to authenticate is Domain\machinname$ which is the network service. 
    My question is - is there a way to pass the logged in user credentials to the web service from sandbox proxy ?

    ' in Host Names is not allowed. Our hosname has '_'.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/67/be9442572e1231e10000000a1550b0/frameset.htm

  • Not able to pass a date in send mail utility.

    Hi,
    The requirement is :
    when some one is getting terminated in HR, send a mail to a fixed set of people.
    I created a trigger on Insert. Passing the person_id and calling a conc program. The IN to the conc program is person id. Now in the pkg I am using a cursor to get some details and sending as a send mail. Using FND_Message.
    But when I am trying to pass the end_date as a part of the message it's not working. I gave fnd_log to check what is getting passed in that date, but it's always null. Not sure why.
    I even tried using to_char but does not help. Any clue?

    Shankzzz wrote:
    when some one is getting terminated in HR, send a mail to a fixed set of people.Yeah.. everyone in HR should be termimated - and we, Cyberdyne Systems, have the perfect solution. It is called the Cyberdyne Systems Model 101. Easy to program. Never yet have missed a target. And as we also do not like HR, we can sell you a Model 101 at a special dis-count too.
    I created a trigger on Insert. Passing the person_id and calling a conc program. The IN to the conc program is person id. Now in the pkg I am using a cursor to get some details and sending as a send mail. Using FND_Message.
    FND_MESSAGE ?
    But when I am trying to pass the end_date as a part of the message it's not working. I gave fnd_log to check what is getting passed in that date, but it's always null. Not sure why.
    FND_LOG ?
    No idea what these are. You are perhaps talking Oracle Applications?
    In this forum we talk SQL and PL/SQL server language - the plain vanilla flavour that comes with every Oracle RDBMS database. No applications. No Forms.
    I even tried using to_char but does not help. Any clue?Why would a to_char() change a null value into a non-null value?

  • Not able to pass parameters to append search help

    Hi
    I have created a new search help, when I am testing it, its working fine.
    My requirement is to append this search help to an existing search help.
    The problem is, after appending the parameters are not getting passed through the new search help tab.
    The parameter assignment and all are done.
    Kindly help me in this regard.
    Thanks,
    Pallavi.

    look at how the other elementary search helps are set up within the collective...sounds like you have errors in your settings.

  • Not able to pass parametrs to URL in SICF Handler method

    Hi everyone,
    We have create a WDA Object which Calls a OCI Catalog and passes the control to catalog using resume plug.
    Once the the materials from catalog are selected and we click on submit button controls return back to a SICF Service which contains a Handler class.
    In this handler class we are reading the selected Materials using statement-
    server->request->get_form_fields( CHANGING fields = lt_cat_fields ).
    i am able to get the materials here, now i want to attach these materials & there details to the WDA URL as parameters.
    So that we can read the selected maerial details in WDA from URL parameters in the resume plug handler of WDA using-
    wdr_task=>server->request->get_form_fields( CHANGING fields = lt_fields ).
    How can we achieve this in SICF handler class.
    Regards,
    Akash Rana

    You shouldn't use WDR_TASK directly in WDA. It isn't release for customer/partner usage. Plus these wouldnt' be form fields, but instead header fields if they are URL parameters. Instead of access WDR_TASK and the request/response object directly, you can get the url paramters of a start or resume plug via the WDEVENT importing parameter of the DEFAULT inbound plug (and its handler method).
    From the online help:
    Suspend and resume plugs can have user-defined parameters. For more information, see Window: Inbound and Outbound Plugs.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/2233b60c21072ce10000000a155369/frameset.htm
    method HANDLEDEFAULT .
      data: l_url_parameters type tihttpnvp.
      wdevent->get_data(
        exporting
          name =  if_wd_application=>all_url_parameters
        importing
          value = l_url_parameters  ).
    endmethod.

  • I am not able to pass a Linux schema attribute thru the $WSUSER_attribute

    Hi all,
    I hope somebody can help me with this mess...
    I have defined "accountId", "passwordldapprovincia" and "grupoprimarioldap" attributes in the Red Hat Linux schema map. We are launching the Resorce Action with success, but only the "accountId" attribute is passed to the script.
    Here is my code...
    <ResTypeAction restype='Red Hat Linux' timeout='6000'>
    <act>
    echo $WSUSER_accountId -p $WSUSER_passwordldapprovincia -g $WSUSER_grupoprimarioldap >> /tmp/salida_dar_alta.txt
    exit $DISPLAY_INFO_CODE
    </act>
    </ResTypeAction>
    I will appreciate any hint.

    I have found the answer...
    We have to use the right hand attributes of the schema map, the ones that belong to the Resource, not the Identity Manager attributes. So the manual is not correct about this subject.
    I hope this can help somebody.
    Celica

  • TCA Java APIs not able to validate input against LOOKUP table

    Hi there,
    I am using the TCA Java APIs to create new source system references like so:
    HzOrigSystemRefPub wrapper = new HzOrigSystemRefPub();
    wrapper.createOrigSystemReference(connection, "T", record, x_return_status, x_msg_count, x_msg_data);
    The record has the following attributes set:
    l_orig_sys_reference_rec.created_by_module := 'TCA_V2_API';
    l_orig_sys_reference_rec.owner_table_name := 'HZ_PARTIES';
    When I run my java code however, the call returns an error saying that the values I have mentioned in the above two attributes were not in my lookup tables:
    1. Value for owner_table_name must be a value defined in lookup type TCA_OWNER_TABLE.
    2. Value for created_by_module must be a value defined in lookup type HZ_CREATED_BY_MODULES.
    When I run queries directly against the database in SQLDeveloper, I am able to find these values. They do exist.
    For some reason, when using the Java API, it cannot find the lookup values.
    I even tried calling the PL/SQL API from Java and the same problem exists.
    Is this a bug?
    Can anyone please help me?
    Thanks in advance!

    OK, solved my own problem.
    The solution is to set the language environment variable to 'AMERICAN'.
    It's a known bug.
    Set it from your Java code like this:
    OracleCallableStatement setter =
    -------(OracleCallableStatement)connection.prepareCall(
    -------"ALTER SESSION SET NLS_LANGUAGE = 'AMERICAN'");
    setter.execute();
    Now any calls after this statement to the Java APIs will work.
    Cheers!

  • Not able to pass multi values from prompts to Bi Publisher 11g

    I am using a choice list in dashboard prompt with default value:"All Column values" and set to a presentation variable:"presvar
    In BIP 11G data model,in where clause i am writing it as:
    where tablename.colname in (:presvar)
    This is working only when i select single value in prompt ,if i select multi values in dashboard prompt it is not fetching me exact results.It is throwing error:"Invalid parameters"
    Kindly help if someone has faced the situation
    Version:11.1.6.2

    This is a bug:
    Bug 11793832 : MULTIPLE VALUES IN A DASHBOARD PROMPT DOESN'T WORK WITH BI PUBLISHER INTEGRATED
    I have been told that a fix is due in next patch set 11.1.1.7.2

  • Not Able to Pass the Values to WorkFlow Container

    Hi All,
        Iam calling a WF from a BSP application by using the FM       
    EWW_WORKFLOW_START
    for this fucntion module iam passing a table  to the parameter
    X_CONATINER = t_values
    but I am a bit confused that how this table is assigned to the workflow conatiner.
    what I want to know is I need to assign the values of t_values to the WF conatiner elements .
    Thanks In Advance.
    Regards
    Pavan

    Pavan,
    try this code and include this in your corresponding include.
    Make sure that your workflow has a multiline import element with the same name as of the internal table. Here, WERKS.
    REPORT yh_sample.
    DATA : t_container TYPE TABLE OF swcont WITH HEADER LINE,
            wf_id TYPE swwwihead-wi_id.
    DATA: werks TYPE STANDARD TABLE OF werks_d WITH HEADER LINE.
    DEFINE swc_set_element.
      call function 'SWC_TABLE_SET'
        exporting
          element       = &2
        tables
          container     = &1
          table         = &3
        exceptions
          type_conflict = 1.
    END-OF-DEFINITION.
    werks = '1000'.
    APPEND werks.
    werks = '1003'.
    APPEND werks.
    werks = '1056'.
    APPEND werks.
    swc_set_element t_container  'WERKS' werks.
    CALL FUNCTION 'EWW_WORKFLOW_START'
      EXPORTING
        x_task          = 'WS99901222'
      IMPORTING
        y_workflow_id   = wf_id
      TABLES
        x_container     = t_container
      EXCEPTIONS
        invalid_task    = 1
        no_active_plvar = 2
        start_failed    = 3
        general_error   = 4.
    IF sy-subrc = 0.
      COMMIT WORK.
      MESSAGE 'success' TYPE 'S'.
      WRITE:/ wf_id.
    ELSE.
      MESSAGE 'Error' TYPE 'S'.
    ENDIF.
    Regards
    Indu.

Maybe you are looking for

  • SAP Note 0001370334: Error while deploying EAR file

    Hi All, We have a project requirement where payload should not be visible in both IE(SXMB_MONI) and RWB(Channel Monitoring). We have followed sap note 0001370334 and created .ear file as per sample .ear file given in the sap note. Here the problem is

  • Power Spectrum no longer working correctly after upgrading to 8.0.1

    Recently, I installed Labview 8.0.1 to correct a problem I was experiencing in 8.0.  The installation resolved my problem, but now the Power Spectrum no longer gives the correct result.  My program has not changed other than the update.  I checked my

  • Best settings when connected to am amplifier via digital i/o

    There are all these crazy settings on the creative software and of course my amp has crazy settings as well. Wondering whats the best settings in the software so I am not "double processing" my soud. Seems to me I would want a neutral choice going to

  • ADF And/Or JSF : A Shift to Future

    Hi All, I am using Oracle Forms since 1996 and worked in different versions of it. Now there is a move away from Forms to J2EE based solutions like ADF/JSF to name a few. Even Steve is writing a book for Oracle ADF Development for Forms Developers. I

  • Have reformatted MacBook but don't know how to reinstall my Office

    Hi I have a MacBook Pro from 2011, i bought it in the UK and we got the latest software put onto it including Microsoft office. I have had to reformat the macbook as it was just running realy slow and i had too much on it.  I have done ther reformat