How to call java function through Web Service

Hello Experts,
I want to call a method through Java Web Service in my abap code. Is it possible ? If so, plz guide me.
Requirement: In SD module user enters the PAN, on after entering PAN in want to validate it on NSDL. For that a Web Service has already been deployed on a Web Server. and that the deployed Web Service I want to call in abap code.

Hi,
check this link
Re: Call to WS from one backend to other backend
regards
afzal

Similar Messages

  • How to call java fanction through Web Service

    Hello Experts,
    I want to call a method through Java Web Service in my abap code. Is it possible ? If so, plz guide me.
    Requirement: In SD module user enters the PAN, on after entering PAN in want to validate it on NSDL. For that a Web Service has already been deployed on a Web Server. and that the deployed Web Service I want to call in abap code.

    Hi,
    check this link
    Re: Call to WS from one backend to other backend
    regards
    afzal

  • How to call java function in javascript

    Hello Everyone,
    Can anyone tell me solution that:
    How to call java function in javascript?
    Thanks,
    VIDs

    You can't since Java is running on the server and javascript is running in the browser long after the Java side of things has finished executing. Assuming you're not talking about an applet here.
    But you can make calls back to the server through Ajax. All you need is something like a servlet on the receiving end which you can invoke through Ajax; from that point you can execute any Java code you want.

  • How to call java function from PL/sql in oracle applications

    I am trying to call a java function from plsql procedure. Can any one explain how to call java function, and in which directory I have to store my java function in oracle applications. Do I need to register that java function from Application developer.
    Thanks
    Kranthi

    http://www.oracle.com/technology/tech/java/jsp/index.html
    Good Luck,
    Avi.

  • How to call java function with parameter from javascript in adf mobile?

    how to call java function with parameter from javascript in adf mobile?

    The ADF Mobile Container Utilities API may be used from JavaScript or Java.
    Application Container APIs - 11g Release 2 (11.1.2.4.0)

  • How to show stock price through web services for a company?

    to get best performance.. what is the best way to show stock price through web services for a company on an office 365 site?

    Hi,
    you can also do like this.
    Create a page using sharepoint designer. upload it in sharePoint.
    https://support.office.com/en-in/article/Create-SharePoint-site-pages-0ee31678-ee55-40cd-9f48-ea8700035dbd
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer
    this is not the proper answer.. question was different.

  • How to call an ABAP based web service from a web page (form)

    Hi,
    I am trying to figure out how I can call my own developed ABAP based web service. I was able to successfully test it in the WS navigator and am now wondering what I need to do to embed the service call in a plain simply web page (form). Basically I'd like to create a web form allowing to specify the parameters and with a 'Submit' button pass the parameters to the web service and launch it.
    Is this possible or do I need some kind of SDK to accomplish this?
    Thanks for any hints and tips.
    Wolfgang

    Hi,
    refer the following link and this is for cosuming the web service form Web dynpro Java
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true
    and please go throught the following link if you want to cosume it through web dynpro abap and find the answer given by the Moderator Thomas Jung
    regards
    Manohar

  • How to call java function in Oracle forms?

    Hi I am having Oracle 9i with 10g Developer Suite.
    I am new to Oracle forms..
    I had one function in java getDatas()..
    How can I call this function in Oracle Forms..
    Pls help
    Thanks

    Thanks Francois,
    I want to display values from my java code in the Forms..
    For that purpose only i am installing 10g Developer Suite..
    The below is java code..
    public class DBTest {
              public static String callDB(int id,String name){
              String ss="Hai";
              Connection con=null;
              try{
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                   con = DriverManager.getConnection("url","id","pwd");
                   Statement st=con.createStatement();
                   System.out.println("Connected...");
              int r=st.executeUpdate("Insert into FORM_TEST VALUES('"+id+"','"+name+"')");
                   if(r==1){
                        ss="Inserted Sucessfully";
                   else{
                        ss="Insertion Failed";
              }catch(final Exception e){
              System.out.println(e);
              return ss;
         public static void main(String[] args) {
              int empid=102;
              String empname="Gilbert";
              String resultStr=callDB(empid,empname);
              System.out.println(resultStr);
    I want to dispaly Inserted or Insertion Failed in Oracle Forms..
    As per Gerd Volberg suggestion, i had placed DBTest.jar in
    E:\DevSuite\forms\java\DBTest.jar
    and in formsweb.cfg the below jar is added..
    archive_jini=frmall_jinit.jar,DBTest.jar
    But in Fomrs Builder-->Program-->Import Java Classes-->Oracle
    org,ice,com and subnodes are available.
    But my jar is not available..
    Is my way is coorect?
    Pls provide soln..
    Thanks

  • JavaFX : How to call java function that returns hashtable and manipulate

    I have a requirement to {color:#0000ff}create a java object in JavaFX script code{color}. Then call a java function using the created java object. The java function returns hashtable. Then traverse through each element of hashtable. Finally I need to create a similar structure in JavaFX.

    If you need to use a Java class that uses generics you need to take special steps. Since JavaFX does not support generics you need to create a java wrapper to hide the calls that use generics and call the wrapper class from FX.

  • How BPEL call an OWSM managed web services ?

    Hello All,
    I meet a case like this.
    I defined a web services( WS1), and build a BPEL process(BP1) to call WS1, then security BP1 by OWSM. When I want to call BP1, I included WS-Security in header, and put username and password there. It works fine.
    The I security the WS1 by OWSM ( Customer Requirement), then build another BPEL process(BP2) to call WS1. I also included WS-Security in header, and put username and password there. But it does not work and has Client.authenticationFault.
    I have checed OWSM document, but could not find valuable information about this.
    Anyone can help?
    Thanks and regards,
    Michael

    I successfully tested a scenario similar to yours. For that you may need to apply some patches. Here is what I successfully tested
    Client -> WSSE Headers -> BPEL -> HTTP Headers -> OWSM managed service
    Client -> HTTP Headers -> WSM service -> WSSE Headers -> BPEL -> HTTP Headers -> service
    Only thing I came to know lately is based on BPEL invocation binding you have to specify inbound credentials to BPEL so that you can propagate them to invoked partnerLinks.
    SOAP Binding -> use WSSE Heders to invoke BPEL
    HTTP Bindig -> use WWW-Authenticate headers
    Java API inoke -> use java properties
    Can you elaborate more on your scenario.
    Regards,
    Rajesh

  • How to call a secure external Web Service using Oracle BPEL and OWSM

    Hi,
    i have to invoke an external secure Web Service using SOA Suite 10.1.3.1, but i don´t know how to do this. Do i use OWSM gateway or Agent? how to configure the gateway or agent to pass the required security to the external secure web service.
    thanks in advance
    Dong

    Are you getting any errors? What type of XAI Class are you using?
    One thing I've noticed is that if you are making changes to the XAI Sender you will have to restart the environment before the changes can take effect.
    Also, if you are using RTHTTPSNDR as XAI Class you may have to include the HTTP Method - Post in the context.
    Hope this helps.
    Regards,
    Philip

  • How to call Axis 2.0  web service without wsdl

    Hi,
    Is it possible that I can call Axis 2.0 asynchronous web service in orabpel without wsdl.? As Axis 2.0 is not generating wsdl file.
    Regds,
    Farooq

    A Web Service without a WSDL describing it??? Seems like a contradiction to me...
    Are you 100% sure about this? I am not an Axis expert, but this sounds strange.

  • How to call the function before web application close

    How we can call a flex function before closing the browser in web application

    hello
    this link may help you  http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html.
                         Gajanan Hiroji | [email protected] | www.isacglobal.com

  • How to call Java function which returns byteArray

    context I have a class say
    public class ByteArray{
      public byte[] getByteArray(String str){
           return str.getBytes();
    }Consider i have object of ByteArray (some how) in native C code. I want to call getByteArray("Test") and obtain a byteArray. what is the C JNI function can i use?

    hy
    CREATE OR REPLACE FUNCTION GET_SAL1(NN in NUMBER)
    RETURN BOOLEAN
    IS
    BEGIN
    INSERT INTO STD(ENO) VALUES(NN);
    RETURN TRUE;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN false;
    END;
    you can call :
    if GET_SAL1(NN) then
    else
    error
    end if;
    I hope i understand
    Regards

  • Call rmi function from web services

    hi all
    I'm trying to publish this method but always it throws this exception:
    Exception in thread "main" java.security.AccessControlException: access denied (
    javax.xml.ws.WebServicePermission publishEndpoint)
    at java.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:
    546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.checkPlatf
    orm(EndpointImpl.java:162)
    at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(En
    dpointImpl.java:84)
    at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(Pro
    viderImpl.java:59)
    at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
    at proxyserver.Proxy.main(Proxy.java:70)
    This is my function:
    @WebMethod
         public float add2Num(float num1,float num2)
              float answer = 0;
              try {
                   answer = call.add2Num(num1, num2);
              } catch (RemoteException e) {
                   e.printStackTrace();
              return answer;
    /*call.add2Num(num1,num2)
    this  function is RMI function which i call it from RMI server */

    You will have to provide way more info. Please see the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Step 2 Asking Your Question; Provide Enough Information
    Ludek

Maybe you are looking for

  • [Tips & Tricks] Beginners guide to Bloodborne

    There is no doubt Bloodborne will be a difficult game. But do not fear, it's not unbeatable and as long as we stand together as a community we will manage it! Let's use this guide to help all the beginners and newbies, especially those who have never

  • How to get a Node with Empty Text in a JTree

    Hi, I want to get the node which does not have any text and I want to get it when the tree expands NOT when the user selects a node( thats pretty easy) Thankx in advance...

  • What is one time vendor??

    Hi, i have one query like this. Vendor name is taken from lfa1-name1.so,If vendor is OTA(one time vendor) then override that lfa1-name1 with BSEC-NAME1. However vendor is one time vendor based on account group LFA1-KTOKK = 'OTBD' . What is one time v

  • HP CM1312nfi driver won't install

    Hello, I just bought a new computer with a windows 8.1 Pro version on it.  I try to install the drivers but the install software won't let me.  It says: "The Operatingsystem on this computer couldn't be recognised as a supported operatingsystem.  Thi

  • Serial no is skipped in RG23C register

    Hi All,              In RG23C register, the serial number is skipped in between entries. how to overcome this problem. Regards sankar