Trouble when creating webservice from PL/SQL via jdeveloper

Hi,I'm new comer of this world,
I've a pl/sql like this:
package MY_WS_API is
type record_set is ref cursor;
PROCEDURE Get_User_Info(p_user_id VARCHAR2,
p_rep_id VARCHAR2,
p_flag out number,
p_msg out varchar2,
p_recordset out record_set);
end MY_WS_API;
when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
THE QUESTION is:
1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
2.in such case , need I trans the return cursor into Object[] if have to?
3.any other limitation for generating WS from PL/SQL using jdeveloper?
Thanks!

I had the same problem and found that JDeveloper uses the thin driver to connect to oracle, this driver doesn't support ref cursors or xmltypes etc. You have to assemble your own web service using the webservicesassembler command line utility (i.e. wsa.jar). This link should provide you with all you need:
http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14434/wsassemble.htm

Similar Messages

  • Generate document classes when creating WebService from WSDL using JAXRPC

    Can anybody tell me how i can generate request response document classes.Response is return type and request is its parameter of method (service provided by webservice).
    I had used cmd:
    wscompile -keep -gen:both -d src config.xml
    My config.xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl
    location="wsdl\TroubleTicket\v1-2\JVTTroubleTicketSession.wsdl"
    packageName="src">
    <handlerChains>
    </handlerChains>
    <namespaceMappingRegistry>
    </namespaceMappingRegistry>
    </wsdl>
    </configuration>
    After running the wscompile command, i was able to generate SOAPBuilder classes, LiteralSerialiser files, Request-Response-Exception classes and the Tie, stub, Port and Impl classes.
    How can i procedd furthur???

    Arushi,
    I would refer to the online tutorial for JWSDP, which walks you through creating a web service and a Client to the service.

  • How to Create PR from exeternal SQL Server through IDOC

    Dear all,
    I am in trouble while creating PR from exeternal SQL Server through IDOC . although I have created PR from TCODE we19 giving input as well as from function writen below
    My scnerio is from external system(Sql) want to send data to sap to create PR return PR No to SQl Server
    Not having idea how to do
    Basic Type for Idoc : PREQCR01
    Message Type       : PREQCR
    Function Module    : BAP_Idoc_Input1
    Thanxs in Advance

    if you have XI installed,
    than it would be easy,
    just use JDBC channel->XI->SAP IDOC.
    otherwise,
    you can export the table from the SQL to CSV file,
    and import it with LSMW with IDOC PREQCR01.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks

    When creating PDFs from WORD 2010 I cannot get the TOC heading entries as hyperlinks. I used to be able to do this in WORD 2003. I tried to create a PDF from Acrobat by selecting File > Create PDF >navigate to the WORD file > select three checkboxes >
    Any help with getting the TOC heading entries as hyperlinks?

    Try to do it from Word using the ribbon.

  • Acrobat 9 Quits When Create PDF from Scanner Selected

    Hi. I wonder if anyone can advise please.
    I have recently installed Acrobat 9 on my MacBook Pro and have plenty of RAM. However, I can "Create PDF from Scanner" just the once. After that, Acrobat quits when I select Scan or quits if I cancel the scan.
    I have tried the following:
    1. Troubleshoot System Errors & Freezes
    2. New User account
    3. Recreated Preferences
    4. Booted from separate disk
    5. Repaired disk permissions
    6. Have no third party plug-ins installed
    7. Have run Repair Acrobat
    8. Changed Universal Access
    9. Defragmented disk & repaired files
    10. Safe Boot and reinstall Acrobat
    Nothing has worked except when I clean install I can scan through Acrobat once.
    I can scan from the scanner software - Lexmark 4850 - with a jpeg straight to Acrobat but want to try to solve the issue of scanning straight from the app.
    Thanks for your help people.
    Regards
    Paul

    After I discovered my problem of quitting after completing the scan of the first side of a 2-sided document and decided to go to Adobe for help, I should have known I was in real trouble after following their instructions for locating the Acrobat serial number. After bringing up the splash screen and clicking on it, instead of seeing the number the splash screen disappeared! So I had no option but to use the phone. Then their help person couldn't give me the serial number- he had to transfer me- and I chose to stay with him for help instead. He decided it was a conflict between the Acrobat & HP software and ended the help session.
    I then did some on-line research and discovered others with the same problem, and came up with the comparison test with the Windows version. Adobe's phone system didn't recognize my Case #, but the second Help person said it worked fine. At that point, I got the feeling that I was in real trouble. After another hour going over the same ground and repeated denials that their software was at fault, the Helper refused my request that they do a Windows comparison test or send me a Windows version to test myself and promised to call me back with results of their "research". That call never came.
    On the third call, again with the Case # unrecognized by the phone system, the Helper was even more unhelpful, probably after reading the record of the first two calls. He insisted on going back to the machine and over the same ground once again, and I ended the call.
    I agree that the on line approach is better, and I may have to make a double call to get the serial number (neither of the two I have, each different on the case or on the CD worked) and try that if my request for a supervisor fails. Fortunately they are so incompetent that they can't track starting over.
    I'm not a programmer, but have lots of varying experience with computers dating back to the first Atari-400. Since your Acrobat uses only the Twain driver component from your scanner software, the first place to look for a problem is in the Acrobat software, especially since the software doesn't run again after the first use without reinstalling, and the scanner continues to perform properly using it's installed software. The Windows comparison test such as Tim Whitfield was able to make, would clearly establish the Mac version of the Acrobat software to be at fault, but would still not resolve our problems. Unfortunately I hold out little hope for either you or I with Adobe, since neither their phone nor the online help has come up with a prior fix. This indicates a bug fix requirement, which for something like this looks to be a relatively long time in coming.

  • Unwanted blank pages inserted when creating pdf from scanner

    Hello, when creating a pdf from a document scanned via Adobe Acrobat X Pro, the program inserts an unwanted blank page in between each page  being scanned.  So, if scanning 50 pages, we get 100, etc.  How do we remediate this problem?  We have worked with the default settings, to no avail.  We're using a Fujitsu fi-5530c2 scanner.  We would appreciate any input to help resolve this issue!  Thanks Mark

    Hi,
    you can automaticaly fix previously made documents using the Preflight tool.

  • Unable to create webservice from EJB due to wrong wizard configuration

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • Creating Universes from a SQL Server 2008 Database....Options?

    Needing to create a Universe from a SQL Server 2008 DB, I am of course finding it difficult at best to get the ball rolling. Support tells me the only option I have is to use Designer, and to not use the "Automated Detection" features because they are not for production environment use <citing business requirement differences as one issue, as was noted during a support call when I was having problems with our VM server literally locking up while the "Automatic Detection" features were trying to run>.
    So what that means is, from what I see, I am expected to manually add all of the SQL DB tables, and then have a Developer spend multiple hours adding appropriate Joins, Cardinalities, Keys, etc. And, whenever there are any DB changes, this has to be done all over again to the Universe to allow for syncronization with the DB.
    This really seems like a heavy load to bear just to be able to use SAP. Is anyone else having these same challenges? Are there other options I am just not seeing? Seems to me Builder needs a SQL bridge honestly.
    Appreciate any help I can get!!
    -Carl

    While it may seem disappointing, as long as you have the data schema and knowledge of the joins and cardinalities, then you've got a lot of the easy stuff sorted out.
    What you need to provide is a presentation layer that is more than just turning the tables and columns into classes and objects. There are often things that you need to create that don't exist in the database, such as objects for relative dates. These can be found in the thread that I created over on the BOB Board here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=152613
    Make sure that all objects have a description
    Make sure that all dates and numbers have a format; there's nothing worse than creating a report and finding your year displayed as 2,011.00
    Use predefined filters - include prompts
    Other useful tips are available here:
    http://www.forumtopics.com/busobj/viewtopic.php?t=15227
    Do you have a set of reporting requirements?

  • ProcessRemoteException when invoke  webservice from Oracle E-Business Suite

    Hi,when i invoke webservice from Oracle E-Business Suite R12.1 – Integrated SOA Gateway’s
    I get following exception.
    fuego.soaptype.SoapExecutionException
    at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java\:750)
    at fuego.soaptype.SoapCall.invoke(SoapCall.java:238)
    at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
    at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
    at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
    at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.initializeReport(__SubmitReport.xcdl:30)
    at.......
    this webserivce has been deployed and granted. and I can test it with soapUI.
    my code:
    configuration as Configuration = Configuration("FND_PROGRAM_Service");
    endpoint as HttpEndpoint=HttpEndpoint("http://ep066020.bscdev.net:8002/webservices/SOAProvider/plsql/fnd_program/");
    endpoint.setUsername("sysadmin");
    endpoint.setPassword("sysadmin");
    configuration.endpoint = endpoint;
    usernameTokenPlain as UsernameTokenProfileSecurityPolicy=UsernameTokenProfileSecurityPolicy("sysadmin","sysadmin");
    usernameTokenPlain.usernameTokenPasswordType = UsernameTokenPasswordType.PASSWORD_TEXT;
    policies as SecurityPolicy[];
    policies[]=usernameTokenPlain;
    configuration.securityPolicies = policies;
    service as FND_PROGRAM_Service= FND_PROGRAM_Service(configuration)
    sh as SoaHeader = SoaHeader();
    sh.namespace="";
    sh.responsibilityApplName="SYSADMIN"
    sh.responsibilityName="System Administrator"
    sh.securityGroupName="STANDARD"
    sh.nlsLanguage="AMERICAN"
    pam as InputParameters9 = InputParameters9()
    result as OutputParameters
    pam.application="SQLGL";
    pam.executableshortname="ENABLED"
    do
    logMessage "333333333333333";
    executableexists service
    using header = sh,
    body = pam
    returning result = bodyOutput (throw exception)
    logMessage "2222222222222";
    reportSF.description=String.valueOf(result.fndprogram24executableexists)
    reportSF.comments="11111111111";
    on ex as Any
         logMessage "aaaaaaaaaaaa"+ex
    end

    I've encounter something similar to you're problem and it was resolved by manually creating the object using the web service constructor and inputting user credentials. If you manually instantiate your web service wrapper object and set a a security profile token, it may solve your problem. You can also pass in the web service endPoint URL, if you want.
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy
    I'm not sure how to use UsernameTokenProfileSecurityPolicy, but try something like this:
    Fuego.WebServices.UsernameTokenProfileSecurityPolicy policy = UsernameTokenProfileSecurityPolicy();
    policy.username ="mark";
    policy.password = "password";
    tws = YourWebService();
    response = tws.callWebServiceMethod();
    I realize the security profile isn't tied anywhere to the web service, but try it anyway.
    There is also some fields on the webservice, tws.setRequestHeader() that may allow you to set the username and password on the request, but this doesn't make sense to me. It shouldn't be that hard.
    Edited by: Mark Peterson on Mar 19, 2010 9:14 AM
    Edited by: Mark Peterson on Mar 19, 2010 9:20 AM

  • Issue with IDE configuration for creating Webservice from EJB

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi Ashish,
    perhaps you launch the Web service wizard from the wrong location (i.e. not selecting the SEI you want to use). Did you strictly follow the steps described in the <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/44/f36fa8fd1d41aae10000000a114a6b/frameset.htm">documentation</a> for creating the web service?

  • Generating Webservices from PL/SQL Problem

    Hello,
    when I try to automatically generate a webservice from my pl/sql package, I cannot choose a specific procedure.
    The "why not" button tells me, that there is no xml schema mapping or serializer available.
    my question:
    The pl/sql procedures output parameter are tables, like:
    Spec:
    TYPE my_type IS TABLE OF t_my_table.id%TYPE
    INDEX BY NATURAL;
    Body:
    procedure .... (
    out_param OUT my_type;
    Is it generally possible to autogenerate this kind of output parameter as webservice or have I missed something ?
    Do I have to use java instead ?
    Thank you for your help,
    Frank

    Hi,
    Within the package dbms_xmlquery there is a procedure called setDateFormat which you can use to set a format mask.
    But the format mask must be one recognised by the java.text.SimpleDateFormat class. an example would be.
    dbms_xmlquery.setDateFormat(lc_xmlgen_contex, 'dd.MM. yyyy');
    Hope this helps

  • How to remove 'Outlines' default text when creating shapes from vector layers?

    Hello everyone!
    You know the text it adds to the name layer when you create shapes from a vector layer that says Outlines? Well, anyone know if it's possible to change it or remove it?
    It sucks to have to remove it manually, especially when it's a lot of layers and you've taken the time to do the prepping in illustrator.
    Thankss,
    Oliver

    if I have an illustrator layer that is named icon and I convert it to outlines I get a layer that is named icon Outlines. Are you trying to remove the word Outlines or are you getting just a layer that says Outlines? Personally I would not remove the word Outlines from shape layer because this would differentiate it from the original and let me know at a glance what's going on with the layer and the project. This would be valuable information if I were to return to the project a year later for modifications.

  • Corrupt image formatting when creating pdf from embedded visio image in MS word

    Hello, Using Adobe Acrobat 9 standard and trying to create a PDF file from an MS word (version 2003) document.  PDF file created is fine except for an image (embedded visio diagram imported into word).  When created in PDF, the image is missing many of the diagram labels, and other text boxes are in the wrong font and wrong location.  I don't know if it's my Adobe Acrobat or MS Word settings that need to be updated.
    thanks, NB

    Dear fellows,
    the problem is still present.  My system:Windows 7 32-Bit Prof, MS Office 2010 Prof, Acrobat X Pro 10.1.1, Vision 2010 Prof, all updates installed.
    Problem #1: Even the latest Acrobat X 10.1.1 version causes Visio 2010 to start with error messages, origin: the Acrobat Add-In.  Therefore I de-activated the Acrobat Add-In, again, as in the past.
    As I design grafics with Visio 2010, I mark them in the active Visio window, copy the marked parts and then insert them into my Word-Document.  So far, so good and as I want it.
    The (still present) problem: I can produce a PDF file using the "save as Adobe PDF", but the Visio drawing is incomplete and corrupt.  E.g. arrows as line endings have disappeared.
    PS: But using Adobes PDF printer sets the embedded Visio drawing correctly!  But using the printer one looses some features of the "save as Adobe PDF" command.
    Well, probably one day ...
    Regards,
    Rückenlehne.

Maybe you are looking for