Authenticating an R/3 web service in adobe form

Hi,
Please let me know how to authenticate an ABAP based web service in an adobe form being developed in WD Java( done in NWDS by creating a data connection using WSDL of the web service )
I need to pass the sap user id and password but I am unable to figure out where to do the same.
Thanks,
Lisha

Hi Juergen,
Thanks for the response.
My scenario required a completely offline adobe solution wherein once the form created via NWDS is deployed and then stored on the local system, then the form can be used completely offline i.e. on click of submit, it sends the data to SAP R/3 and returns the BAPI output : all this without any web dynpro / WebAS runtime environment.
I was able to successfully do this, the only problem I got was that the web service created in the backend for the function module should have authentication as "none".
And surely this is not a good practice because of security considerations, hence I wished some kind of R/3 authentication in my adobe form.
I will surely try the workaround you have provided.
Thanks again,
Lisha

Similar Messages

  • Call XI Web Service from Adobe form. URGENT pleaseeee

    Hi everyone!
    Help!I need to implement an Adobe Interactive Form, this form has to call / consume a XI Web Service. I 'm able to call a normal web service, I got the "Interactive Forms and Web Service Integration" tutorial. The problem is when the button who calls the XI WS, there is an error: Error when trying to access the file:..............
    any idea? I'm sure there is a problem of authentication, but I don't know how to pass these parameters from adobe to the WS. Maybe the data connection creation have to be in a different way....
    Any Idea will be great
    Thank you in advance
    Leslie.-

    Hi,
    http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html
    http://staff.washington.edu/fox/notes/ws_client_cs.shtml

  • 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,

  • Using Table returned by Web service in Adobe Form

    Hi Experts,
    I am working on a scenario wherein i am supposed to have a table as a response parameter in a RFC based webservice.
    When this web service is stand alone executed it gives back the records in the table.
    Now this web service is required to be integrated into the Adobe Interactive Form, On execution of this webservice from the Form, it does not return any result in the table.
    Am i missing something?? or is it related to some tricky binding or something??
    Please help!!
    Any help would be appreciated.
    Thanks
    Amita

    hi ,
    i have this problem .
    how can i solve this problem.
    Web Services Return table only see first row.
    Thanks.

  • How to Consume web service in Adobe live cycle

    Hi Experts,
    I created a web service from FM and trying to consume that in Adobe live cycle. My problem is:
    1. I don't know how can I test this webservice layout?
    Could you please provide me the steps on how to consume it properly and how to test it becuase for me its not giving any response back.
    I will appreciate if you can send a step by step document at tyagi.sandeep10atgmaildotcom
    Regards,
    Sandeep
    Edited by: sandeep tyagi on Oct 16, 2008 1:36 AM
    Edited by: sandeep tyagi on Oct 16, 2008 1:37 AM

    Hi Sandeep,
    Please go through this pdf. It will help you to integrate web service in adobe form.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
    Thanks & Regards
    Sagar Ingalwar
    Edited by: Sagar Ingalwar on Oct 24, 2008 9:29 AM

  • How can I call a web service via Adobe Reader XI?

    Hi all,
    I have created a document using LiveCycle (Trial) to get something from my custom web service, using Adobe Pro to open the file and its success to call the web service when clicking the call button, however, when I try to do the same thing using Adobe Reader XI, seems not work. Please help!
    Best Regards,
    Black Leong

    The only way it can work with Reader is if the document is Reader-enabled with LiveCycle Reader Extensions or the similar product from Datalogics. Acrobat is not able to add the corresponding usage right.

  • 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>

  • 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

  • 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.

  • 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);
    }

  • 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

  • How to put water mark in web dynpro abap Adobe forms

    Hi
    Can any body tell me how to put water mark in web dynpro Abap adobe forms ,
    actually I need to print water mark as back ground in gray color.
    Points will be rewarded of Helpful answer..!
    Regards,
    Sidram

    Hi,
    for more information about layout options in forms, go to your form in transaction SFP, layout view and choose Help -> Adobe LifeCycle Designer Help. There you find information on page layout, e.g. " Objects can be placed anywhere on a master page, inside or outside the content area. As a general rule, do not place objects inside the content area unless your intention is to have other objects laid down on top of the master page objects when the form is rendered. If you are setting up a watermark, place it inside the content area. "
    Besides, there's an Adobe forum where you might get more information for such Adobe questions.
    Regards, Heidi

  • How to consume web service in interactive forms?

    Does anyone knows how to consume the web services in Interactive forms?
    Where my interactive forms is created using SAP Netweaver and my web services is created using myEclipse?
    Your help wil be greatly appreciated...and i would not be stingy with the points i award as long as it is useful to me..
    thanks...

    Check this
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f09cf040-237b-2a10-54bb-bbcbf2d48639
    Regards,Anilkumar

Maybe you are looking for

  • Error: initialization error: file java\lang\Object.class not found

    when the error listed my classpath's its not the same list that is in my Windows XP environment variable list? I am on 9.0.3 I am assuming I have to set some varible to my new jdk\bin directory. I reinstalled it. I have set it to use jdk 1.4 using th

  • Open a Numbers Document when it is already open?!?!?

    Hello, i use Numbers (latest Version) in a little Team. My Problem is: One User open the Document "testname.numbers". This File is located on a server. The HD has no permissions. OK, the User has the file open. And now comes a second user on a second

  • Using headless with JAVA 1.3

    i have wrote a program which draws images, acording to its input. when working with java 1.4, one can set the system property "java.awt.headless" to "true", and by that creating images in offscreens programs. I am using a server which runs on Free BS

  • Custom functions and operation - PE04

    Hi, I required a solution for my scenario. I have two absence quota type QA1 and QA2,  if a employee has the basic pay less than 8000 then he will get assigned with QA1 and if a employee has a basic pay is equal to or greater than 8000 then he get as

  • Illustrator crashing on save

    Here's the error messages I get. I am taking a jpeg file and using live trace. The file was a PSD photo merge that I made in PS, but it was having issues in Ai so I tried it as a JPEG. I need a high resolution digital trace of the image. I get the tr