SQL injections in web services

Hi,
I am new to SQL Injections, i am going to work with SQL injections in web services.
could anyone please help me for any documentation..
thanks in advance..
Thanks & Regards,
Raju

Hello Raju,
Please go through the below link:
http://www.testingexperience.com/testingexperience04_08.pdf
Hope the information is useful
Regards,
Swetha

Similar Messages

  • Publish PL/SQL procedures as web services?

    I am investigating JDeveloper for possible use in a project we are starting. We already have existing PL/SQL Procedures that we want to use and I have done a prototype using XSQL and OWA in JDeveloper 9i Candidate version. I am trying to figure out what the changes and improvements are in the most recent version of JDeveloper. On this page http://technet.oracle.com/products/jdev/htdocs/jdev903_fo.html#web_services it says there is broader support for Publishing PL/SQL procedures as web services. Is there any more information out there on this? What exactly has been improved and what are the current limitations. I did find some documentation in the Oracle9i Application Server Developers Guide on the limitations (release 2 (9.0.2) http://download-west.oracle.com/docs/cd/A97329_01/web.902/a95453/plsqlservices.htm#1030066 Do I assume this is the same limitations for JDeveloper since the Oracle9iAS included with it? I am getting confused by all this documentation.
    Thanks for any help
    Natalie

    Natalie,
    Please take a look at the tutorials on
    http://otn.oracle.com/tech/webservices/database.html
    Also, read the Web Service discussion forum where you will find some useful hints. Using 9.2.x DB, OC4J 9.0.4 and JDev9.0.3.1 it is really funny to start publishing PL/SQL as Web Service.
    Flemming

  • Missing Technet Video - Publish PL/SQL as a Web Service

    When I try to view the video for "Publish PL/SQL as a Web Service" (http://www.oracle.com/technology/tech/webservices/htdocs/series/plsql/index.html) I get an invalid URL message from Real Player.
    Is this video no longer available?

    Sorry; that content is no longer available. For a more recent document we suggest this URL:
    http://www.oracle.com/technology/pub/articles/price_10gws.html
    Cheers, OTN

  • Cannot run "Publish PL/SQL as a Web Service" example

    Hello!
    I have Oracle 8.1.7 AS and 9i JDeveloper running on Windows 2000. I'm trying to run the "Publish PL/SQL as a Web Service" example, but am encountering errors I believe are related to my hostname/IP address/DNS entry. Of course, I could be wrong.
    Here is some information:
    ==========================================================
    1. I was able to successfully initialize Containers for J2EE. However, when I was trying to deploy the PL/SQL example, it inserted this information:
    C:\oracle\jdev9i\j2ee\home>C:\oracle\jdev9i\jdk\bin\java.exe -jar C:\oracle\jdev9i\j2ee\home\oc4j.jar
    Node started with id=-1753996682
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Error updating application PLSQL-PLSQL-WS: Error loading web-app 'WebServices' at
    C:\oracle\jdev9i\j2ee\home\applications\PLSQL-PLSQL-WS\WebServices:
    resource-ref 'jdbc/testCoreDS' referenced from resource-ref-mapping not found
    ==========================================================
    2. I went through the instructions from the website, and when I began the deployment process it generated this information:
    ---- Deployment started. ---- Jan 17, 2003 1:20:27 PM
    Wrote WAR file to C:\oracle\jdev9i\jdev\plsql-webexample\Project1\WebSe[i]Long postings are being truncated to ~1 kB at this time.

    Couple of suggestions despite your post being cut off with what might be useful information (please post the rest if these suggestions don't help):
    1. There are some bugs with Personal Oracle and Web services, notably Oracle9i Personal that may apply also to 8.1.7. If you have a MetaLink account it is logged as bug 2591731.
    2. As you are using your local machine, make sure your proxies are turned off (Tools-Preferences Web Browser/Proxy)
    3. I've noticed problems when folks use a JDK with a version lower than 1.3.1_02 to run OC4J - it is certified only with 1.3.1_02 or higher. If you are using the built-in JDeveloper JDK to start up OC4J (e.g. <Jdev_home>\jdk\bin\java.exe) you should be fine. But if you are just typing in java -jar oc4j.jar it is worth checking. Check the your default JDK version by typing in: java -version. If it is lower, then download a new version from http://java.sun.com/j2se/1.3/download.html.
    4. For level setting it is best to be using build 1035 of JDeveloper, the current production release and either the OC4J embedded in it or the stand-alone version here on OTN.
    Hope these point in the right direction.
    Mike.

  • Publish SQL as a WEB Service from Database (10.2) using OC4J (without JDev)

    Hi,
    I have been successfull in Publishing Web Service using SQL (DML) using :
    1. Oracle Express Db 10.2
    2. OC4J 10.1.3
    Any Help Will be appreciated........ :)
    NOTE: Oracle Documentation on Application Server SUCKS (Too Many Errors prints and Wrong Information in the Web Servises area including JAR file paths)
    I can only use One parameter in the QUERY and a Second Parameter gives an Error.
    java -jar ${ORACLE_HOME}/webservices/lib/wsa.jar -sqlAssemble -appName query -dataSource jdbc/OracleCoreDS -sqlstatement "updtProdTyp=update PRODUCT_TYPES SET NAME = :{newname VARCHAR} where NAME = :{oldname VARCHAR}" -dbConnection jdbc:oracle:thin:@localhost:1521:XE -dbUser store/store
    INFO: [WSADBPlugin] endpoint setInterface: oracle.generated.SqlStmts, setImplementation: oracle.generated.SqlStmtsUser
    INFO: java oracle.jpub.Doit -user=store/store -url=jdbc:oracle:thin:@localhost:1521:XE -dir=./src/server -codegen=jdbc -style=oracle/j2ee/ws/tools/wsa/db/webservices-common -style=oracle/j2ee/ws/tools/wsa/db/webservices10 -style=oracle/j2ee/ws/tools/wsa/db/webservices10literal -outarguments=return -datasource=jdbc/OracleCoreDS -sqlstatement.updtProdTyp=update PRODUCT_TYPES SET NAME = :{newname VARCHAR} where NAME = :{oldname VARCHAR} -sqlstatement.class=SqlStmts -package=oracle.generated -plsqlfile=SqlStmts_plsql_wrapper.sql,SqlStmts_plsql_dropper.sql -plsqlpackage=SqlStmts_plsql_wrapper -connscope=method -sqlj -d=./war/WEB-INF/classes -C-g
    INFO: SqlStmtsBase
    /usr/lib/oracle/xe/app/OC4J/D_My_Apps/src/server/oracle/generated/SqlStmtsUser.java:8: oracle.generated.SqlStmtsUser is not abstract and does not override abstract method updtProdTypiSS(java.lang.String[],java.lang.String[]) in oracle.generated.SqlStmts
    public class SqlStmtsUser extends SqlStmtsBase implements SqlStmts, java.rmi.Remote
    ^
    /usr/lib/oracle/xe/app/OC4J/D_My_Apps/src/server/oracle/generated/SqlStmtsUser.java:22: cannot find symbol
    symbol : method _getProdTypBeans(java.lang.String,java.sql.Connection)
    location: class oracle.generated.SqlStmtsBase
    __jRt_0 = super._getProdTypBeans(__jRt_2, __onnScopeMethod);
    /usr/lib/oracle/xe/app/OC4J/D_My_Apps/src/server/oracle/generated/SqlStmtsUser.java:85: cannot find symbol
    symbol : method _getProdTyp(java.lang.String,java.sql.Connection)
    location: class oracle.generated.SqlStmtsBase
    __jRt_0 = super._getProdTyp(__jRt_8, __onnScopeMethod);
    ^
    /usr/lib/oracle/xe/app/OC4J/D_My_Apps/src/server/oracle/generated/SqlStmtsUser.java:128: _updtProdTyp(java.lang.String,java.lang.String,java.sql.Connection) in oracle.generated.SqlStmtsBase cannot be applied to (java.lang.String,java.sql.Connection)
    __jRt_0 = super._updtProdTyp(__jRt_10, __onnScopeMethod);
    ^
    /usr/lib/oracle/xe/app/OC4J/D_My_Apps/src/server/oracle/generated/SqlStmtsUser.java:145: cannot find symbol
    symbol : method _updtProdTypiS(java.lang.String[],java.sql.Connection)
    location: class oracle.generated.SqlStmtsBase
    __jRt_0 = super._updtProdTypiS(__jRt_12, __onnScopeMethod);
    ^
    6 errors
    INFO: NEW DBWS runtimeProperties set databaseJndiName: jdbc/OracleCoreDS
    INFO: User classpath is :/usr/lib/oracle/xe/app/OC4J/D_My_Apps/./war/WEB-INF/classes
    INFO: Checking for JSR-181 Annotations capabilities in current JVM...
    INFO: Found JSR-181 Annotations capabilities. Checking for JSR-181 Annotations Processor...
    INFO: Found JSR-181 Annotations processor. JSR-181 Annotations (if any) will be processed
    INFO: No JSR-181 annotations found in specified class oracle.generated.SqlStmtsUser
    FINE: ValueTypeModeler.log [creating model: query]
    FINE: ValueTypeModeler.log [creating port: oracle.generated.SqlStmts]
    FINE: MethodModeler.log [creating operation: updtProdTyp]
    FINE: MethodModeler.log [creating operation: updtProdTypiSS]
    WARNING: Problem validating implementation class. Access modifier problem detected for the implementation class oracle.generated.SqlStmtsUser: int updtProdTyp( java.lang.String, java.lang.String ) is defined with access modifiers that make it an unsuitable implementation of the interface method: The method cannot be 'abstract'.
    Thu Mar 30 14:17:34
    Thanks
    ====================================

    I don't have the problem with the second arugument, using essentially the same command as yours. Could you make sure you clean up the following subdirectories and retry:
    ear query.ear src war
    My guess is that the leftover subdirectories in your previous run are playing game with you. You can simplify leftover management by specifying -output setting.

  • Problem  pl/sql function as web service in OAS as omni portlet

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

    Dear All,
    I try to use pl/sql function from package as web service in OAS as omni portlet. This function returning, for example, the result of searching as number of rows (Id, name).
    As I have understood, OAS omni portlets understands only J2EE 1.3(oracle) web service (which is chosen on the first step of the making the service from PL/SQL). Since in the event of choice J2EE 1.3(JAX-PRC) OAS can not analyse the answer SOAP on elements.
    I try return types:
    1. xml. Kind of <rowset><row><id>1</id><name>John</name></row><rowset>.
    2. ref cursor – can`t use
    3. varray of records – can`t use.
    At the best, answer recognizes as line, rather then as array element.
    Thank you in advance for answer

  • URGENT = Publish PL/SQL as a WEB Service - JAVA ERROR on config.........

    I am getting this error on WEB SERVICE Creation :
    =========================================
    MY Configuration :
    ORACLE VERSION = 10g Express Edition Release 10.2.0.1.0
    OC4J VERSION = oc4j_extended_101300.zip
    ORACLE DRIVER = ojdbc14.jar
    JAVA_HOME=/opt/jdk1.5.0_06
    J2EE_HOME=/usr/lib/oracle/xe/app/OC4J/j2ee/home
    ORACLE_HOME=/usr/lib/oracle/xe/app/OC4J
    CLASSPATH=.:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/j2ee/home/oc4j.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/wsdl.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/soap.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/xmlparserv2.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/activation.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/mail.jar:/opt/jdk1.5.0_06/lib/tools.jar:/opt/jdk1.5.0_06/jre/lib/rt.jar
    DATA-SOURCE.XML.........................
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-sources>
    <connection-pool name="ConnectionPool1">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    url="jdbc:oracle:thin:@localhost:1521:XE"
    user="store" password="store"/>
    </connection-pool>
    <managed-data-source connection-pool-name="ConnectionPool1"
    jndi-name="jdbc/OracleDS" name="OracleDS"/>
    </data-sources>
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]>
    =========================================
    MY config.xml
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/OracleDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="store"
    password="store"
    url="jdbc:oracle:thin:@local:1521/XE"
    />
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]> vbdba : ../D_My_Apps ]> cat config.xml
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@localhost:1521:XE</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    Fri Mar 24 11:47:38
    vbdba : ../D_My_Apps ]>
    =========================================
    WEB SERVICE Creation
    vbdba : ../xe ]> java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    STORE.DBFUNC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Fri Mar 24 10:27:58
    vbdba : ../xe ]>
    =========================================

    Oracle AS 10.1.3
    Oracle DB 10.1.0.5
    I found below error,when i create ear file
    # java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    Please wait ...
    VCMGR.W4_XMLSVC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    config file
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./w4_xmlsvc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/w4svcplsql</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>user/password</schema>
    <db-url>jdbc:oracle:thin:@databasehost:1521:DB</db-url>
    <prefix>w4.xmlsvc.order</prefix>
    <db-pkg-name>w4_xmlsvc</db-pkg-name>
    </jar-generation>
    <uri>/w4_xmlsvc</uri>
    <database-JNDI-name>jdbc/OracleDSw4SAP</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:4100</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    So Goto Oracle database server
    and create sqlj
    #sqlplus / as sysdba @sqljutl.sql
    and recreate ear file again
    Message was edited by:
    HunterX (Surachart Opun)

  • PL/SQL Packages as Web Services - plsqlAssemble Task - Code Generation

    Hi,
    I was able to generate Web Services for some of the PL/SQL packages using plsqlAssemble Task. (10.1.3 .1.1)
    It produces a certain number of java classes for that.
    Then I had to modify some of the generated code.
    What is the best approach on modifying the generated code.
    My concern is that I will have to rebuild/generate the code again in a future because the code generated may be not supported in future version of OAS, which was the case with the previous version ( 9.0.4 ) and I will have to maintain /support all manual changes.
    Even when I don't need to modify the generated code what is the chances that it will not be supported for the future version of OAS and we need constantly sink it up with the current versions.
    Please advise.
    Thanks,
    Michael Hitrik

    Ronald,
    Thanks for you advise.
    I don't think that it will be a good solution .
    First, I would like to know if I have to re-generate the code. If this is a case then plsqlAssemble would be a big problem as a solution. Our clients would need to do this as well.
    What I am actually doing is the following:
    I am trying to secure PL/SQL Web Services with SOAP Headers for passing authentication data such as user and passw for the DataSource.
    It works great but I had to extend some of code generated Java classes which implements ServiceLifecycle to get SOAPMessageContext object.
    Thanks,
    Michael Hitrik

  • Invoke sql 2005 native web services

    Dear all,
    I am trying to  invoke from sap ecc 6.0 a native web services written in sql 2005.
    For instance the web service path is something like http://10.1.0.197:8080/EmployeeXml?wsdl .
    The web method is GetEmployeesXml
    If I try to consume via custom .net application, it works but when I try to do the same in sap
    following this guide
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/802edea6-274e-2e10-fd95-e5e1a8bc0892?QuickLink=index&overridelayout=true
    I get the error http not supported.
    The differnce between an asp.net web services (where everythings works) and this one is regarding the autentication.
    For the first one it is possible to specify anonymous login for second it is necessary to specify the username and password.
    I kindly ask you to give any help to solve this issue, or is there a manual for sm59?
    Thank you very much

    Try with the following:
    <xsd:complexType name="SqlResultStream">
       <xsd:sequence>
          <xsd:element name="SqlRowSet" type="sqlsoaptypes:SqlRowSet" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="SqlXml" type="sqlsoaptypes:SqlXml" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="SqlMessage" type="sqlmessage:SqlMessage" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="SqlRowCount" type="sqlrowcount:SqlRowCount" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="SqlResultCode" type="sqlsoaptypes:SqlResultCode" minOccurs="0" maxOccurs="unbounded"/>
          <xsd:element name="SqlTransaction" type="sqltransaction:SqlTransaction" minOccurs="0" maxOccurs="unbounded"/>
       </xsd:sequence>
    </xsd:complexType>
    You also have to know that this is not a perfect equivalent, as no tag can replace the xsd:choice. The xsd:choice means that only one of the elements can occur, while in xsd:sequence any of the elements can occur. But you should be able to achieve the same with a properly built mapping: create only one of the fields, and leave the rest empty - this is possible thanks to minOccurs="0".
    Hope this helps,
    Greg

  • Publishing PL/SQL procedures as web service

    Hi,
    Is there a way to publish a PL/SQL procedure as a web service in APEX?
    Thanks
    AK

    Bob,
    watch this viewlet, maybe it gives you a helping hand
    http://otn.oracle.com/products/jdev/viewlets/10g/WS_PLSQL_Demo_viewlet_swf.html
    Frank

  • Publishing PL/SQL Package as Web Service

    I am trying to build a PL/SQL Web Service following the "Build a PL/SQL Web Service" paper by Jason Price.
    This used the standalone OC4J.
    When I run the WebServicesAssember (page 4 of article):
    java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config config.xml
    I get the following error message:
    Exception in thread "main"
    java.lang.NullPointerException:
    Class db.func.place.order.dbfuncUser not found
    The database connection works, the package is created.
    Anyone have any ideas ??
    Thanks, Bob Larsen

    Hi
    I too got the same problem and I am finding for the solution. If you have found it please reply me as soon as possible.
    my email: [email protected]
    I appreciate your answer and many other problems regarding it. I hope u knw the answer...If you can please help me out
    with regards,
    chaitanya

  • How to use sql report server web service (SSRS) in flex/actionscript

    Hi,
    I am trying to create a web page, that displays a report from my company's report server. I manage to import the ReportExecutionServiceService, but can't figure out how to get the report. anyone know where i can find good documentation of SSRS's WSDL (not on MSDN it didn't do much good)? or better does anyone know what steps are needed (what fields to use / initialize etc.)?

    Hi Sanjay
    First you create a report using the data source in Crystal Reports DesignerStand Alone Application and then save it to repository.
    This is the easiest way to do it.
    You can refer to Crystal Reports User guide and also BOXI Admin guide for the version you are using.
    You can download the above from help.sap.com
    Hope this helps!!
    Regards
    Sourashree

  • JDeveloper hangs when publishing the PL/SQL pkg as web service

    Hi,
    I have followedthe guidelines in
    http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    I have created a simple pkg with one function return varchar2. Followed the exact steps to publish my test_pub, the jdeveloper hangs, at the step 4 of 7 : Program Units. Please help!
    Thanks!
    Yi
    Message was edited by:
    ytian

    Bob,
    watch this viewlet, maybe it gives you a helping hand
    http://otn.oracle.com/products/jdev/viewlets/10g/WS_PLSQL_Demo_viewlet_swf.html
    Frank

  • Urgent: Calling web service from PL/SQl fails with XML parsing

    Hi,
    I am trying to call a web service from PL/SQL (using SOAP protocol and UTL_HTTP built in Package).I am using Oracle 9i .I am calling from pl/sql block invoking web service method created in java.
    I am getting the below response object as a SOAP protocol, but i couldn't able to parse the SOAP.
    Could you please provide the values of FirstName, LastName and ErrorDescription
    declare
    request_env varchar2(32767);
    v_xml XMLTYPE;
    l_user_first_name varchar2(100);
    l_user_last_name varchar2(100);
    l_error_value varchar2(100);
    begin
    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    <axis2ns1:ErrorDescription />
    </UserInfoObjResponse>
    </soapenv:Body>
    </soapenv:Envelope>';
    dbms_output.put_line('Length of Request:' || length(response_env));
    dbms_output.put_line ('Request: ' || response_env);
    v_xml := XMLTYPE(response_env);
    -- SELECT EXTRACTVALUE(v_xml, '//UserInfoObjResponse/FirstName') INTO l_user_fast_name varchar2(100); FROM DUAL;
    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    dbms_output.put_line ('l_error_value: ' || l_error_value);
    end;

    In Oracle 9i:
    SQL> declare
      2    response_env varchar2(32767);
      3    v_xml XMLTYPE;
      4    l_user_first_name varchar2(100);
      5    l_user_last_name varchar2(100);
      6    l_error_value varchar2(100);
      7  begin
      8    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      9                     <soapenv:Body>
    10                       <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    11                         <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    12                         <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    13                         <axis2ns1:ErrorDescription />
    14                       </UserInfoObjResponse>
    15                     </soapenv:Body>
    16                   </soapenv:Envelope>';
    17
    18    dbms_output.put_line('Length of Request:' || length(response_env));
    19  --  dbms_output.put_line ('Request: ' || response_env);
    20
    21    v_xml := XMLTYPE(response_env);
    22
    23    select EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:FirstName/text()') first_name,
    24           EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:LastName/text()') last_name,
    25           EXTRACTVALUE(v_xml,'/*:Envelope/*:Body/*:UserInfoObjResponse/*:ErrorDescription/text()') error_description
    26      into l_user_first_name, l_user_last_name, l_error_value
    27      from dual;
    28
    29    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    30    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    31    dbms_output.put_line ('l_error_value: ' || l_error_value);
    32  end;
    33  /
    Length of Request:530
    l_user_first_name: First Name Output
    l_user_last_name : Last Name Output
    l_error_value:
    PL/SQL procedure successfully completed.In Oracle 10g:
    SQL> declare
      2    response_env varchar2(32767);
      3    v_xml XMLTYPE;
      4    l_user_first_name varchar2(100);
      5    l_user_last_name varchar2(100);
      6    l_error_value varchar2(100);
      7  begin
      8    response_env:='<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      9                     <soapenv:Body>
    10                       <UserInfoObjResponse xmlns:axis2ns1="http://www.test.com/services">
    11                         <axis2ns1:FirstName >First Name Output</axis2ns1:FirstName>
    12                         <axis2ns1:LastName>Last Name Output</axis2ns1:LastName>
    13                         <axis2ns1:ErrorDescription />
    14                       </UserInfoObjResponse>
    15                     </soapenv:Body>
    16                   </soapenv:Envelope>';
    17
    18    dbms_output.put_line('Length of Request:' || length(response_env));
    19  --  dbms_output.put_line ('Request: ' || response_env);
    20
    21    v_xml := XMLTYPE(response_env);
    22
    23    select r.*
    24      into l_user_first_name, l_user_last_name, l_error_value
    25    from XMLTABLE('/' PASSING v_xml
    26                  COLUMNS
    27                  first_name varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:FirstName/text()',
    28                  last_name varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:LastName/text()',
    29                  error_description varchar2(30) PATH '/*:Envelope/*:Body/*:UserInfoObjResponse/*:ErrorDescrition/text()'
    30                  ) r;
    31
    32    dbms_output.put_line ('l_user_first_name: ' || l_user_first_name);
    33    dbms_output.put_line ('l_user_last_name : ' || l_user_last_name);
    34    dbms_output.put_line ('l_error_value: ' || l_error_value);
    35  end;
    36  /
    Length of Request:530
    l_user_first_name: First Name Output
    l_user_last_name : Last Name Output
    l_error_value:
    PL/SQL procedure successfully completed.Max
    http://oracleitalia.wordpress.com
    Edited by: Massimo Ruocchio on Feb 14, 2010 11:55 PM
    Added the first one.

  • A good tutorial on APEX and/or PL/SQL Web Services

    Hello
    I am trying to implement a web services where I will be uploading some files to a remote server.
    I will be using APEX 3.2 to implement UI and PL/SQL for 11g
    However, there is one thing I have to admit I have not been able find this kind of tutorial.
    Knowledge of how to make a connection to remote web service only using PL/SQL, the files and rest I can suffer and get from pain..
    I have seen and read many tutorials how to make a web service from APEX.
    However, I would like to know if there some specific PL/SQL packages, functions, procedures and others to do this
    I would be more than happy if some can point me the direction and I will do the rest.
    Browsing different forums and google I have not been able to find this.
    I am 100% sure millions of people have done this. I have not only been able to find something about this...
    probably limit in knowledge and using goooogle....
    thnx
    pl/sql new

    Here is a link to a tutorial on exposing a PL/SQL function as a web service: http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
    I don't believe there is any way to expose PL/SQL as a web service using only PL/SQL. This tutorial covers wrapping PL/SQL in java running on OC4J. I haven't tried it myself so I can't give you much more direction than that, but for what it's worth, it looks fairly straightforward.
    Hope this helps,
    John

Maybe you are looking for