Cannot pass parameter to webservice using wsdl

cannot pass parameter to webservice using wsdl
I write code the following:
step 1
-->
DECLARE
SERVLET_NAME VARCHAR2(32) := 'orawsv';
BEGIN
DBMS_XDB.deleteServletMapping(SERVLET_NAME);
DBMS_XDB.deleteServlet(SERVLET_NAME);
DBMS_XDB.addServlet(NAME => SERVLET_NAME,
LANGUAGE => 'C',
DISPNAME => 'Oracle Query Web Service',
DESCRIPT => 'Servlet for issuing queries as a Web Service',
SCHEMA => 'XDB');
DBMS_XDB.addServletSecRole(SERVNAME => SERVLET_NAME,
ROLENAME => 'XDB_WEBSERVICES',
ROLELINK => 'XDB_WEBSERVICES');
DBMS_XDB.addServletMapping(PATTERN => '/orawsv/*',
NAME => SERVLET_NAME);
END;
step 2
--> CREATE USER test IDENTIFIED BY test QUOTA UNLIMITED ON users;
step 3
--> GRANT CONNECT,CREATE TABLE, CREATE PROCEDURE TO test;
step 4
--> GRANT XDB_WEBSERVICES TO test
step 5
--> GRANT XDB_WEBSERVICES_OVER_HTTP TO test
step 6
--> GRANT XDB_WEBSERVICES_WITH_PUBLIC TO test
step 7
-->
SELECT dbms_xdb.getftpport() FROM dual;
SELECT dbms_xdb.gethttpport() FROM dual;
exec dbms_xdb.setHttpPort(8080);
exec dbms_xdb.setFtpPort(2100);
step 8
-- Double check
host lsnrctl STATUS
SET head off
-- Valid?
SELECT * FROM dba_registry WHERE comp_id='XDB';
SET head ON
connect test/test;
CREATE OR REPLACE FUNCTION FACTORIAL_I(N PLS_INTEGER)
RETURN PLS_INTEGER
IS
n_result number;
BEGIN
IF N > 1 THEN
n_result := N * FACTORIAL_I(N - 1);
RETURN(n_result);
ELSE
RETURN(1);
END IF;
END;
WSDL Output:
http://localhost:8080/orawsv/TEST/FACTORIAL_I?wsdl
output picture: http://www.picza.net/show.php?id=20120429vlxdlFdvFPdvF134795
I try pass prameter by http://localhost:8080/orawsv/TEST/FACTORIAL_I?SBINARY_INTEGER-FACTORIAL_IInput=5
but error <ErrorNumber>ORA-31011</ErrorNumber>
Edited by: 930927 on 29 เม.ย. 2555, 9:02 น.

Using something like SoapUI or do it via PL/SQL as shown here: Re: Ora-31011 with a very, very simple native webservice

Similar Messages

  • From scorecard Pass parameter to be used as Measure in query of analytic Grid report in PPS in SP2013

    From scorecard Pass parameter  to be used as Measure in query of analytic grid report in PPS
    Any idea of how we can pass this parameter while connecting scorecard and report
    any use of MDX in connection formula ?
    Parameter needs to be assigned on click of scorecard cell

    Hi,
    That API has restrictions on its usage. Please see http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA
    The lines to be referred to are Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.Regards,
    PS: Your report must be on Page 98 , so it is able to reference the item P98_NAV_IMAGE. List being a Shared Component it may not be able reference that Item.
    Edited by: Prabodh on May 28, 2012 3:16 PM

  • Cannot pass parameter to servlet

    dear all,
    I am writing a MIDlet to post some data to a servlet.At the MIDlet, i set as below:
    String url = getAppProperty("Login.URL");
    conn = (HttpConnection)Connector.open(url);
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    conn.setRequestProperty("Accept", "application/octet-stream" );
    conn.setRequestProperty("Connection", "close" );
    os = conn.openOutputStream();
    byte data [] = ("userid="+userid.getString()).getBytes();
    os.write(data);
    data = ("&password="+password.getString()).getBytes();
    os.write(data);
    os.flush();
    At the servlet, I coded:
    String id = request.getParameter("userid"),
    pass = request.getParameter("password");
    When i posted "userid=123&password=123" to the servlet, the servlet directed me to 'LoginFail.jsp' with below output:
    Login fail!
    null //should be print out userid and password value
    can anyone please give me some suggestions, why the servlet cannot locate parameter and how to solve it?
    thanx a lot!

    <p>wongyuenmei</p>
    <p>I've done some similar program. I'm not sure why request.getParameter() won't return the value we past. However, I managed to resolve the problem with the following way:</p>
    <p>Remain your MIDlet code. But change your servlets to use the following rather request.getParameter()</p>
    <pre>
    ServletInputStream sis = request.getInputStream();
    DataInputStream din = new DataInputStream(sis);
    String id = din.getUTF();
    String pass = din.getUTF();
    </pre>
    <p>Good luck!</p>

  • FRM-47026 Cannot get parameter error when using bi graph

    Hi,
    I have recently tried to use the BI Graph bean provided as a demo from Oracle.
    I have amended the cursors and put into our system but get an error on the master graph.
    When i mouse click on a column i recieve the error from forms :
    FRM-47026 Cannot get parameter GRAPH_INFO attributes from parameter List CUSTOM_ITEM_LST19: no such names parameter exists.
    Any ideas. i have not changed the code in this trigger only the procedure cursors to work within our system
    code in trigger:
                   eventValues := get_parameter_list(:system.custom_item_event_parameters);
                   get_parameter_attr(eventValues,'GRAPH_INFO',eventValueType, tempString);
                   set_custom_property('PJC.WAREHOUSEGRAPH',1,'HIDE_GRAPH','');
                   FORMSGRAPHSAMPLE.clearData('PJC.DETAILGRAPH');
                   FORMSGRAPHSAMPLE.populateDetailGraphData('PJC.DETAILGRAPH',tempString,',');
    thanks

    Hi,
    Did you ever get this issue resolved?
    I am facing the same problem.
    Thanks
    Ian

  • Defect while invoking a Webservice using WSDL

    Hi all,
    I am trying to invoke a web service by creating a web service data source using the wsdl of the web service.
    I dragged the web service data control on to my jspx page as ADF Parameter form. The web service, once gets
    invoked should insert a row in the data base using the pay load that we send with the request.
    The application is running with out any errors but when I submit the data it is getting inserted 2 times into the database
    where the web service should insert only once. I tried sending the payload to the webservice manually then it inserted
    only once. I am unable to find the problem.. Kindly help me on this.
    Thanks & Regards,
    Phani.

    Hi Frank,
    I did that but still the problem persists. Actually what I did was like this.
    I have created a webservice proxy and a datasource using the wsdl of the proxy which has a metod "*CreateReference*" in it.
    inside this create reference there is a "*parameters*" folder in which I have all the payload parameters and
    a "*return*" method which has a table with statuscode and statusmessage attrubutes that gives the result
    which would be a "Success" or a "Fault".
    I have created a jspx page with three layout and on First layout I have dragged all the fields that are there
    in the parameters folder as ADF Inputtext with Lable and I have dragged the CreateReference method from the data source as a ADF Button.
    I have dragged the table that is there in the result on to the second half of the jspx page.
    when I run this and click on the button after entering the info into the lables it should create a row in the database.
    in my case it is creating row twice where it should create only once.
    In my page definition I have default(deferred) as the refresh for all the iterators.???
    Can you kindly help me on this...
    Thanks,
    Phani.
    Edited by: 887737 on Jan 2, 2012 2:00 AM

  • Pass parameter to WebService call

    Hi all,
    I would like to do the same thing defined in the documention for SQLQueries but for WSDL data source
    I havew created a parameter MyParam, and I triy to add the parameter to the WSDL param with :: :MyParam
    But it doesnt works.
    Thanks.

    ChitWooi, I created a list that holds all necessary configurations just like a parameter file, and passed the list to the webservice call to invoke the workflow. See example below. Example: list[0].Name = 'Parameter Name';list[0].Value = 'Value';list[0].Scope = 'Scope'; Thanks,Eric

  • Help - Passing parameter to report using page parameter

    I have a SQL Report on a page
    The report query is
    select * from scott.emp where deptno = :department
    The URL for the page containing the report is:
    http://developer03.fis:7777/portal/page?_pageid=95,36455&_dad=portal&_schema=PORTAL
    I have added a page parameter = departnment
    and associated the page parameter to the report bind variable in the Portlet Parameter Values as follows:
    department = Page Parameter, department
    I displayed the page by going to the above URL
    and then added &department=10 to the end of the URL in the browser address.
    I expected the report to display records for deptno = 10, but the query didn't return any records.
    Anyone know what's wrong??
    Thanks Larry

    Yes, except you need to add &department=10 to the end of the page URL, not what I had.
    Look at
    How to pass values from a Page to portlet in Portal.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=FOR&p_id=335031.996
    for a complete description on how to setup page parameters and associate them with bind variables.

  • Fail to pass special Hungarian characters using WSDL

    Dear All,
    I'm using WLS 7.0SP1, the webservice is generated with the ant task in rpc-style.
    The client is written in VB6 with MS SoapToolkit3.
    The simple method that receives and returns a
    string fails when the input or output
    contains special Hungarian characters.
    Can anyone help how to solve the problem?
    Thank you,
    Peter

    Hello,
    Thank you for the help, I set the property and it's working fine,
    the characters appear as they should!
    Meanwhile I realized that the failiure was because of some
    unneeded '\0' characters at the back of the strings.
    Thank you again,
    Peter
    Bruce Stephens <[email protected]> wrote:
    Hello,
    On the server, is the VM locale set to "en" ?
    Try setting the the following system property on the server startup:
    weblogic.webservice.i18n.charset="utf-8"
    Could you post a SOAP trace?
    Thanks,
    Bruce
    Peter Dobszai wrote:
    Dear All,
    I'm using WLS 7.0SP1, the webservice is generated with the ant taskin rpc-style.
    The client is written in VB6 with MS SoapToolkit3.
    The simple method that receives and returns a
    string fails when the input or output
    contains special Hungarian characters.
    Can anyone help how to solve the problem?
    Thank you,
    Peter

  • How to create a webservice using a WSDL document !!!

    I have tried to create webservice using WSDL but i dont need any document ... is there any document where i can see a thorough procedure to develope it

    Hi,
    go to tools in ID and click define webservices
    It will show a window where u have to give interface name and name space and u have to provide soap url their
    http://<port>/XISOAPAdapter/MessageServlet?channel=:service:channel
    then a webservice is created....
    thanq
    krishna
    Edited by: krishnachitanya siddavattam on Mar 6, 2008 10:51 AM

  • Passing value to multi value parameter from SSIS using Report server webservice

    Hi
    I am triggering SSRS report from SSIS(Script task). I am passing parameter values from SSIS package.
    So far working fine. Now, I have a report which has 2 parameters. One is single value parameter and the other is multi value parameter.
    No issue assigning value to single value parameter. But how can I pass multi value to multi value parameter?
    My code as below
    ReportExecutionService rs = new ReportExecutionService()
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    rs.Url = _webserviceURL;
    rs.LoadReport(_reportPath, null);
    ParameterValue[] paramval = new ParameterValue[2];
                            paramval[0] = new ParameterValue();
                            paramval[0].Name = "CountryCode";
                            paramval[0].Value = _countryNames;
                            **paramval[1] = new ParameterValue();
                            paramval[1].Name = "BusinessCode";
                            paramval[1].Value = _businessCode;****
                            rs.SetExecutionParameters(paramval, "en-us");
    I am not sure how to pass value to BusinessCode(Multi value parameter)

    Hi Rajkm,
    In order to pass a multi-value parameter through the Reporting Services Web services, you need to define the same numbers of ParameterValue objects as the number of the values of the multi-value parameter being past into the report. The Name property
    of these ParameterValue objects must be specified same to the parameter name.
    I found a good FAQ article for this scenario:
    How do I pass a multi-value parameter into a report with Reporting Services Web service API?:
    http://blogs.msdn.com/b/sqlforum/archive/2010/12/21/faq-how-do-i-pass-a-multi-value-parameter-into-a-report-with-sql-server-reporting-services-ssrs-web-services-api.aspx
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • Passing table from ABAP to webservice using SOAP

    Hello:
    I am trying to pass table data from ABAP code to a webservice using SOAP.  I have seen many examples of passing single value parameters such as:
      DATA: osoap   TYPE REF TO CSoapDocument.
        GET REFERENCE OF p_refno INTO dref.
        CALL METHOD osoap->add_parameter
          EXPORTING
            direction  = CSoapConstants=>ic_param_in
            name       = 'ws_ref_no'
            value      = dref.
        CALL METHOD osoap->set_tag_name_format
          EXPORTING format = CSoapConstants=>ic_tagfmt_default.
    However I cannot find any code examples of passing table data to a webservice.  Can anyone provide a sample or documentation for how to pass table data to a webservice?
    Thanks,
    Craig

    Hi Craig
    i just posted this on SAPfans for you too!
    if you are not using PI, then follow this....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm
    this is converting XSD to ABAP....
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/de/705c3c3806af06e10000000a11402f/frameset.htm
    i have only used PI to do this via ABAP Proxies....

  • How to pass Cascading Parameter in SSRS using Java

    How to pass Cascading Parameter in SSRS using Java---
    We are having a problem with dependent parameters.There are three drop down--
    1.first dropdown is of Country.When we select a country--Accordingly next dropdown(State)will populate
    2.Second dropdown is of State. When we select a state--Accordingly next dropdown(City)will populate.
    I have three data sources are
    CountryList-
    SELECT CountryRegionCode, Name
    FROM Person.CountryRegion
    ORDER BY Name
    StateList
    SELECT StateProvinceID, StateProvinceCode, CountryRegionCode
    FROM Person.StateProvince
    WHERE CountryRegionCode = @CountryRegionCode
    ORDER BY StateProvinceCode
    CityList
    SELECT StateProvinceID, City
    FROM Person.Address
    GROUP BY StateProvinceID, City
    HAVING (StateProvinceID = @StateProvinceID)
    ORDER BY City
    Ihave to show report that has been deployed on server on the besis of these parameters
    I am using ReportViewer in JSP Page through url--
    http://192.168.90.149/ReportServer/Pages/ReportViewer.aspx?%2fReport+Project1%2fCascading_Parameters&rs:Command=Render&rs:parameter=true&Country="+Country+"&State="+State;
    But it is not accepting parameter if they are cascaded.It is working fine if Both parameters are independent.
    Edited by: kaushlee on May 11, 2010 9:22 PM

    Take a look at set_custom_property:
    public static final ID SETTEXT = ID.registerProperty("SETTEXT");
    public boolean setProperty(ID pid, Object value)
        if (pid == SETTEXT)
    String text = value.toString();
    and in forms
    set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
    cheers

  • Using Go URL to Pass parameter between dashboard

    Hi All,
    I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
    The navigation is working properly but the parameter is not getting passed, I am not sure why.
    The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
    Option 1
    In the calling analysis, I am using a Narrative View and inside I have used the below code.
    <a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
    This one navigate but filtering is not happening
    Option 2 (My first preference will be this option)
    Also I tried to provide custom Data Format under the column Properties
    [html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
    This ends up giving error
    Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
      Error Details
    Error Codes: UVWDR6UA 
    Also, both the tabs (Called and Calling are under the same Dashboard)
    Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
    Thanks

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

  • Passing Parameter using GET or Post in J2ME

    I have a problem passing parameter which has space between character to Servlet through GET or POST method. I am using HttpConnection. Which works properly whenever i sending data without space, else it shows Exception for space in URL.
    If i use trim method which is Client side scrpiting then i am not able to update the database which takes input from the J2ME midlet.
    Can any1 help me how to pass the parameter with space.

    Hi Mark,
    The "number" format relies on the formats supported by the JS
    native Number object. We don't actually do any number parsing
    ourselves in Spry. One workaround, if you need things to sort
    properly, is to have one column that is formatted european numbers,
    and one column that is actually supported by the Number object. You
    can create this custom column by using a filter:
    function DataFilter(ds, row, rowIndex)
    row["@premieNumber"] = new
    Number(row["@premieNumber"].replace(/,/, "."));
    return row;
    Regarding the Request() object and your setURL() call ... the
    3rd arg to setURL is optional, and only necessary if you are going
    to use POST, or specify some header to send. If you do use post or
    want to send some specific header, the 3rd arg just has to be an
    object with only whatever options you want to specify, you don't
    have to specify them all ... the options names exactly match the
    fields defined in a Spry.Utils.loadURL.Request object.
    We do have a utility class that gathers all of the input
    values in a form. You will find it in Spry 1.6 in SpryUtils.js. The
    name of the function to call is:
    var str = Spry.Utils.extractParamsFromForm(form, elements);
    The 2nd arg is optional, and allows you to specify what
    element values you want to retrieve. If it is not specified, it
    gets all values in the form.
    --== Kin ==--

  • SOURCING10: Passing parameters to a Query Based webservice using JAVA

    Hi Experts,
    I have been working on consuming a Query based webservice published in Souricng10 in a simple JAVA class. The query has a filter parameter which is not mandatory. I am able to consume the webservice using the GET method and display the content of the webservice. But when i try to POST a value to the filter parameter of the query i am getting the following error:
    java.io.IOException : Server returned HTTP response code: 415 for URL: http://sapcild9.web.bc:55000/sourcing/ngservices/rest/query/Z_TEST_WS_QUERY/execute/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    Following is the code which i have used:
       URL url = new URL("http://sapcild9.web.bc:55000/sourcing/ngservices/rest/query/Z_TEST_WS_QUERY/execute/");
       HttpURLConnection connection = (HttpURLConnection)url.openConnection();
       connection.setRequestProperty("Authorization", "Basic " + authStringEnc);
       connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
       connection.setRequestProperty("Content-Length", "" +Integer.toString(urlParameters.getBytes().length));
       connection.setRequestProperty("Content-Language", "en-US");
       connection.setUseCaches (false);
       connection.setDoInput(true);
       connection.setDoOutput(true);
       connection.setAllowUserInteraction(true);
       connection.setInstanceFollowRedirects(false);
       connection.setRequestMethod("POST");
       connection.connect();
       //Send request
       OutputStream out = connection.getOutputStream();
       OutputStreamWriter wr= new OutputStreamWriter(out, "UTF-8");
       wr.write("EXTERNAL_ID");
       wr.write("=");
       wr.write(URLEncoder.encode("temp","UTF-8"));
       wr.close();
       out.close();
       is = connection.getInputStream();
       isr =new InputStreamReader(is);
       BufferedReader bufferReader = new BufferedReader(isr);
       String str; StringBuffer stringBuffer = new StringBuffer();
       while ((str = bufferReader.readLine()) != null) {
       stringBuffer.append(str);
       stringBuffer.append("\n");
       System.out.println(stringBuffer.toString());
       connection.disconnect();
       is.close();
    Please Advise how to proceed on this isssue?
    Thanks in advance.
    Srikanth Emani

    Hi Gael,
    your URL is made up of :
    [ProcedureName]?[parameter1]=[value1]&[parameter2]=[value2]
    creating URLs like this can have problems especially with spaces and punctuation.
    the answer is a FORM
    the following will create a hidden form :
    FORM ACTION="[ProcedureName]" METHOD="POST" name="F1"
    INPUT type="HIDDEN" name="[parameter1]" value="[value1]"
    INPUT type="HIDDEN" name="[parameter2]" value="[value2]"
    /FORM
    you can set the values in the form using:
    document.F1.[parameter1].value="abc123%%&&$$!";
    document.F1.submit();
    will submit the form and the PL/SQL procedure should receive the text as it was contained in the form.
    the only characters that can now cause problems are :
    " as it delimits the field.
    ' as it may cause problems in PL/SQL.
    \ as it is a special character.
    Regards Michael

Maybe you are looking for

  • Premeire Elements 12 can't see disc menus added to project in PE 10

    I have a project that I created in Premiere Elements 10. I just installed Premeire Elements 12, and while I was able to open my project, PE 12 apparently can't see the disc menu I created in PE 10. I tried to recreate the menu, but when I installed P

  • Network printer driver installation

    Product Name: Hp Pavilion dm4 Notebook PC Product No.: QE374UAR#ABA OS: Window 7 64 bit How to install network hp lesarjet 5200 printer driver to client computer window 7 64 bit os?

  • Why i cant restore my iphone 5

    Why when I put restore my iphone tells me that "my phone can not be chosen for that"

  • Internet in my Area

    Some of your partner sites tell me that I should be capable of recieving some of your internet plans, though when I went to a Verizon store they told me that Verizon stops at the end of my street. The verizon store told my family that they were build

  • Questions regarding Reporting

    Hi gurus,            Will any body plz forward me questions on Reporting i.e. in real time scenario and subject oriented pattern. It will be very helpful for me. Thanks in advance, Shammu.