How to generate WebServices for PL/SQL Packages

I have the following issue trying to generate WS for a selected set of operations within a PL/SQL package
If I use the option -sql PKG_TEST then I am getting all operations within a package.
I just want to expose a certain number of procedures ( e.g. PROC1 and PROC2 )
It works only if I specify
-sql PKG_TEST(PROC1)
when I use -sql PKG_TEST(PROC1, PROC2) it gives me errors.
I have Oracle JDeveloper (10.1.3.2) (Build 4066) .
I used wsa with an plsqlAssemble option
java -jar wsa.jar -plsqlAssemble
-appName myApp
-packageName myPckg
-sql PKG_TEST(PROC1)
-dataSource jdbc/ds
-dbConnection jdbc:oracle:thin:@zzzz:1521:mydb -dbUser user/passw
-style rpc
-use literal
Thanks,
Michael Hitrik

Eric,
Thanks a lot for your help.
I was able to follow all of your recommendations
I was able to produce the single ear file for multiple PL/SQL packages .
Now I have the last step ( I hope :-) - WS-SECURITY
What is your recomendation for Security - specifically for WebServices for PL/SQL Packages ?
I would like to do the following:
CLIENT CODE:
* Create a XML element with user name, password, &
* datasource as child elements.
* Element will look like this:
* <credetials>
* <username>scott</username>
* <password>tiger</password>
* <datasource>jdbc/OracleCoreDS</datasource>
* </credentials>
Document doc = new XMLDocument();
Element elAdd = doc.createElement( "credentials");
Element elA = doc.createElement( "username");
Element elB = doc.createElement("password");
Element elC = doc.createElement("datasource");
elA.appendChild(doc.createTextNode("scott"));
elB.appendChild(doc.createTextNode("tiger"));
elC.appendChild(doc.createTextNode("jdbc/OracleCoreDS"));;
elAdd.appendChild(elA);
elAdd.appendChild(elB);
elAdd.appendChild(elC);
doc.appendChild(elAdd);
Element e = doc.getDocumentElement();
// Create an intance of the proxy
EmployeeProxy proxy = new EmployeeProxy();
// Create a Header objecy
Vector v = new Vector();
v.add (e);
Header hdr = new Header();
hdr.setHeaderEntries(v);
// Set the Header
proxy._setSOAPRequestHeaders(hdr);
SERVER CODE:
public void processHeaders(Header header)
throws java.io.IOException,
oracle.xml.parser.v2.XSLException
// Get all the Elements
Vector entries = header.getHeaderEntries();
Element e = (Element) entries.firstElement();
System.out.println("Element received from SOAP header is: " );
((XMLElement)e).print(System.out);
// Get independent nodes and retrieve node values.
Node userNode;
userNode = ((XMLNode)e).selectSingleNode("username");
userName = ((XMLElement)userNode).getText();
Node passwordNode;
passwordNode = ((XMLNode)e).selectSingleNode("password");
password = ((XMLElement)passwordNode).getText();
Node dsNode;
dsNode = ((XMLNode)e).selectSingleNode("datasource");
datasourceName = ((XMLElement)dsNode).getText();
System.out.println("User name is: " + userName);
System.out.println("Password is: " + password);
System.out.println("Datasource is: " + datasourceName);
How can this be done with the generated code using wsa tool ?
Any other suggestions ?
Thanks,
Michael

Similar Messages

  • Creating Web services using JDeveloper for Pl/SQL package having ref cursor

    Hi,
    I am trying to create web services for PL/SQL package in JDeveloper. When I am trying to create this web service, the functions in the package which is returning referential cursor or record cursor are not visible. When I highlight the function and click "Why Not?", it displays the message "The following types used by the program unit do not have an XML schema mapping and/or serializer Specified: REF CURSOR". Could you please let me know, how I can create this web service?
    I am getting similar error when I am trying to create web service for a package with overloaded functions also.
    Thanks,

    Ok so I played around with this some more. I created the same process in bpel using oracle bpel designer and here are the results.
    1. Against 10g database running a synch process data is retutned without error.
    2. Against 9i database running an asynch process data is retutned without error.
    3. Against 9i database running a synch process data is retutned with error.
    I'm definilty missing something.

  • Enforcing Node Affinity for PL/SQL Packages???

    Dear fellow dbas,
    we have a random performance problem on one of our 11gR1 RAC databases due to io waits.
    In fact, we tracked down the problem and noticed that sql packages are executed on node 1 causing bad times and were executed on node 2 with good results.
    Now the question is how can we enforce these pl/sql packages, which are called via external batch jobs, to be executed on node 2?
    Instance affinity came to my mind but I have no clue whatsoever how to apply it for packages and embedded pl/sql code.
    Can you please give me an advice?
    Thanks for your feedback!
    Best regards,
    Sebastian

    You need to define a service to run preferably on node 2 with failover to node 1, and give a your batch jobs a connect string that connects to that service:
    srvctl add service -d whatever -s batchserv -r node2 -a node1
    and in your tnsnames.ora,
    batchserv=
    (description=
        (address_list=
             (failover=on)(load_balance=on)  
             (address=(node1....)(address=(node2...))
         (connect_data=(service_name=batchserv))
    I've recorded many demonstrations of this sort thing,
    Free Oracle Databse 12c and 11g Tutorials for Administration and Developers SkillBuilders
    John Watson
    Oracle Certified Master DBA

  • How to generate sitemap for SiteStudio sites. Is   there any component avai

    How to generate sitemap for SiteStudio sites. Is there any component available?
    We want to create xml having list of all site URLS for SEO purpose.
    Is there any way to achieve this ?
    Thanks

    SiteStudio comes with SiteMap fragments. Change the page template so it is a document type XML, add the fragment and you're practiacally done.

  • How  to  generate  Billing   for   Service Order   ?

    how  to  generate  Billing   for   Service Order   ?

    Hello,
    You may do a resource related billing from the service order,  but you need to maintain Resource Related billing profile in Service order --> Control tab. Once it is set you may generate the billing document (debit memo) from service order through DP90, provided the config is right.
    Prase

  • How to generate datasource for inforsource in BW 7

    Hi all:
         Could you please tell me how to generate datasource  for inforsource  in BW7, it seems that the way
    is different from other lower edition BW 3.x.   Should I  choose   Tranformation  ? and then how ?
    Thank you very much!
    Edited by: jingying Sony on May 9, 2009 8:41 AM

    1) First thing is that in BI 7.x the infosource is optional.You can directly create a transformation between datasource and data target (e.g. cube). If you still want to use a infosource then you will require 2 transformations. 1 will act as a transfer rule and other one will act as a update rule. This is a crude example showing the comparision between 3.x and 7.x.
    2) Infopackage in 7.x will load the data only till PSA. From PSA to data target you will need DTP. DTP will load data from PSA to data target. So you need to ensure you create a complete flow from datasource to data target and create infopackage & DTP.

  • How to generate Barcode for Storage Bins

    Hi,
    How to generate Barcode for the all the newly created storage bins in order to get scanned with the RF devices.
    Thanks and regards,
    I.Jacob Milton

    Hello Jacob,
    We generate our barcodes with the help of the PPF action. For example, our labels have the barcodes onto them and when we finish a task that requires packing/unpacking/deconsolidation we have the PPF trigger the printing of the neccesary labels.
    I direct you to the path SCM SPRO - Supply Network Collaboration - Tools - Actions (Post Processing Framework). Here you need to set the action and namely the trigger.
    All the best,
    Claudiu Maxim

  • How to Generate 997 for different trading partner with different Interchang

    How to Generate 997 for different trading partner with different InterchangIDS
    We are planning to use same working “ABC -> XYZ (Host)” 850 “ecs” file even for “EFG -> XYZ (Host)” 850 Transaction. And we have successfully implemented without any issues.
    We wanted to send 997 Acknowledgement in case of “EFG -> XYZ (Host)” 850 transaction.
    In this case also we would like to use same “ecs” file which has been used for “XYZ (Host) -> ABC”.
    After adding the 997 capabilities to Stanley I don’t see any extra capability added to “XYZ (Host)” trading partner.
    The generated 997 for Stanely EDI file doesn’t reflect the “XYZ (Host)” trading partner Interchange ID. It is getting reflected the previous 997 Transaction “XYZ (Host)” Intercahnge ID.
    We use following Interchange ID’s
    ABC = 005381447
    XYZ (Host) = 049894764
    EFZ = SWEOT30013
    XYZ (Host) = 5273851T
    The 997 which is generated has the InterchangeID as this “049894764” instead of “5273851T”
    Regards
    Ravi

    Hi Ravi,
    You have to have the two Delivery Channels under Host TP's communication capability. One host delivery channel should be used with one TP only and will have specific values to that TP.
    Go to the Exchange Protocol Parameters of Host TP (XYZ) delivery channel (which you are using in the agreement with EFZ) and provide the required values here. Revalidate and redeploy the agreements and run a test. Let us know if you still face issue.
    Regards,
    Anuj

  • How to Generate Trace Files in SQL*Plus

    Hi Friends ,
    How to Generate Trace Files in SQL*Plus ?
    i have no idea
    thanks
    raj

    What trace files would you like to generate?
    Are we talking SQL trace files?
    ALTER SESSION SET sql_trace = TRUE;This will be generated in the user_dump_dest on the server.
    show parameter dump

  • How to generate report for Service sheet - ECC 6.0

    Hi
    Can anyone let me know regarding how to generate reports for  service sheets entered
    regards
    Sanjay

    Hi,
    Get Service Entry Sheet with following T.codes:
    1.MSRV6
    2.ML84
    Regards,
    Biju K

  • How to create  webservice  for  abap  RFC

    how to create  webservice  for  abap  RFC.......................
    plz any could tel me

    I'll answer my own question...
    In SE80 you create the Function Group and something called a Virtual End Point.  These are the only items that transport forward to you QA and eventually your production system.  Everything else has to be created in SOAMANAGER on the target systems. 
    In Development in SE80, when you create the Virtual End Point, this creates a corresponding entry visible in transaction SICF.  When you are done in SOAMANAGER, it creates three more entries in SICF.  The process of transporting the Virtual End Point does NOT create any entries in SICF in QA.  Don't let this be confusing.  In QA, SOAMANAGER will create all four SICF entries.
    Also, if you try to secure the web services using the S_SERVICE object, you must actually test the web service before you can add it to any roles.  This is because the USOBHASH table is not populated for the web service until you actually run the web service for the first time.

  • How to generate Webservices.xml using tool in Sun One App Server?

    How to generate Webservices.xml using tool in Sun One App Server?

    Hi,
    The build.xml file should be in a directory from where
    you are running the asant command.
    To resolve the common.xml file not found error,
    open your build.xml and check from which location the common.xml file is incuded.
    In the sample application it is four directories above
    the directory where build.xml is located.
    You can copy the common.xml in the current directory and then change the following in your build.xml
    <!ENTITY include SYSTEM "../../../../common.xml">
    to <!ENTITY include SYSTEM "common.xml">
    Hope this helps.
    Get back in case you have more issues

  • How to generate client for GetFile service of Webcenter Content Management.

    How to generate client for GetFile service of Webcenter Content Management.
    Downloaded file : GetFile.wsdl
    <?xml version="1.0" encoding="utf-8" ?>
    - <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.stellent.com/GetFile/" targetNamespace="http://www.stellent.com/GetFile/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.stellent.com/GetFile/">
    - <s:element name="GetFileByID">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByIDResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByIDResult" type="s0:GetFileByIDResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByIDResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:element name="GetFileByName">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="revisionSelectionMethod" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="rendition" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="extraProps" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:element name="GetFileByNameResponse">
    - <s:complexType>
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetFileByNameResult" type="s0:GetFileByNameResult" />
    </s:sequence>
    </s:complexType>
    </s:element>
    - <s:complexType name="GetFileByNameResult">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="FileInfo" type="s0:FileInfo" />
    <s:element minOccurs="0" maxOccurs="1" name="downloadFile" type="s0:IdcFile" />
    <s:element minOccurs="0" maxOccurs="1" name="StatusInfo" type="s0:StatusInfo" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="FileInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="dDocName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocTitle" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAuthor" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dSecurityGroup" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocAccount" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevClassID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevisionID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dRevLabel" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsCheckedOut" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dCheckoutUser" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dCreateDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dInDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOutDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dStatus" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFlag1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dWebExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dProcessingState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dMessage" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dReleaseDate" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition1" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dRendition2" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dIndexerState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dPublishState" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dDocID" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsPrimary" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dIsWebFormat" type="s:boolean" />
    <s:element minOccurs="0" maxOccurs="1" name="dLocation" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dOriginalName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFormat" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dExtension" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="dFileSize" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="CustomDocMetaData" type="s0:IdcPropertyList" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="StatusInfo">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="statusCode" type="s:int" />
    <s:element minOccurs="0" maxOccurs="1" name="statusMessage" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcPropertyList">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="unbounded" name="property" type="s0:IdcProperty" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcProperty">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="value" type="s:string" />
    </s:sequence>
    </s:complexType>
    - <s:complexType name="IdcFile">
    - <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="fileName" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="fileContent" type="s:base64Binary" />
    </s:sequence>
    </s:complexType>
    </s:schema>
    </types>
    - <message name="GetFileByIDSoapIn">
    <part name="parameters" element="s0:GetFileByID" />
    </message>
    - <message name="GetFileByIDSoapOut">
    <part name="parameters" element="s0:GetFileByIDResponse" />
    </message>
    - <message name="GetFileByNameSoapIn">
    <part name="parameters" element="s0:GetFileByName" />
    </message>
    - <message name="GetFileByNameSoapOut">
    <part name="parameters" element="s0:GetFileByNameResponse" />
    </message>
    - <portType name="GetFileSoap">
    - <operation name="GetFileByID">
    <input message="s0:GetFileByIDSoapIn" />
    <output message="s0:GetFileByIDSoapOut" />
    </operation>
    - <operation name="GetFileByName">
    <input message="s0:GetFileByNameSoapIn" />
    <output message="s0:GetFileByNameSoapOut" />
    </operation>
    </portType>
    - <binding name="GetFileSoap" type="s0:GetFileSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <operation name="GetFileByID">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    - <operation name="GetFileByName">
    <soap:operation soapAction="http://www.stellent.com/GetFile/" style="document" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="GetFile">
    - <port name="GetFileSoap" binding="s0:GetFileSoap">
    <soap:address location="http://localhost:7101/_dav/cs/idcplg" />
    </port>
    </service>
    </definitions>

    Hi,
    I would suggest you to check the time recording functionality, see
    details in:
    http://help.sap.com/saphelp_sm70ehp1_sp26/helpdata/en/d5/299631364d4e959
    c6609ca3bc24740/content.htm
    Another possibility is configuring the Service Level Agreement, see
    details in SDN blog:
    Service Desk: SLA configuration hints
    https://weblogs.sdn.sap.com/pub/wlg/24813
    or
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/24813
    Thanks
    Regards,
    Vikram

  • Generating Java wrappers for PL/SQL Packages in JDeveloper 3.1

    I have not been successful in using JD3.1 to generate java classes for use in calling PL/SQL packages from a Java Servlet I am developing. I have followed the directions under the 'Generating Java Code for Oracle Objects and PL/SQL Packages' help topic: I display the package in the database browser window, right click on the package, select 'Generate Java', and click 'OK' on the pop-up JPublisher window that appears. The wizard clocks out for a few moments, then the JPublisher window disappears, but the java class is not added to JDeveloper's Navigation pane for the Project and Package I specified in the wizard.
    Any idea where the generated class is going to?

    should be, but isn't... JDeveloper3.1
    (build 681) default install... Is it in
    a custom package I didn't install? Or
    am I just a dumb nut?Hmm.. I thought it was in there.. JPub is a java based tool. You can invoke it as such.
    1st, use setvars.bat from your jdeveloper/bin directory.
    2nd, run java oracle.jpub.java.Main (pass it the same arguments as you would the jpub.exe)
    Here's the output from my machine here:
    D:\JDeveloper31\bin>setvars D:\JDeveloper31
    Setting JDeveloper 1.2 runtime environment to "D:\JDeveloper31"
    Setting JDK version 1.2 in "D:\JDeveloper31\java1.2"
    D:\JDeveloper31\bin>java oracle.jpub.java.Main
    JPub: Java Object Type Publisher, version 8.1.6.0.0 Production
    (and the rest of the help)
    Take Care,
    Rob
    null

  • Generate Java option for PL SQL packages

    Hi
    I recently found out that there is a 'generate java' option in the JDeveloper IDE for PLSQL packages, which creates a Java representation of the PLSQL package.
    What is the use of doing this? can anyone share tutorials that makes use of this feature

    This link may helpful
    Oracle PL/SQL Package - DB Adapter

Maybe you are looking for

  • Anyone ever use a Canon XH A1 with FCP 5.1.4? I cannot capture at present.

    I tried to start a new project with different setting for SD, and all the settings I originally had for my HD project changed, now I cannot capture anymore. It took me a while to configure all the settings for HD with the 2:3:3:3 pulldown, but now I'

  • Why is Verizon support for Backup Assistant so limited?

    Folks, I have wasted a whole day looking for a solution to this problem. Perhaps this posting will save someone from wasting their time. After over an hour on the phone with two customer support people and a wasted hour at the local Verizon corporate

  • Get layer style parameters?

    How is it possible to set and get layer style parameters? For example read out stroke size, shadow distance, etc...

  • Temporary Error Using CX_BO_TEMPORARY

    I am creating a workflow using classes rather than BO's for the first time.  I want to use a temporary error and see that the suggested way to do this is to raise exception CX_BO_TEMPORARY.  I'm not having any luck getting this to work.  I have creat

  • Can find photo tray option when printing

    I bought a HP Photosmart 6521 today, part of the 652x family.  I set it up via USB cable to my old Mac which is running 10.7 Leopard.  The printer software automatically downloaded and the printer set up like a dream.  Set-up wifi link to my Wifi net