Regarding PLSQL web services

I'm calling a plsql stored procedure on PHP. The URL looks something like
http://<servername><port>/pls/<DAD>/packagename.procedurename
I get HTTP 404 error if the procedure has a PLSQL table type parameter in it.
Any ideas why it's so? Has the mod_plsql settings got something to do with this, because this behavior is not seen on all environments?
DB version: 8.1.7.3.0

Check SICF that the service is activated.
Go to ST01, start an authorisation trace. Attempt to use the service, then look at the trace to check if it's an auth issue.
Check SM21 for any indication of an issue at that time.
The problems I've encountered have been the service not being activated, the role not having the service included with the correct hash entry as in USOBHASH, or other authorisation errors.
Finally, go to SMICM, and using one of the options there, up the trace level to 3. But if you get to that stage, you're really getting into networking type knowledge.

Similar Messages

  • Eclipelink plsql web services multiple operation

    Hi,
    In 11.1.2.2 jdev, I can generate a toplink/eclipse link plsql web services easily for one SQL (dbws).
    Can I change the web services to support multiple operations, each for different select sql?
    I've tried to changed the wsdl file to have multiple operations
    and amend eclipse link-dbws.XML to include multiple query tags.
    The web services can be run with multiple operation wsdl but the response of each operation
    (using Jdev http analyzer) return only the result of the first operaton.
    Can anyone help?
    Regards,
    Neln
    Edited by: Nelson Ng on Nov 10, 2012 8:45 PM

    Hi,
    I think you are asking for multiple select statements processed by a single TopLink DB Service Provider configuration. As far as I know its exactly one per project and service. However, as this feature is coming from EclipseLink you may want to verify it there
    Frank

  • Problem with CLOB in PLSQL Web Service.

    Hi-
    I have Oracle Package that accepts CLOB as IN parameter and another CLOB as an OUT parameter. I went thru the tutorial in how to publish a database
    PLSQL package as a web service with out any problem. I was able to publish and call successfully my PLSQL web service thru a browser and thru a simple C# application. It's been working fine until I receive an XML file which is bigger than 32766:
    java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)]
    JDeveloper version: JDeveloper 10g (10.1.2.2.0) Build 1929
    Oracle Application Server 10g
    I'm newbie in JDeveloper so any help is greatly appreciated.
    Thanks!

    well Shay,
    i've used JDev's tools to developer and to deploy the web service: the war and ear files are automatically generates you to the end of the process.
    I have included all the files java and the compiled classes, but I do not have files jar.
    But don't works: if i create only one java class with all code inside then it works fine!!
    Daniele

  • 9.0.3 plsql web service bug?

    I've been building plsql web services for several days, and everything has been fine. I've been adding new functions on the database side, and editing my web services using the JDev wizard.
    Now it's all stopped working, and I'm getting an "unexpected error" every time I try to generate the service. The "details" for the error looks like the stuff at the end of this message.
    Before this happened, I did two potentially problematic things. I was (I thought) done with my testing, so I was cleaning up. So, I removed some functions on the plsql side. And I also did "remove from IDE" for my existing web service project, so I could start building a clean version that had just what I needed. It was when creating the fresh web service in the new project that things exploded.
    As far as I can tell from the IDE, it generates the various serialization/deserialization files and the main web service class but fails before it can create the WSDL, web.xml, and deployment stuff.
    -- jim
    java.io.FileNotFoundException: /C:/Data/jdev9i/NEIEN1/Project1/src/__temp_java_wrappers/factlocal/Pk_web_service_test1.java (The system cannot find the file specified.
         void java.io.FileInputStream.open(java.lang.String)
              native code
         void java.io.FileInputStream.<init>(java.lang.String)
              FileInputStream.java:64
         java.io.InputStream oracle.ide.net.FileURLFileSystemHelper.openInputStream.java.net.URL)
              FileURLFileSystemHelper.java:415
         java.io.InputStream oracle.ide.net.URLFileSystem.openInputStream(java.net.URL)
              URLFileSystem.java:955
         void oracle.jdevimpl.webservices.generator.WrapperClassGenerator$1.run()
              WrapperClassGenerator.java:315
         void oracle.jdevimpl.webservices.util.ThreadUtil$NonThrowingRunnable.run()
              ThreadUtil.java:106
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:147
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.dialog.JEWTDialog.runDialog()
         void oracle.ide.dialogs.ProgressBar.start(java.lang.String, java.lang.String)
              ProgressBar.java:274
         void oracle.jdevimpl.webservices.generator.SPWebServiceGenerator.generate(oracle.jdevimpl.webservices.wizard.publish.SPPublishModel, oracle.jdevimpl.webservices.util.JavaXSDTypeMap)
              SPWebServiceGenerator.java:187
         void oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.wizardFinished(oracle.bali.ewt.wizard.WizardEvent)
              SPWebServicePublishWizard.java:391
         void oracle.bali.ewt.wizard.BaseWizard.processWizardEvent(oracle.bali.ewt.wizard.WizardEvent)
         void oracle.bali.ewt.wizard.BaseWizard.processEventImpl(java.awt.AWTEvent)
         void oracle.bali.ewt.LWComponent.processEvent(java.awt.AWTEvent)
         void oracle.bali.ewt.wizard.BaseWizard.doFinish()
         void oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(java.awt.event.ActionEvent)
         void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1450
         void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
              AbstractButton.java:1504
         void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
              DefaultButtonModel.java:378
         void javax.swing.DefaultButtonModel.setPressed(boolean)
              DefaultButtonModel.java:250
         void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
              BasicButtonListener.java:216
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
              Component.java:3715
         void java.awt.Component.processEvent(java.awt.AWTEvent)
              Component.java:3544
         void java.awt.Container.processEvent(java.awt.AWTEvent)
              Container.java:1164
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
              Component.java:2593
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1213
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
              Container.java:2451
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
              Container.java:2216
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
              Container.java:2125
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
              Container.java:1200
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
              Window.java:922
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
              Component.java:2497
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:339
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.Dialog.show()
              Dialog.java:380
         void java.awt.Component.show(boolean)
              Component.java:946
         void java.awt.Component.setVisible(boolean)
              Component.java:903
         boolean oracle.bali.ewt.wizard.WizardDialog.runDialog()
         boolean oracle.ide.wizard.TitledWizardDialog.runDialog()
              TitledWizardDialog.java:147
         boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublishWizard.runWizard()
              SPWebServicePublishWizard.java:404
         boolean oracle.jdevimpl.webservices.wizard.SPWebServicePublish.invoke(oracle.ide.addin.Context, java.lang.String[])
              SPWebServicePublish.java:221
         void oracle.ide.WizardManager$1.run()
              WizardManager.java:450
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:154
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

    Could be. Here's what the console has on it. Of course, contrary to the message, it is an Oracle database. Good luck!
    Invoking JPublisher with command line:
    -user=w19572/w19572
    -driver=oracle.jdbc.driver.OracleDriver
    -url=jdbc:oracle:thin:@localhost:1521:HUDSOJ
    -numbertypes=objectjdbc
    -lobtypes=jdbc
    -usertypes=oracle
    -builtintypes=jdbc
    -case=mixed
    -encoding=Cp1252
    -methods=named
    -plsqlmap=true
    -transitive=true
    -omit_schema_names
    -dir=C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers
    -package=factlocal
    -input=C:\TEMP\input59112.jpub
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    _test2.sqlj:43.5-44.17: Warning: You are using an Oracle JDBC driver, but connec
    ting to an non-Oracle database. SQLJ will perform JDBC-generic SQL checking.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:43.5-44.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_NAME. Ther
    e is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:53.5-54.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC. There
    is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:63.5-64.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SICLIST. T
    here is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:73.5-74.17: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_SIC_TABLE.
    There is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:83.5-84.15: Error: Not found: PKWEB_SERVICE_TEST2.FID_TO_WHEREDATA.
    There is no stored procedure or function of this name.
    C:\Data\jdev9i\NEIEN1\Project1\src\__temp_java_wrappers\factlocal\Pk_web_service
    test2.sqlj:94.5-96.21: Error: Not found: PKWEB_SERVICE_TEST2.UPDATE_NAME. Ther
    e is no stored procedure or function of this name.
    Total 6 errors and 1 warning.

  • Develop PLSQL web services using JDeveloper.

    Dear Sir,
    1. Must we use OC4J to generate PLSQL webservices? or we can use any other J2EE compliant app server?
    2. Does it mean in Oracle environment, we can only use JAVA and not other language to wrap PLSQL stored procedures to create PLSQL web services?
    Please advise.
    Thank you.

    You don't need OC4J - you can use JDeveloper to generate Web services from PL/SQL
    You can manuall wrap PL/SQL into web services with any language - however JDeveloper uses Java to do this without the need for you to code anything.

  • Can use PLSQL to develop PLSQL web services?

    Hi,
    I know we can use JDeveloper to create PLSQL web services.
    How about if we want to develop plsql web services using PLSQL itself, is that possible?
    Please advise.
    Thank you.

    I found the article on how to call web services from within database.
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html?_template=/ocom/technology/content/print
    The example is for oracle9iR2.
    It's looks like it's quite a bit of work compare to use java to call web services. I wonder with Oracle10g database, is there any improvement that will simply the steps? Would appreciate some advice as i don't have oracle10g environment in my place.
    Thank you.

  • Plsql web services from xform

    hi ...
    I've just read on the internet, that in oracle database 10g, it'll be
    posible to expose plsql packages/procedures as web-services, directly
    from the database, and without any help from the applicacion server.
    Is that true?
    When is gonna be available oracle database 10g???
    Is there gonna be a linux version, free of charge for
    development-purposes? (just as with 9i)
    Do u know anything about oracle's xforms implementation? ... I mean,
    when are gonna be released the "real" products ...I hope that besides
    the IE plugin, there'll be other options from oracle. And I suppose that
    oracle xforms implementation is gonna be compatible with oracle plsql
    exposed as database web services , don't they?
    Thanks in advance.
    salu2
    dario estepario ...

    For questions about Oracle Database 10g, please visit the Database forums here:
    Forums Home � Oracle Technology Network (OTN) � Products � Database
    With the Wireless Client (i.e. the "IE plugin"), you will be able to call any web service. We are currently preparing an OTN sample to demonstrate this capability.
    Oracle also has developed server-side support for XForms in the latest version of Oracle Application Server Wireless. You can find more information in the documentation here:
    http://download-west.oracle.com/docs/cd/B10464_01/wireless.904/b10948/nuxhtml.htm#1032529
    Regards,
    Phil

  • Queries regarding creating Web Services in Oracle EBS 11i[Workaround found]

    Hi,
    We have an E-Business Suite 11i installation(11.5.10.2). In our implementation we are using some of the public APIs to insert & update data in EBS tables. Earlier this was done by calling the required PL/SQL procedures through dblinks.
    Now, we need to do the same by using Web Services. That is we need a Web Service which can be invoked from a different application(SAP) and the Web Service in turn will call the APIs.
    I am new to Web Services/SOA and as far as I could understand from reading the documentation, we need the following:
    1. Install Oracle 10g Application Server with BPEL Process Manager ONLY(Oracle AS Adapter will be installed as part of BPEL PM. The Oracle AS Adapter will connect 10gAS to EBS)
    2. JDeveloper to create and deploy the BPEL process.
    I have a few questions here:
    1. Are the above two points the only prerequisites for what I want to achieve? Do I need to install anything else?
    2. How do I expose the created Web Service? I mean how will the 3rd party application invoke this Web Service?
    Answers and/or links to helpful documents awaited.
    Regards,
    -Sujoy
    Found an alternate and more cost-effective solution. Turns out that the SAP PI/XI engine can use JDBC to connect to the Oracle DB. SAP PI/XI will host the Web Service and will internally access the API through a JDBC connection.
    Edited by: Sujoy on Feb 3, 2011 7:41 PM
    Edited by: Sujoy on May 16, 2012 6:49 PM

    Hi Helios,
    I had checked the note that you are referring to before posting here. It did provide me with a start but otherwise it wasn't a great help (also some of the links are broken) . Since I am quite new to this...I am not sure whether I am proceeding in the right direction. An example/tutorial is what would be pretty useful.
    Thanks anyway!
    -Regards,
    Sujoy

  • Question regarding a web service functionality in JDeveloper

    Hi guys,
    I used JDeveloper to create a very simple Celsius to Fahrenheit converter web service. One Java class, one method, taking in a float as an argument and returns a float. I created the web service. When I deployed it to a remote OC4J, I got a com.mysql.jdbc driver cannot be found error...which threw me off. As it turns out in the Connections tab, I had a node created under Databases for accessing MySQL that is installed on my machine. So it seems JDeveloper was trying to transfer those settings as well to the remote OC4J...when I deleted that node, the problem went away and the web service got deployed ok. Why is that? Is there any way to tell JDeveloper to ignore that and deploy the Web Service?
    Thanks in advance.

    Hi,
    In the Preferences dialog's Deployment tab, the 'Bundle Default data-sources.xml During Deplyment' checkbox is checked by default. This file will define the data source for each defined database connection. Can you try unchecking this and try deploying the web service ?
    Havent got a MySQL db connection myself to try reproducing, Will seearound if I get access to one to reproduce inthe meanwhile..
    Regards,
    Sunil..

  • Query regarding calling web services in Visual Composer

    Hi Experts,
       I am thankful for your help for posting this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e017128
    I am following the same steps but I am unable to find the system in visual composer after creating it in portal.
    I got another document also related to it...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ceea45f3-0c01-0010-049c-c2b001f590fb
    But in this document when I am giving the WSDL URL name its not accepting. It is showing as invalid.So I am unable to proceed forward. Please help soon...
    Regards
    Nutan

    Hi Nutan,
    Try to define the web service system directly in the portal. Through VC you can encounter problems.
    Regards,
    Natty

  • Deploy PLSQL web services on weblogic for 11g-URI not working

    Dear all,
    Scenario:
    Using JDeveloper I deployed a web service from a PLSQL package to a war file. After that I deployed that war file on a weblogic (10.3.5) server manually not by using JDeveloper.
    The deployment of the admin on the admin server is successfully done. While testing the application on the server itself again successful.
    Problem:
    But having an issue while trying to do the same using the URL giving in the application server.
    404 -Not Found error is coming up.
    Solutions tried so far:
    Tried putting a html file to the created application in order to get the  job done- Did not work out
    Please I have no idea how to proceed. Quick responses are much appreciated.
    Thank you

    Hi. The [Service]-mapping.xml file is a standard "JAX-RPC mapping file" according the JSR-109 spec and WebLogic 9.2 doc ([1],[2]). That's the file that references the class. Here's a fragment:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Service/types</namespaceURI>
    </package-mapping>
    <package-mapping>
    <package-type>co.com.acme.services</package-type>
    <namespaceURI>urn:Services/wsdl</namespaceURI>
    </package-mapping>
    <java-xml-type-mapping>
    <java-type>co.com.acme.services.ServiceSEI_serviceOperation_RequestStruct</java-type>
    <root-type-qname xmlns:typeNS="urn:Service/types">typeNS:serviceOperation</root-type-qname>
    <qname-scope>complexType</qname-scope>
    <variable-mapping>
    <java-variable-name>String_1</java-variable-name>
    <xml-element-name>String_1</xml-element-name>
    </variable-mapping>
    </java-xml-type-mapping>
    I'll take a look at the ant task.
    Thank you very much.
    [1]http://download.oracle.com/otndocs/jcp/websvcs-1.0-fr-spec-oth-JSpec/
    [2]http://otndnld.oracle.co.jp/document/products/wls/docs92/webserv/jsr109.html

  • Why so many broken links under otn regarding db web services????

    on this page
    http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
    these are broken:
    1. Oralce 9i database web services
    http://www.oracle.com/technology/tech/webservices/htdocs/dbwebservices/Database_Web_Services.pdf
    2. Basic Web service Call-out using PL/SQL UTL_HTTP
    http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html
    3. Publish PLSQL as a web service using JDEveloper
    http://www.oracle.com/technology/tech/webservices/htdocs/series/plsql/index.html
    4. Use Oracle 9iAQ with JMS for Web Services
    http://www.oracle.com/technology/tech/webservices/htdocs/series/jms/
    (so EVERY Tutorial results in a 404)

    two of the links at the bottom of this page are broken:
    http://www.oracle.com/technology/products/jdev/howtos/10g/WS_LoadJava/LoadJava_HowTo.html

  • Can someone please offer guidance regarding xml web service?

    Post Author: LeeCUK
    CA Forum: Xcelsius and Live Office
    Hello, I am attempting to write a dashboard that will retrieve data from a database using the GetXML, I have tried many other methods but this seems the only one I can get working.
    The issue I have is that in my code it returns only one selecatble parameter and stores the whole entires within it.
    Below is an example of the code.
    I send from the dashboard the Xcelsius_Value and it returns the xml schema as expected with fieldnames but within one selectable parameter and does not allow splitting into different cells.
    I hope someone can help.Option Strict OffImports System.Data.OleDbImports System.DataImports System.Web.ServicesImports Oracle.DataAccessImports Oracle.DataAccess.ClientImports System.XmlImports System.Text
    <WebService(Namespace:="http://microsoft.com/webservices/")> Public Class Service1    Inherits System.Web.Services.WebService
    #Region " Web Services Designer Generated Code "    'Generated code not shown.#End Region
    #Region "Public Funcation"
        Public strSQL As String    Private configurationAppSettings As System.Configuration.AppSettingsReader = New System.Configuration.AppSettingsReader    Private oracomGeneric As New Oracle.DataAccess.Client.OracleCommand    Private oraconOds As New Oracle.DataAccess.Client.OracleConnection    Private adptGeneric As New Oracle.DataAccess.Client.OracleDataAdapter    Public dtsGeneric As New System.Data.DataSet    Public TableName As String
    #End Region
        <WebMethod()> Public Function DatabaseXML(ByVal Xcelsius_Value As String) As String
            Try
                oracomGeneric.Connection = oraconOds            oracomGeneric.FetchSize = CType(65536, Long)
                oraconOds.ConnectionString = CType(configurationAppSettings.GetValue("oracledatabase.ConnectionString", GetType(System.String)), String)
                adptGeneric.DeleteCommand = oracomGeneric            adptGeneric.InsertCommand = oracomGeneric            adptGeneric.SelectCommand = oracomGeneric
                dtsGeneric.Clear()
                oracomGeneric.Connection() = oraconOds
                TableName = "table1"
                strSQL = " SELECT   field1, field2, " & _         "ROUND (SUM (sumfield3)) AS value1, " & _         "ROUND (SUM (sumfield4)) AS value2, " & _         "ROUND (SUM (sumfield5)) AS value3, " & _         "ROUND (SUM (sumfield6)) AS value4 " & _            "FROM " & TableName
                oraconOds.Open()            oracomGeneric.CommandText = strSQL
                adptGeneric.Fill(dtsGeneric)            oraconOds.Close()
                DatabaseXML = dtsGeneric.GetXml()
            Catch Ex As Exception            Throw Ex        End Try    End Function
    End Class

    with as2 there is no good way:
    trace(this.firstChild.childNodes[1].childNodes[4].attributes['ID']);
    trace(this.firstChild.childNodes[1].childNodes[4].attributes['CssClass']);
    etc

  • Regarding multiple web service

    Hi,
    I am working on web services in EJB.
    for securing the web service, we use jboss-wsse security.
    Can i have multiple web services with few web services being secured and the others in-secured?
    Thanks in advance.

    Friends,
    Can you please help me out with this logic? Thanks!

  • PLSQL web service returning multiple records

    Hello,
    I am trying to create a web service using oracle 11g which should be able to return multiple records.
    Based on hints and code samples found on the internet here is my code :
    CREATE OR REPLACE TYPE test_rec is OBJECT (
        s_nume_adre                    NUMBER ,
        c_eta_civi                     VARCHAR2(4 BYTE),
        l_nom1_comp                    VARCHAR2(40 BYTE),
        l_nom2_comp                    VARCHAR2(40 BYTE),
        l_nom3_comp                    VARCHAR2(40 BYTE),
        l_pren_comp                    VARCHAR2(30 BYTE),
        d_date_nais                    DATE);
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec;
    CREATE OR REPLACE PACKAGE test_pkg AS
      function get_rows(snume_adre in number) return test_array;
    END;
    CREATE OR REPLACE PACKAGE BODY test_pkg AS
      function get_rows(snume_adre in number) return test_array is
        v_rtn   test_array := test_array(null);
        v_first boolean := true;
        cursor c_get_rows(snume_adre in number) is
          SELECT a.s_nume_adre,
                 nvl(a.c_eta_civi, '') c_eta_civi,
                 nvl(a.l_nom1_comp, '') l_nom1_comp,
                 nvl(a.l_nom2_comp, '') l_nom2_comp,
                 nvl(a.l_nom3_comp, '') l_nom3_comp,
                 nvl(a.l_pren_comp, '') l_pren_comp,
                 nvl(a.d_date_nais, to_date('01.01.1900', 'dd.mm.yyyy')) d_date_nais
        FROM bro.z45 a
      where a.s_nume_adre = snume_adre or snume_adre is null;
      begin
        for rec in c_get_rows(snume_adre) loop
          if v_first then
            v_first := false;
          else
            v_rtn.extend;
          end if;
        v_rtn(v_rtn.last) := test_rec(rec.s_nume_adre, rec.c_eta_civi, rec.l_nom1_comp, rec.l_nom2_comp,
                                    rec.l_nom3_comp, rec.l_pren_comp, rec.d_date_nais);
        end loop;  
        return v_rtn;
      end;
    END;
    --select * from table (test_pkg.get_rows(null));
    I am able to retrieve the data using the select.
    However when I try to access its wsdl I get an error :
    <soap:Envelope>
       <soap:Body>
          <soap:Fault>
             <faultcode>soap:Client</faultcode>
             <faultstring>Error processing input</faultstring>
             <detail>
                <OracleErrors></OracleErrors>
             </detail>
          </soap:Fault>
       </soap:Body>
    </soap:Envelope>
    If I comment the function call in the package declaration I get a "correct" wsdl :
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/TEST/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="GET_ROWSInput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              </xsd:complexType>
          </xsd:element>
       </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
      <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
           <soap:address location="http://server.domain.ch:8080/orawsv/TEST/TEST_PKG/GET_ROWS"/>
         </port>
      </service>
    </definitions>
    Any hint as how to create and access pl sql web service returning multiple rows?
    I don't use java and don't have access to tools like JDeveloper.
    Thanks!

    The actual issue is that collection types are not supported for return parameters.
    The solution is to wrap the collection into another object.
    Here's a working example based on your settings :
    CREATE OR REPLACE TYPE test_rec is OBJECT ( 
      empno  number(4)
    , ename  varchar2(10)
    , hiredate date
    CREATE OR REPLACE TYPE test_array AS TABLE OF test_rec; 
    CREATE OR REPLACE TYPE test_array_wrapper is OBJECT ( arr test_array );
    CREATE OR REPLACE PACKAGE test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper; 
    END; 
    CREATE OR REPLACE PACKAGE BODY test_pkg AS 
      function get_rows(p_deptno in number) return test_array_wrapper is 
        results  test_array; 
      begin 
        select test_rec(empno, ename, hiredate)
        bulk collect into results
        from scott.emp
        where deptno = p_deptno;    
        return test_array_wrapper(results); 
      end; 
    END; 
    The wsdl is then generated correctly :
    SQL> select httpuritype('http://DEV:dev@localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS?wsdl').getxml() from dual;
    HTTPURITYPE('HTTP://DEV:DEV@LOCALHOST:8080/ORAWSV/DEV/TEST_PKG/GET_ROWS?WSDL').GETXML()
    <definitions name="GET_ROWS" targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_
    ROWS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
      <types>
        <xsd:schema targetNamespace="http://xmlns.oracle.com/orawsv/DEV/TEST_PKG/GET_ROWS" elementFormDefault="qualified">
          <xsd:element name="CTEST_ARRAY_WRAPPER-GET_ROWSInput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="P_DEPTNO-NUMBER-IN" type="xsd:double"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:element name="GET_ROWSOutput">
            <xsd:complexType>
              <xsd:sequence>
                <xsd:element name="RETURN" type="tns:TEST_ARRAY_WRAPPERType"/>
              </xsd:sequence>
            </xsd:complexType>
          </xsd:element>
          <xsd:complexType name="TEST_ARRAY_WRAPPERType">
            <xsd:sequence>
              <xsd:element name="TEST_ARRAY_WRAPPER">
                <xsd:complexType>
                  <xsd:sequence>
                    <xsd:element name="ARR">
                      <xsd:complexType>
                        <xsd:sequence>
                          <xsd:element name="TEST_REC" type="tns:TEST_REC_IntType" maxOccurs="unbounded" minOccurs="0"/>
                        </xsd:sequence>
                      </xsd:complexType>
                    </xsd:element>
                  </xsd:sequence>
                </xsd:complexType>
              </xsd:element>
            </xsd:sequence>
          </xsd:complexType>
          <xsd:complexType name="TEST_REC_IntType">
            <xsd:sequence>
              <xsd:element name="EMPNO" type="xsd:double"/>
              <xsd:element name="ENAME">
                <xsd:simpleType>
                  <xsd:restriction base="xsd:string">
                    <xsd:maxLength value="10"/>
                  </xsd:restriction>
                </xsd:simpleType>
              </xsd:element>
              <xsd:element name="HIREDATE" type="xsd:date"/>
            </xsd:sequence>
          </xsd:complexType>
        </xsd:schema>
      </types>
      <message name="GET_ROWSInputMessage">
        <part name="parameters" element="tns:CTEST_ARRAY_WRAPPER-GET_ROWSInput"/>
      </message>
      <message name="GET_ROWSOutputMessage">
        <part name="parameters" element="tns:GET_ROWSOutput"/>
      </message>
      <portType name="GET_ROWSPortType">
        <operation name="GET_ROWS">
          <input message="tns:GET_ROWSInputMessage"/>
          <output message="tns:GET_ROWSOutputMessage"/>
        </operation>
      </portType>
      <binding name="GET_ROWSBinding" type="tns:GET_ROWSPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="GET_ROWS">
          <soap:operation soapAction="GET_ROWS"/>
          <input>
            <soap:body parts="parameters" use="literal"/>
          </input>
          <output>
            <soap:body parts="parameters" use="literal"/>
          </output>
        </operation>
      </binding>
      <service name="GET_ROWSService">
        <documentation>Oracle Web Service</documentation>
        <port name="GET_ROWSPort" binding="tns:GET_ROWSBinding">
          <soap:address location="http://localhost:8080/orawsv/DEV/TEST_PKG/GET_ROWS"/>
        </port>
      </service>
    </definitions>

Maybe you are looking for

  • Is there a way to run dos commands on onther system?

    Hi I have connected to a port of another system where windows is the operating system. So can I run dos commands on the other system through that network connection from my computer?

  • Global Error Handling in Flex

    Hello All, I want to know if there is away to do Global Error Handling in Flex so that in case of any error, the pop-up (showing the exception stack trace) on the client machine should not come, instead I would be able to handle the exception in a mo

  • Hierarchy selection does NOT show upper level

    Hi I am using BI 7.0 with SP 20 with WAD (No Bex Anl). I implemented Hierarchy of 0ORGUNIT and when I select a node in the middle of the Hier the reports starts with the Org from that point and it does not show the nodes above. How can I make it show

  • Airport Express ethernet port question

    I have an airport extreme base station already, but it struggles to reach my home office from the living room (where the cable connection comes into the house). Also, my wife's PC doesn't do 802.11n, so I have to run the wireless network in backwards

  • Problem when transform a smartform to pdf

    Hi all:    When I run the program to dispaly pdf transformed from smartform,  the IE explorer is busy dead, have you ever met the same problem? thank you very much