Calling web service in Offline adobe form

Hi all,
I have created webservice in backend system and have see it in SOA Manager. Have set the HTTP authentication as UserID/Password for the defiend service via SOA Manager.
I am using the wsdl of the webservice created from "Open WSDL document from selected bindings" in NWDS and am able to create Data Connection properly. On the click of the button have written the below code in Click event :
var cURL = "http://xyz:8000/sap/bc/srt/wsdl/bndg_4D33AD4FE1183C0DE1000000AC122492/wsdl11/allinone/ws_policy/document?sap-client=100";
var service = SOAP.connect(cURL);
  xfa.host.messageBox("here4" + xfa.connectionSet.DataConnection.execute(0));
Here after the button is clicked in the form, it just prints the message "here 4 false" but nothing happens in the backed. Ideally it should have added a new record in a database table.
Can anyone let me know what could be ppossibly wrong in this and how can i debug my appplication it it is able to create connection with backend server.
Regards,
Namrata

Hi Namrata,
In SOAMANAGER, on clicking "Open WSDL document for selected binding", an XML document gets opened in the browser. Save the file as .wsdl file. Create data connection in Adobe form using this .wsdl file.
On successful creation of new data connection, a 'DataConnection' folder gets created in the Data View of Adobe Lifecycle Designer. It will contain a request, response and a button to trigger the webservice.
Do the corresponding data binding with the request and response fields and just drag and drop the button into the layout.
At runtime, the webservice gets triggered on clicking this button.
Thanks & Regards,
Sanoosh

Similar Messages

  • Calling web service in offline form.

    Hi,
    I m trying to call web service in offline form with java script.
    How can i pass request parameter? How can i get response?
    Is there a sample java script code to do it?
    Regards.

    >>I m trying to call web service in offline form with java script.
    after you create the webservice dataconnection, drag and drop the WS into layout area. it will create the input fields related to the request parameters and output textfileds corresponding to response parameters.
    >>How can i pass request parameter?
    using javascript, you can fill those inputfields with the values of request parameters and use the method xfa.connectionSet.WSName.execute(0) to invoke the webservice.
    >> How can i get response?
    After successful execution of webservice call, the response values will be populated in the response textfields.
    >>Is there a sample java script code to do it?
    you can see some of the docs:
    Understanding the Execute function in Adobe® LiveCycleu2122 Designer
    http://wiki.sdn.sap.com/wiki/display/EmTech/DependentDropDowns
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0d0a250-ccd1-2c10-9e9f-b9d5cf259a6d?quicklink=index&overridelayout=true
    regards,
    BJagdishwar.

  • Problem with Web Service integration in Adobe Form

    Hi All,
    I am new to web service and adobe interatcive forms.
    I need to develop a button on offline interactive adobe form which would call the webservice. The web service is exposed from PI.
    I am facing a lot of troubles.
    1. I not am able to find the web service in Web service navigator neither in portal nor PI. hence i am not able test it.
    2. I am having error while creating data connection in NWDS    " Cannot choose this operation: - there is no associated SOAP  
        Binding ".
    Hence i am not able to proceed ahead.
    Please let me know how to solve the issue.
    Regards,
    Aditya Deshpande

    i am closing this thread

  • Error calling web service from Adobe form

    Hi Experts,
    While calling web service form my adobe form, i was getting an error as below saying "Error attempting to read from the file" followed by the URL of my web service.
    To create the above scenario i followed the following steps:
    1. Create a Function module and create a web service from that function module.
    2. Through SOAMANAGER, download the WSDL file for the generated web service.
    3. Create an Adobe form with an empty Interface and create a new Data Connection on the form using the downloaded WSDL.
    4. Generate this adobe form using an ABAP report.
    Kindly extend help on this to figure out if I'm missing something!!!

    Well questions related to Web Services have been answered here in past, please Search on SCN for links to it.

  • Error when calling Web Service from Adobe Form

    Hi all,
    I need to invoke a Web Service from my Adobe Interactive Form. I have merged the WSDL files, following the steps in this document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
    But when I press the corresponding button in order to call the web service, I get the following error:
    "Error trying to read file.
    http://<my_host>:51000/<my_WS>/Config1?style=document"
    It seems to be an error in my configuration, because I'm sure that I have followed all steps in the previous PDF.
    Any idea?
    Thanks.

    Well, I think so... I've followed all the steps, and my merged WSDL file seems like the one in page 12...
    Any suggestion, please?
    Thank you,

  • How to make a PDF form call Web service and return a static pdf for user to print?

    Hi all,
    Can anyone help me regarding the feasibility of using PDF forms for my following case?
    I would like to create a Dynamic pdf form. User only have the Acrobat reader. they can enter some information. Then have a submit button. when user click the submit button, it can call the web service with data. then Web service returns a Static PDF document based on data and the user can print it out. (and maybe save as separate pdf file)
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    3. What minimum reader that user need to have? PDF reader 7 or above?
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Thanks a lot

    We have done a similar approach in the past and yes, it can be doable.
    1. Is that possible to implement? Because I know PDF can call web service, but dont know how it handle when the webservice returns another static PDF document. could it able to handle the responds and open up in another acrobat reader?
    Srini: We have developed a Servlet to talk to Webservice. Based on the Webservice response, the Servlet, prepares the Byte stream and sends it to Webbrowser to display as a PDF. The PDF data was submitted to Servlet in XML format.
    But if you do not want to use the above approach, then you have to use the Workbench Process.
    Submit the PDF data to a Workbench process and the inside process, execute Webservice Service with the data. Once the response is received, prepare the data XML and render a PDF with it.
    To do this, you need LiveCycle Server and Reader Extensions server component.
    2. As I understand I need to have Live Cycle Designer to create a pdf  and make it Reader Enabled. So user can user reader to call webservice? am I correct?
    Srini: If you want to use the Servlet, you can Reader extend the PDF with Acrobat.. But if you want to submit the data directly to Webservice, then you need Reader Extensions server component.
    3. What minimum reader that user need to have? PDF reader 7 or above?
    Srini: Not sure but Reader 8 and above should work.
    4. I have a webservice serve the same purpose for web. But if I want the same web services can serve both web and PDF form. So, whatever client (PDF or Web)make the web service call, server returns the PDF document to client. Is that possible ? Do I need to make any changes on web service?
    Srini: If you use the Servlet approach, then you can re-use the same webservice. But if you want to submit directly to the same webservice, you may need to change it to suit your data XML.
    5. Do I need to get any other Adobe server product? (other than Live Cycle Designer )
    Srini: If you use the Servlet approach, you do not need any server component but other approach, you need Livecycle Server and Reader Extensions server component.
    Thanks
    Srini

  • How to call HTTP web services in an Interactive Form?

    Hi all,
    I am using Adobe Livecycle Designer currently in a trial 8.2 version.
    I need to invoke an HTTP Web Service (non-SOAP) in an Adobe Interactive Form. The Net.HTTP method does not work due to security reasons. The error message I get is:
    (german)
    " NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf diese Eigenschaft oder Methode.
    Net.HTTP.request:28:XFA:form1[0]:mysubform[0]:Region[0]:change"
    In english this translates to: "Security settings prohibit the call of this property or method.
    And indeed the "Javascript for Acrobat API reference" includes the following note:
    "Note:This method can only be made outside the context of a document (for example, in a folder level JavaScript)."
    So this method seems to be excluded from use in an Adobe document, e. g. in an interactive form. But why is it then listed at all? Is there a way to call HTTP Web Services in an Adobe Interactive Form by somehow branching out the call outside the document itself? Of course I do not want to call a SOAP service which then calls the HTTP Web Service ;-)
    Is there any other way to invoke HTTP Web Services in an Adobe Interactive Form?
    Thanks a lot for your response!
    Regards
    Christoph

    Hello Kavita,
    patterns are not processed during editing. If you can't use the default behavior of the numeric field when a character is entered (handled when the user finished editing), you could use scripting to process input. Depending on what you want to do you could use the exit event or the change event.
    A change event has a property called "change" that caused the event. You could try "xfa.host.messageBox( upper(event.change) )" in FormCalc to show the characters in upper case.
    But, you should go this way only if the patterns for editing and for display and validation scripts can't be used in your case.
    Best regards
    Juergen

  • How to invoke HTTP Web Services in an Adobe Interactive Form

    Hi all,
    I am using Adobe Livecycle Designer stand-alone (without Netweaver integration), currently a trial 8.2 version.
    I need to invoke an HTTP Web Service (non-SOAP) in an Adobe Interactive Form. The Net.HTTP method does not work due to security reasons. The error message I get is:
    (german)
    " NotAllowedError: Sicherheitseinstellungen verhindern den Zugriff auf diese Eigenschaft oder Methode.
    Net.HTTP.request:28:XFA:form1[0]:mysubform[0]:Region[0]:change"
    In english this translates to: "Security settings prohibit the call of this property or method.
    And indeed the "Javascript for Acrobat API reference" includes the following note:
    "Note:This method can only be made outside the context of a document (for example, in a folder level JavaScript)."
    So this method seems to be excluded from use in an Adobe document, e. g. in an interactive form. But why is it then listed at all? Is there a way to call HTTP Web Services in an Adobe Interactive Form by somehow branching out the call outside the document itself? Of course I do not want to call a SOAP service which then calls the HTTP Web Service
    Is there any other way to invoke HTTP Web Services in an Adobe Interactive Form?
    Thanks a lot for your response!
    Regards
    Christoph

    Hi,
    back again, had to handle other issues, sorry.
    Just to get a little more concrete. The condition depends on the context node attributes. So if an attribute is initial, it's field should not been shown, if it's not initial, it should ne shown. There are 6 context attributes and therefore 6 fields in the form. How can I get the attributes' value?
    And can I put them into the same subform or do I have to create 7 (6 conditions + blank-condition) subforms?
    I put the fields (textfield and context node value) that should be shown depending on conditions in a subform. So how can I adress this subform?
    I'm not so familiar with JavaScript, so please help me. I need something like:
    if (context_node_attribute X is initial) {
             subform_1.presence = "hidden" ;
    I tried it with
    if ( ARB_STUNDEN.rawValue != null) {
         Beratungsstunden.presence = "hidden" ;
    but it didn't work....
    Thanks,
    Tan

  • 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

  • Calling web service from oracle forms fails with ORA_JAVA.JAVA_ERROR

    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://www.webservicex.net/CurrencyConverter.asmx?wsdl
    Calling the web service using JDeveloper works fine but from Oracle Forms returns ORA_JAVA.JAVA_ERROR; Unable to call out to Java, Invalid object type for argument 1
    The code from oracle form to call web service is as below:
    DECLARE
    jo ora_java.jobject;
    rv ora_java.jobject;
    ex ora_java.jobject;
    outString varchar2(2000);
    BEGIN
    jo:= CurrencyConvertorStub.new;
    --This will get the exchange rate from US Dollars to UK Sterling.
    rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD');
    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;
    outString := Exception_.toString(ex);
    message(outString);
    END;
    Any help/ideas on this is greatly appreciated. Thanks.

    Yes, it is the message line - so basically this call fails => rv:= CurrencyConvertorStub.ConversionRate(jo,'CAD','USD'); and control goes in the exception block
    WHEN ORA_JAVA.JAVA_ERROR then
    message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
    Below is the code from java stub that was generated using JDeveloper by using web services stub/skeleton and associating the WSDL
    public Double ConversionRate(String FromCurrency, String ToCurrency) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    String wrappingName = "ConversionRate";
    String targetNamespace = "http://www.webserviceX.NET/";
    Vector requestData = new Vector();
    requestData.add(new Object[] {"FromCurrency", FromCurrency});
    requestData.add(new Object[] {"ToCurrency", ToCurrency});
    requestBodyEntries.addElement(toElement(wrappingName, targetNamespace, requestData));
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.setSOAPTransport(m_httpConnection);
    msg.send(endpointURL, "http://www.webserviceX.NET/ConversionRate", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    Vector responseData = responseBody.getBodyEntries();
    return (Double)fromElement((Element)responseData.elementAt(0), java.lang.Double.class);
    }

  • 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

  • Oracle form 6i in client server mode to call web service

    Hi,
    I am using oracle form 6i running in client server mode. My database version is 8.1.7.4. Now I am required to call an external web service. Is it possible to call web service without the existence of application server or web server? Please help!

    I have tried the method illustrated by the Form 10g Demo. However, when I select the Import Java Classes from the pull down menu, I have got the following error:
    PDE-UJI002 Unable to find the required Java Importer Classes.
    My Oracle Form version is as follows:
    Forms [32 Bit] Version 6.0.8.19.2 (Production)
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - 64bit Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - 64bit Production
    Oracle Toolkit Version 6.0.8.19.1 (Production)
    PL/SQL Version 8.0.6.3.0 (Production)
    Oracle Procedure Builder V6.0.8.17.0 Build #863 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle Query Builder 6.0.7.1.0 - Production
    Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
    Oracle Tools GUI Utilities Version 6.0.8.11.0 (Production)
    Oracle Multimedia Version 6.0.8.18.1 (Production)
    Oracle Tools Integration Version 6.0.8.18.0 (Production)
    Oracle Tools Common Area Version 6.0.8.18.0
    Oracle CORE Version 4.0.6.0.0 - Production
    Please help !

  • Is it possible to call web services in adobe connect application?

    I have facing one security issue  in adobe connect
    Error Description is "Security error accessing url
    Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://xxxxxx/WebService.asmx?wsdl)"
    Is it possible to call web services in adobe connect application?
    Thanks and regards
    Selvan

    OK, so it's a plain Flex security issue, not related to the Connect application, probably due to crossdomain misconfiguration.
    Please read http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html and http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html
    You may want to ask for help in the proper Flex forum. Also, download Tour de Flex and look at the example under "Flex Data Access3 -> "WebService".
    Try also to look at this thread http://forums.adobe.com/thread/223999

  • Call a web service in an interactive form within SAP

    hi experts
    I need to call a Web service into an interactive form within SAP, but to do so fails to press on the button that calls the Web service, the strange thing is that if I keep the PDF in my PC, then open that PDF download button works correctly if I am doing something wrong?, you can do what I need?.
    Greetings.

    Hi asdasdasdasd1,
    not sure if I fully understand your problem but it sounds like you are trying to execute your Web Service in the preview tab of LiveCycle Designer. When you do this, features of the Reader Extension Rights are not available so you will have to generate the form via the ADS and test the WS on the generated rendition as you have done.
    Let me now if this helps.
    Regards,
    Ben.

  • Calling Web Services form Custom Apps (11.5.7) Forms 6i

    Hi,
    My basic goal is to invoke a .net web service from a custom form. The web service is used to make a charge to a creditcard. I am currently using kind of convoluted method to achieve this. Below are the sequence of steps I do to achieve this
    1) I make a call to concurrent prog (host prog) and wait on the concurrent program to finish.
    2) From the concurrent prog's shell script I run the Java prog
    3) The Java prog invokes the web service and upon successful completion inserts a record into database
    4) In the form I check for the newly inserted record after the concurrent prog completes and treat it as a successful transaction.
    The limitations I have is Oracle 8i database, Forms 6i and EBS 11.5.7. Additionally I need to wait on the web service to complete successfully before I display a message to the user, this was the reason I was using a concurrent prog.
    Any suggestions/ideas to cut short the process is appreciated.
    Thanks,
    Srikanth

    This may seem a bit silly but could you install a 10g/11g database somewhere and then create a plsql package/function on the new rdbms to call the webservice? Then access the function via a dblink? I haven't done it with webservices but we do access plsql programs over dblinks all the time (we usually do keep them at the same rdbms version though).
    Edited by: mcharchu on Jan 8, 2009 8:56 AM

Maybe you are looking for

  • IPhone 5 not syncing with iTunes 10.0.3

    My iPhone 5 (version iOS 6.1.4) is not syncing with iTunes 10.0.3 ? When I plug my iPhone 5 into my Mac Pro (version OSX Mountain Lion 10.8.3) the iPhone 5 syncs with iPhoto but not iTunes ? The phone 5 is being charged via the USB cable into the Mac

  • How can I reset an apple ID without the email or birthday?

    When I was younger my parents had an earthlink account, and I bought my first iPod mini, and signed up for an apple ID. Skip to years later that email account is long gone, and my mom uses the same apple ID to sign in to both her new iPhone and the i

  • Any way to back up FAT formatted external hard drive to Time Machine?

    I'm a photographer, and right now my library of photos is a complete mess. I have about 20 GB of photos on one external hard drive and about 30 GB on my Mac's built in hard drive. I recently purchased a new external hard drive to use with Time Machin

  • How to add an "age / time counter" into DW?

    Can anyone assist on how to add an age / time counter into DW? In other words to say "Child X is now a years, b months old"? or "Product Z was launched A years B months ago"? Or, on the other hand, "You only have Z days & Y minutes left to enter"? Wi

  • How do I marshall a list using javax.xml.bind.annotation?

    Hopefully this is so simple a cave man could do it. I had to remove the Duke Stars for the time being. I found another bug in the program that may have resulted in my array being empty. I'm trying to marshall a standalone document of my DeckImpl clas