Web Services from Forms, what version?

Im getting rather confused on what version of J Developer we should be using to create our Web service stubs so we can consume web services in our version of Oracle Forms 10.1.2
I am currently running though the example on the Oracle How to so ill use the versions suggested there but for furure development should we be using the latest version of JDeveloper?

You can certainly use 10.1.3.x of JDev for building web services to call from forms 10.1.2. I have done this here:
http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
Generally the thing you have to watch is to ensure the JDK version for the web service proxy project is the same as Forms (1.4). You also need to be careful on the web service type from which you are creating the proxy. (Jax-rpc, jax-ws etc)
It might be worth trying (but might have a few gotchas) using 10.1.3 to generate a proxy against an 11g web service - but you need to watch what version of the web services standard you are using as there have been a number of changes in this area.
hope that helps
Grant

Similar Messages

  • Error when trying to access a secured web service from Forms 10g 10.1.2.3

    Hello,
    I'm trying to access a secured web service from Forms10g 10.1.2.3 but i'm getting the next error when pressing the button the first time:
    java.rmi.RemoteException: ; nested exception is: HTTP transport error: javax.xml.soap.SOAPException:
    java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 UnauthorizeWhen i press the button a second time i got this error:
    javax.xml.rpc.soap.SOAPFaultException: The SOAP request is invalid. The required node 'Envelope' is missingThis is the code i have in my button:
    DECLARE
    jo ora_java.jobject;
    pdfObject ora_java.jobject;
    pdf     varchar2(900);
    rv varchar2(100);
    ex ora_java.jobject;
    BEGIN
    JO := SEARCHSOAPCLIENT.new;
    SEARCHSOAPCLIENT.setUsername(JO,'weblogic');
    SEARCHSOAPCLIENT.setPassword(JO,'welcome1');
    pdfObject := SEARCHSOAPCLIENT.quicksearch(JO,'1234',NULL);
    pdf := SEARCHSOAPCLIENT.tostring(pdfObject);
    message(pdf);
    message(' ');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    :error := Exception_.toString(ex);
    END;When i run it from JDeveloper it works, this is a portion of java code the proxy web service has:
    import oracle.webservices.transport.ClientTransport;
    import oracle.webservices.OracleStub;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Stub;
    public class SearchSoapClient {
        private webservicesproxywebcontent.proxy.SearchSoap _port;
        public SearchSoapClient() throws Exception {
            ServiceFactory factory = ServiceFactory.newInstance();
            _port = ((webservicesproxywebcontent.proxy.Search)factory.loadService(webservicesproxywebcontent.proxy.Search.class)).getSearchSoap();
            this.setUsername("weblogic");
            this.setPassword("welcome1");
            System.out.println("callling from _port "+ _port.quickSearch("1234234", null));
         * @param args
        public static void main(String[] args) {
            try {
                webservicesproxywebcontent.proxy.SearchSoapClient myPort = new webservicesproxywebcontent.proxy.SearchSoapClient();
                System.out.println("calling " + myPort.getEndpoint());
            } catch (Exception ex) {
                ex.printStackTrace();
         * delegate all operations to the underlying implementation class.
        public QuickSearchResult quickSearch(String queryText, IdcPropertyList extraProps) throws java.rmi.RemoteException {
            return _port.quickSearch(queryText, extraProps);
        }Also the secured web service was generated from Webcenter Content 11.1.1.6 that is why it's a secured web service.
    Kind Regards
    Carlos

    Without going into any technical discussion about the code, my first question is what JDK version was used to create this which was imported into the form? Understand that Forms 10 runs on JDK 1.4.2, so if you used any newer JDK version, likely there will be problems.

  • Calling a Web Service from forms

    Hello,
    I'm trying to call a web service from within forms (10gR2). I have generated a stub from the wsdl via jdeveloper, and imported the appropriate classes to my form. My problem is that the webservice requires 2 java objects passed to it. The first is a simply "row" structured object which is no problem, but the second object is an array of "record structures". I have created a pl/sql table of ora_java.jarray and populated the elements and rows of this table accordingly (using the java classes generated), but I have no knowledge of how to convert this pl/sql table to the java object that is to be passed to the web service. Could anyone propose a solution? Any help would be greatly appreciated.
    Regards,
    Robert

    The java generated provides the following classes
    hdrobjuser1 which is a structure consisting of string, string, decimal, string, date, string (the first parameter of the webservice call),
    dtlobjuser1 which is a structure consisting of string, string, decimal, string, string, string, decimal
    dtlobj1 which is an array of dtlobjuser1 (the second parameter of the webservice call)
    The problem is that I have methods to generate and populate both the hdrobjuser1 and dtlobjuser1 classes, but there is no method that I can use to create array elements within the dtlobj1 array

  • Calling Web SErvice from Forms 10g R2

    Hi All
    We are building a new form that calls out a web service. We used JDeveloper to build the stub and successfully import the same into Forms. We added the jar file names to class path, formsweb.cfg and default env files in the desktop. When we run the form using designer we get ORA-105100 error.
    Do we need app svr to test the web services call out or can we test it from the forms builder itself. any help is appreciated. I understand that the error is due to the java class not being loaded at run time. do not know what the reason is.
    I have read the how to document multiple times and have memorised the same, please do not point me to that. I have followed the instructions in that document step by step. the only difference is that the web service that I am calling is different.
    Any help is greatly appreciated.
    Rgds
    Arvind Balaraman

    This is what it says
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\abalaram
    Proxy Configuration: Browser Proxy Configuration
    JAR cache enabled
    Location: C:\Documents and Settings\abalaram\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://.../forms/java/frmall_jinit.jar from JAR cache
    Loading http://.../forms/java/memberWS.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.0

  • Creating Web Services from Forms Application

    I have a commercial system based on Oracle Forms 6. I would like to expose the functionality of this application as Web Services. This would permit us to integrate these applications using XML technology.
    I think the best approach would be to look for a way to communicate with forms from within a Java environment.
    Does anyone know how I can do this ?

    You can certainly use 10.1.3.x of JDev for building web services to call from forms 10.1.2. I have done this here:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    Generally the thing you have to watch is to ensure the JDK version for the web service proxy project is the same as Forms (1.4). You also need to be careful on the web service type from which you are creating the proxy. (Jax-rpc, jax-ws etc)
    It might be worth trying (but might have a few gotchas) using 10.1.3 to generate a proxy against an 11g web service - but you need to watch what version of the web services standard you are using as there have been a number of changes in this area.
    hope that helps
    Grant

  • Error while calling web service from Forms 10g

    Hi,
    I have defined a web service and deployed at OracleAS 10g 10.1.2.0.2. Web services is working fine as per standalone invocation URL and also using a Web Service source in Portal (OmniPortlet).
    I have created a web service proxy and imported the JAR file into Forms module via Java Importer. Created a button to invoke a web service and show results on message bar.
    Code for WHEN-BUTTON-PRESSED:
    declare
         v_javaObject ora_java.jobject;
         xo ora_java.jobject;
         v_name varchar2(30);
         javaException ORA_JAVA.JOBJECT;
         v_BigDecimalObject ORA_JAVA.JOBJECT;
    begin
         v_javaObject := EmpServicePortClient.new;
         v_BigDecimalObject := BigDecimal.new(101);
         v_name := EmpServicePortClient.getName(v_javaObject,v_BigDecimalObject);
         message(v_name);
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR,acknowledge);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    javaException := ORA_JAVA.LAST_EXCEPTION;
    -- Print out the Exception by using the toString()
    -- Method of the exception Object
    message(Exception_.toString(javaException),acknowledge);
    -- and clean up
    ORA_JAVA.CLEAR_EXCEPTION;
    END;
    Forms got compiled successfully.
    However, while invoking a service by pressing a button, getting following error at message bar:
    java.rmi.RemoteException:; nested exception is: HTTP transport error: javaxml.soap.SOAPException: java.security.PrivilegedAction
    Is there anything that I have missed in the configuration? or what else is causing it?
    Regards,
    Preet

    Hi,
    I have defined a web service and deployed at OracleAS 10g 10.1.2.0.2. Web services is working fine as per standalone invocation URL and also using a Web Service source in Portal (OmniPortlet).
    I have created a web service proxy and imported the JAR file into Forms module via Java Importer. Created a button to invoke a web service and show results on message bar.
    Code for WHEN-BUTTON-PRESSED:
    declare
         v_javaObject ora_java.jobject;
         xo ora_java.jobject;
         v_name varchar2(30);
         javaException ORA_JAVA.JOBJECT;
         v_BigDecimalObject ORA_JAVA.JOBJECT;
    begin
         v_javaObject := EmpServicePortClient.new;
         v_BigDecimalObject := BigDecimal.new(101);
         v_name := EmpServicePortClient.getName(v_javaObject,v_BigDecimalObject);
         message(v_name);
    exception
         WHEN ORA_JAVA.JAVA_ERROR THEN
    -- In this case, the error would be
    -- Argument 1 can not be null
    message(ORA_JAVA.LAST_ERROR,acknowledge);
    --Clean up
    ORA_JAVA.CLEAR_ERROR;
    WHEN ORA_JAVA.EXCEPTION_THROWN THEN
    javaException := ORA_JAVA.LAST_EXCEPTION;
    -- Print out the Exception by using the toString()
    -- Method of the exception Object
    message(Exception_.toString(javaException),acknowledge);
    -- and clean up
    ORA_JAVA.CLEAR_EXCEPTION;
    END;
    Forms got compiled successfully.
    However, while invoking a service by pressing a button, getting following error at message bar:
    java.rmi.RemoteException:; nested exception is: HTTP transport error: javaxml.soap.SOAPException: java.security.PrivilegedAction
    Is there anything that I have missed in the configuration? or what else is causing it?
    Regards,
    Preet

  • Calling web service from forms..

    Forms Gurus,
    I am using this demo to call the webservice in Forms.
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm#r1
    I am using a simple button to call get the conversion rate from the web service.
    But my code is not doing anything. I used some insert statements to see where my code is failing and is as follows:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    EX ora_java.jobject;
    v_num NUMBER;
    BEGIN
    INSERT INTO XXIPAY_WEB_TMP VALUES (111,'before',20);
    commit;
    jo:= CurrencyExchangeServiceStub.new;
    INSERT INTO XXIPAY_WEB_TMP VALUES (111,'between',20);
    commit;
    rv:= CurrencyExchangeServiceStub.getRate(jo,'USA','great britain');
    INSERT INTO XXIPAY_WEB_TMP VALUES (111,'after',20);
    commit;
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    fnd_message.set_string('Unable to call out to Java, '||ORA_JAVA.LAST_ERROR);
    fnd_message.show;
         INSERT INTO XXIPAY_WEB_TMP VALUES (111,'java_error',20);
         commit;
    WHEN ORA_JAVA.EXCEPTION_THROWN then
         EX:=ORA_JAVA.LAST_EXCEPTION;
         message(Exception_.toString(EX));
         INSERT INTO XXIPAY_WEB_TMP VALUES (111,'exception',20);
         commit;     
    END;
    After pushing the button I am getting the following values from the table:
    111 before 20
    111 java_error 20
    I am importing currencyexchangestub.class, java.lang.Float.class and java.lang.Exception.class.
    My code is failing before executing the new function.
    Where am I doing wrong? Any help is highly appreciated.
    Thanks in advance.
    Fubu

    Hey Francois,
    Everything went fine according to demo until I clicked on the button to get the conversion rate. The button is inserting the "java_error" row in the table and giving out this error:
    SoapException: faultCode=SOAP-ENV:Protocol;msg=Unsupported response content type &quot;text/html;, must be: &quot;text/xml&quot;. Response was: &lt;! DOCTYPE HTM
    I am attaching the PL/SQL package generated out of the java class. Hope this is correct:
    PACKAGE BODY CurrencyExchangeServiceStub IS
    -- DO NOT EDIT THIS FILE - it is machine generated!
    cls ORA_JAVA.JCLASS;
    fid ORA_JAVA.JFIELD;
    mid ORA_JAVA.JMETHOD;
    args JNI.ARGLIST;
    -- Constructor for signature ()V
    FUNCTION new RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
    insert into xxipay_web_tmp values (222,'beforemethod',12);
    commit;
    mid := JNI.GET_METHOD(FALSE, cls, '<init>', '()V');
    insert into xxipay_web_tmp values (222,'aftermethod',12);
    commit;
    args := NULL;
    RETURN (JNI.NEW_OBJECT(cls, mid, args));
    END;
    PROCEDURE main(
    a0 ORA_JAVA.JARRAY) IS
    BEGIN
    cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
    mid := JNI.GET_METHOD(TRUE, cls, 'main', '([Ljava/lang/String;)V');
    args := JNI.CREATE_ARG_LIST(1);
    JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('[Ljava/lang/String;'));
    JNI.CALL_VOID_METHOD(NULL, mid, args);
    END;
    FUNCTION getRate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    cls := JNI.GET_CLASS('mypackage1/CurrencyExchangeServiceStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'getRate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Float;');
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    Please let me know where I am doing wrong.
    One more thing I would like to mention is that my form builder is on UNIX server and JDeveloper is on my local machine. So I am ftp'ing the java class and the deployed JAR file into my home directory on UNIX server in "binary" mode. And in the CLASSPATH I am mentioning my home directory,So that the java class gets picked up when I import the Java class.
    Thanks in advance,

  • How to call a web service from forms 9i

    Hello all, I was trying to run the example on this website that shows how to call a webservice from forms, and I recieved an error. I am at the last step, where it tells me to create a button and add a when button pressed trigger. Here is the code I am using from the example:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    BEGIN
    jo := CurrencyExchangeServiceStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv := CurrencyExchangeServiceStub.getRate(jo,'USA','UK');
    message (float_.floatValue(rv));
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    It gives me an error on"Exception_.tostring" component must be declared. Does anyone have any suggestions? I am trying to figure out how to call an external WS from a form. Thanks.

    IN forms Builder under Import java classes
    Change the Import Classes field to java.lang.Exception and press Import. This will create a PL/SQL package for the Exception Java class. While this is not essential, it does make error reporting easier. Now press Close to dismiss the dialog.

  • How to access web-service from Forms 9i

    Hi
    I have a form running on 9i server.How do I access a webservice when im using iDS 9i.
    please let me know
    siri

    hi
    I found this site from one of your replies.
    http://www.oracle.com/technology/obe/obe_as_10g/deploy/callws_fromforms/forms_webservice.htm
    I feel this helps. WHen i try to use it with my iDS 9i , the jdeveloper is not recognising the wsdl . It is giving error.
    What can be the reason ?

  • Calling web service from ABAP - version 4.6C

    Hi,
    I would like to know how to call a web service from ABAP. Version is 4.6C. Any help would be greatly appreciated.
    Thank you,
    Rekha

    Hi Rekha,
    Please go through these..
    call web service using ABAP
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/da0710b6560a4e80fb94f3f712dfc0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/ae1b9a5d2cef4ea4b579f19d902871/frameset.htm
    Hope these help you!
    cheers,
    Prashanth

  • Get xml data from a web service into Forms?

    Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
    I will be grateful if y'all could point me to an example.
    Thank you,
    Gary
    P.S. Here is a snippet of how I get the full name by passing an ID:
    DECLARE
    jo ora_java.jobject;
    rv varchar2(100);
    BEGIN
    jo := ADSoapClient.new;
    rv := ADSoapClient.getUserName(jo, 'user_ID');
    :block3.fullname := rv;

    Hello,
    Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
    Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
    So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
    <blockquote>
    private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
    IOException, XPathExpressionException{
    try{                
    DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
    domFactory.setNamespaceAware(true);
    InputStream inputStream = new FileInputStream(new File(fileName));
    DocumentBuilder builder = domFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    StringWriter stw = new StringWriter();
    Transformer serializer = TransformerFactory.newInstance().newTransformer();
    serializer.transform(new DOMSource(doc), new StreamResult(stw));
    return stw.toString();
    catch (Exception e){
    System.err.println(e);
    System.exit(0);
    return "OK";
    </blockquote>
    Let me know if this is of nay help.
    Thanks.

  • Call a web services from oracle forms 10

    I have to call a web services from oracle forms.
    The version of the database is oracle 11gr2. the version of the forms is 10.1.2.0.2.
    I allready did the proxy creation and the import class within forms.
    I have 2 questions:
    1.
    I created the following procedure:
    PROCEDURE call_WS IS
         vobject1 ORA_JAVA.JOBJECT;
         vobject2 ORA_JAVA.JOBJECT;
    BEGIN
    vobject1 := WSEvaluarReglaCondicionComerci.new();
    vobject2 := WSEvaluarReglaCondicionComerci.listarValoresAtributoEvento(vobject1, 702, 2217, null, null, null);
    END;
    the function I calling:
    FUNCTION listarValoresAtributoEvento(
    obj ORA_JAVA.JOBJECT,
    a0 ORA_JAVA.JOBJECT,
    a1 ORA_JAVA.JOBJECT,
    a2 ORA_JAVA.JOBJECT,
    a3 VARCHAR2,
    a4 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
    Note that the parameters is ORA_JAVA_JOBJECT and I need to send numbers. I understand that when I import the classes, because in the WS those parameters are defined as BigDecimal, Forms understand them as java object but when I compile it reports the error: "numero o tipo de argumento erroneo al llamar..." type error.
    So the question is, how Cast the numbers to Java Object to send them.
    I have read in a web page that one option is to change in the web service the type of the parameters but that is not an option.
    2.
    The WS returns a super big XML as answer, so how I can parse the result into an Object type?...
    The object structure is:
    TYPE opciones_obj AS OBJECT
    (strindice VARCHAR2 (4000),
    nombrecompleto VARCHAR2 (4000),
    nombre VARCHAR2 (4000),
    strtipodato VARCHAR2 (4000),
    codigoopcion NUMBER,
    floatval FLOAT,
    strtipo VARCHAR2 (4000),
    strval VARCHAR2 (4000));
    and the tags to extract is:
    COLUMNS strindice VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
    nombrecompleto VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
    nombre VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
    strtipodato VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
    codigoopcion NUMBER
    PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
    floatval FLOAT
    PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
    strtipo VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
    strval VARCHAR2 (4000)
    PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;
    xquery / xmltype aparently is not an option because the xml is too big.
    I will appreciate your answers.
    Thanks.
    Edited by: user13058213 on 26-ene-2012 16:02

    i created jar file to call it from forms
    Could you be a little bit less vague about what you exactly did?
    Anyway; see here http://bit.ly/10VVoMR
    cheers

  • Calling web service from oracle forms 10g

    Problem Description:
    I'm following the steps as per the doc:
    http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html
    to create a java stub to call external web service and then use java importer in oracle forms to call this web service from oracle forms.
    WSDL for external web service used is http://gend:83/DesignService.svc?wsdl
    The service was developed by us.
    Calling the web service using JDeveloper works fine but when I complie in Oracle Forms it returns wrong number of types of arguments in call SENDHELLO.
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    xo ora_java.jobject;
    rv varchar2(2000);
    ex ora_java.jobject;
    str varchar2(100);
    BEGIN
    jo := GendServiceClient.new;
    rv := GendServiceClient.sendHello('Nora');
    EXCEPTION
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    WHEN ORA_JAVA.EXCEPTION_THROWN then
    ex := ORA_JAVA.LAST_EXCEPTION;
    message(Exception_.toString(ex));
    END;
    Any help/ideas on this is greatly appreciated. Thanks.
    Edited by: KE Nora Loera on Jun 1, 2012 1:24 PM

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Calling web service from ADOBE 7.0 PDF Form

    Hi,
    I would like to get help from here for my problem.
    I have Interactive PDF form. user will enter th data and submit the form to server. In server side I am getting xml format stream.
    Now I would like to call a web service from the form instread of .Jsp/.asp/servlet. But I do not know how to do this.
    As we know, whem you make webservice call we have to send payload xml data. How do I do this. I tried using data connection for wsdl. this is not connecting at all.
    plz help me here

    Hi,
    using the the below code. have got the header like below. In the header- how the adobe handling <ns0: tags. I want to change this as like <wsa:. Please help me on this.
    var oHeader = {};
    oHeader[NS + "To"] =
    soapType: "wsa:ElementedURI",
    soapValue: "com.app.producer.ProducerImpl"
    var oResultHeader = {};
    var oRequest = {};
    oRequest["" + "test></test>"] = {};
    var response = SOAP.request(
    cURL: cURL,
    oRequest: oRequest,
    cAction: "http://testurl.com",
    oReqHeader: oHeader,
    oRespHeader: oResultHeader
    SOAP Envelop
    <?xml version="1.0" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <SOAP-ENV:Header>
    <ns0:To SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ns1="wsa" xsi:type="ns1:ElementedURI">com..app.producer.ProducerImpl</ns0:To>
    </SOAP-ENV:Header>
    - <SOAP-ENV:Body>
    <test />
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

Maybe you are looking for