Calling Webservice from Adobe form - Webservice URL  Issue

Dear Friends,
  I have developed a webservice and calling it from an Adobe form. I have downloaded the WSDL file from tcode SOAMANAGER. When I create a data connection from the Adobe form  I use this WSDL file and the form elements gets created automatically and I drag and drop them into the form. The issue is when I click on the Submit(Execute) button the Webservice URL is always pointed to the client from where the file was downloaded and its hard-coded ( for example if i download the wsdl file from client 300 then the URL would be http://<location>/sap/bc/srt/rfc/sap/z_web_getmat/300/z_web_getmat/z_web_getmat). So if i execute the form from client 200 its not working. How to make this URL dynamic so that the webservice gets executed from the client from where this form is called. Please advice.
Regards
Sapient

Hi,
You have to handle it in your form on submit button calling the web service:
Write below java script code at submit event to change the URL at run time:
var tempsoapAddress = xfa.connectionSet.DataConnection.getElement("soapAddress").value;
var tempwsdladdress = xfa.connectionSet.DataConnection.getElement("wsdlAddress").value;
var ServerPath = body.systemConfig.system.rawValue;
var client = <Get Client from a data attribute>
var Soap_PreServerPort =  "http://";
var Soap_PostServerPort =  "/sap/bc/soap/rfc?sap-client=";
var SoapAddress = Soap_PreServerPort + ServerPath + Soap_PostServerPort + client ;
var Wsdl_PreServerPort =  "http://";
var Wsdl_PostServerPort1 =  "/sap/bc/soap/wsdl11?services=ZBAPI_PO_CREATE2&amp;sap-client=";
var wsdlAddress =  Wsdl_PreServerPort + ServerPath + Wsdl_PostServerPort1 + client ;
xfa.connectionSet.DataConnection.getElement("soapAddress").value = SoapAddress;
xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = wsdlAddress;
xfa.connectionSet.DataConnection.execute(0);
xfa.connectionSet.DataConnection.getElement("soapAddress").value = tempsoapAddress;
xfa.connectionSet.DataConnection.getElement("wsdlAddress").value = tempwsdladdress;
xfa.connectionSet.DataConnection = null;
Change the variable wsdlAddress as per your requirement. The above code is just a sample.
For getting the client pass it in a datasource variable attribute at time of downloading the form. At time of submit get the value of that variable and use it to form the url.
Regards,
Vaibhav

Similar Messages

  • Calling webservice from Adobe interactive form

    Hi,
    I have created RFC based webservice and  Adobe form. I have imported the wsdl into my data connection and mapped my fields accordingly.
    I have created a pdf and i m trying to call the webservice , initially it pops up 'A webservice is being called' and later  'error attempting to read from the file'.
    Not sure what is missing in this.
    Any pointers on this would really help.
    Thanks,
    Saujanya

    Hi raghava,
    I have just solved this issue in the SOAMANAGER setting up User/Passwd on the Web Service´s Configuration. Try to follow these steps:
    Execute SOAMANAGER transaction.
    Search (and select) the Web Service you are working with.
    Go to configuration TAB and then push "Display".
    Push "Edit" and then look up for User/passwd on "Security" TAB. There, set values (take a look at the image)
    After doing this, insert Web Service on the ADOBE and try again.
    This has been enought for me.
    Good luck !!!

  • Problem calling WebService from Oracle Forms created by JDeveloper

    Hi All,
    I am trying to call a Webservice from Oracle Form using JAVA Class created by Oracle JDeveloper.
    The Java Function (in JDeveloper) is as follows:
    public Vector GetPIValue(String TagName, String ReadingTime) throws Exception
    URL endpointURL = new URL(endpoint);
    Envelope requestEnv = new Envelope();
    Body requestBody = new Body();
    Vector requestBodyEntries = new Vector();
    requestBodyEntries.addElement(TagName);
    requestBodyEntries.addElement(ReadingTime);
    requestBody.setBodyEntries(requestBodyEntries);
    requestEnv.setBody(requestBody);
    Message msg = new Message();
    msg.send(endpointURL, "http://tempuri.org/GetPIValue", requestEnv);
    Envelope responseEnv = msg.receiveEnvelope();
    Body responseBody = responseEnv.getBody();
    return responseBody.getBodyEntries();
    When this Class is Imported into Oracle Forms the Function is converted into the following PL/SQL code:
    FUNCTION GetPIValue(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN ORA_JAVA.JOBJECT IS
    BEGIN
    Message('param passed: '||a0||' - '||a1);
    cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPIStub');
    mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Vector;');
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    Message('I am Here');
    RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
    END;
    When I am calling this Function from Within Forms and Passing into it the Parameters, I am displaying some Debugging Messages. When the Code reaches "JNI.CALL_OBJECT_METHOD" there is NO RESPONSE from the Webservice and nothing is moving forward after this Point...
    A similar Webservice that can be Tested is:
    http://www.webservicex.com/CurrencyConvertor.asmx
    with WSDL file:
    http://www.webservicex.com/CurrencyConvertor.asmx?wsdl
    Kindly note that this Webservice is running properly from the Web Browser but the call from Oracle Forms is not Succeeding!!!! :-((
    Any help is much appreciated.
    Regards,
    Baz

    Hi,
    Yes, you need to compile your source files with JDK 1.3 (since JInit 1.3.x.x uses JDK 1.3).
    Other solution would be to use JRE 1.5 (instead of JInitiator).
    Check out [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=550563] on how to use JRE1.5
    -Arun

  • Calling webservice in Adobe Form

    Hi,
         I am calling a webservice in Adobe form.
    I am using following format - http://<host:port>/sap/bc/soap/wsdl11?services=<service>@sap-client=<client>
    It works fine in LCD.. but in in SFP tcode getting the following error
    ADS: com.adobe.ProcessingException: CORBA Connection to(200101)
    Sam

    Reposting again with more details

  • Calling BAPI from Adobe Interactive Form

    Hi Guys,
    I have a requirement from my client to work on interface using BAPI for creating Service notification. Idea is that users will fill an Adobe interactive form (AIF) on company INTRANET and as soon as user press a SUBMIT button on the adobe form, BAPI should be called to create a SERVICE NOTIFICATION (Tcode IW51). I have work with BAPIs and I know the BAPI name (BAPI_SERVNOT_CREATE) to create SERVICE NOTIFICATIONS, but not with this kind of interface. Please advice me how to go about it and if some one can share any documentations to accomplish this task.
    Another developer is in charge of developing the AIF and I am responsible for ABAP side .
    Thanks in advance.
    mini

    Hi Mini,
    Kindly check the webDynpro ABAP section of Intercative form homepage. at - https://www.sdn.sap.com/irj/sdn/adobe.
    You can create a portal application and call your BAPI. Other options include - webDynpro Java, calling webservice (if the call can be unsecured). You will be able to call secure web services from adobe forms from future versions afaik.
    Thanks and Regards,
    - anto

  • Webservices in Adobe form fails even when it works fine in Portals.

    Hi All,
    I am new to web services in adobe form, can somebody help me to understand the reason of failing web service call in my adobe form.
    We are working on a simple adobe form with a simple webservice.  the web service is in SAP CRM 7.0 and we are designing the form in Livecycle designer stand alone not through SFP tcode.
    problem is when we execute the web service from adobe form nothing happens.
    There is no script in the adobeform to check if the web serive is called. the technical team claims there is no hit happening to the service. but when we execute the same web service with in a simple web dynpro app in portal it does work.
    earlier we had some similar forms with web service which used to work, now they are also not working from adobeform.
    Are we missing something, when importing/data connection  a webservice how do we make sure from the form that the connection and trigger are successful.
    Please let me know if you need any more information.
    Thanks & Regards
    Sai Krishna.

    Hi All,
    Just a small update on the query I posted.
    I searched tru and found couple of posts in Adobe fourm which says
    Adobe readers cannot execute web services, to do so we need to have Reader Extension on the Adobe reader.
    Is this the problem for my form, if i just dont understand why such restrictions for developers at the design time itself..?
    Regards,
    Sai Krishna.

  • Calling Report From Oracle Forms

    Hi
    I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
    Thanks.

    As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
    Adi

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • Calling reports from oracle forms 9i

    Hi
    I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
    declare
         pl_id2 ParamList;
         pl_name2 VARCHAR2(30) := 'liste2';      
    v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
    pl_id2 := get_parameter_list(pl_name2);
    if (Id_Null(pl_id2) )THEN     
    pl_id2 := Create_Parameter_List(pl_name2);
    IF NOT Id_Null(pl_id2) THEN     
         add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
    END IF;
    end if;
    IF NOT Id_Null(pl_id2) THEN
    if(:mois is not null) then
    v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
    message(v_rep);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
    ELSE      
    message('Error when running report');
    END IF;
    end;
    the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
    so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
    Rq: the report my_report is running very well in report builder.
    does someone see where is the problem so can help me??
    thanx.

    Hi,
    This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
    http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
    and check the detailed error occured.
    This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    Regards,
    -Bulent

  • Cannot save file as pdf from adobe form central

    I cannot longer save file as pdf or excel once it downloads from adobe form central, can someone please help me as I have a whole hosts of applications waiting to be downloaded

    Could you please one or more of your forms with me so I can try this as well?  Add [email protected] as a Co-author. 
    -Jeff Canepa
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?

    How can I embed an DOCTYPE HTML Form from Adobe Forms central into a responsive html5 page?
    -Luis

    Hi,
    You can embed the form on your website, but you need to make sure that javascript has been enabled in the browser. You need to copy the embed code and add it into your HTML code. If you would like FormsCentral to generate embeded HTML form without using javascript, you may post a feature request and vote it. Hope it helps! Thanks!
    Kind regards,
    Shiyao Bao

  • Can I convert a from from Adobe Forms Central to a PDF Form?

    Can I convert a from from Adobe Forms Central to a PDF Form?

    Yes, you can save a FormsCentral form as a PDF form. In FormsCentral, the menu item when in design view is: File > Save as PDF Form

  • Update SAP from Adobe forms

    Hi all,
    I use BAPI with web service to update several line items (e.g. of a PO) from a table in Adobe forms to SAP.  I expect that all the occurrences of the line items to be transferred to the func mod. via the defined table interface, but only the last line got transferred and the others seem to be overwritten.  I have tried adobe fixed and dynamic tables but that did not change the outcome (In another application, I'm able to display all line items from func. mod. to Adobe form).  Question : What do I need to do to have ALL the line items transferred  from Adobe form to the func. mod. ?            
    Components used : Designer 7, SAP ECC 6 level 9 .
    Please, provide help with concrete and proven information only.
    Best regards,
    Nancy

    Hi Vaibhav,
    Thanks for the reply.  I use table and not structure but somehow all the records did not get transferred.  So far i've been able to get the data to and from SAP without web dynpro and hope to be able to get this scenario to work as well.
    Regards,
    Nancy

  • Connecting SQL server from Adobe forms

    Hi Experts,
    I want to know, whether it is possible to connect SQL Server database from Adobe Form directly at runtime without WAS/ADS. If it is possible, please provide any material to proceed further.
    Please help.
    Thanks,
    Rajee

    Have a look at the following document, it explains how to use a MS Access database but it should also work when using a ODBC Data source configured for a MS SQL database.
    [Providing interactive database lookup from forms|http://www.adobe.com/devnet/livecycle/articles/lc_designer_db_lookup_tip.pdf]
    I hope I could help you.

  • How SAP smartforms are different from Adobe forms

    Hi,
    Can  anyone explain me how SAP smartforms are different from Adobe forms
    Tthanks&Regarda
    Rama Devi

    Hi,
    Both are same but adobeforma are advance version of smartforms
    for more details check with the following links
    Smartforms:
    tcode:smartforms
    [Smartforms|http://help.sap.com/saphelp_nw04/helpdata/EN/a5/de6838abce021ae10000009b38f842/content.htm]
    Adobeforms:
    tcode: sfp
    [Basics of Adobe|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d4fe7fca-0b01-0010-569a-9a9c1ddf4]
    [Adobeforms|http://help.sap.com/saphelp_nw70/helpdata/EN/c8/4adf7ba13c4ac1b4600d4df15f8b84/content.htm]
    Hope this helps you.
    Regards,
    Rajani

Maybe you are looking for

  • OIM 11g: Error while prepopulating process form

    I have a custom resource, with 4 child tables. When trying to provision the resource to a user when I click through to start populating data, I get the following error: Target Class = com.thortech.xl.util.adapters.tcUtilDateOperations <Mar 17, 2012 9

  • Forcing Acrobat to display a PDF with an accuracy of a single pixel

    This is a bit strange question, I didn't know where to put it... I'm developing a program for creating a pdf from a GUI interface sample. This means that I need to replicate what is in the GUI to the PDF EXACTLY. And when I say that I mean to the pix

  • "Name Dictionary" not found in "document catalog" of PDF

    Hi All, I am working with a PDF parser and while parsing a PDF file I found that while reading document catalog of PDF, the "Name Dictionary" which I got is not present in PDF file but When I updated to Adobe Reader X it seems to be working fine. So,

  • How do I change the Not Editable flag of a variable?

    How do I change the Not Editable flag of a variable?  I need to edit the variable but right now the Not Editable box is checked.

  • Usage of FM BUPA_CENTRAL_CI_CHANGE

    Hi Experts,               I have created a customized field in BP transaction using EEWB. I was uploading the data through a BAPI (BAPI_BUPA_FS_CREATE_FROM_DATA). Now since this field is added through EEWB so these wont be reflected in the BAPI. I wa