Webservice calling through abap

Hi!
I need to know how to triger or call a webservice with abap?
Imagine there is a webservice existing I need a way to call it via abap
Thanks
Ilhan ertas

Hi
look at this pdf for the same
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a4433436-0301-0010-f2a9-9281ad574054
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
Regards
Abhishek

Similar Messages

  • Webservice call from Abap

    Hi
    <u>ABAP:</u>
    I wish to know ,Do we need to configure SNC for calling an Abap side webservice using X509 certificate ?I m calling webservice from Abap.I created a certificate through VisualAdministrator and asign it to R/3 in STRUST transaction.Now can I pass it to my Webservice so that it should not ask for user/password.Any other way ,if u can suggest for the same,is welcome.
    <u>JAVA:</u>
    If  i need to do the same with J2EE WAS webservice-then will the steps vary,as i feel no SNC can be configured in J2EE WAS.
    Regards
    Dhanya

    Hi,
      Besides that i think you can do it by configuring the ITS and calling the webservice by means of using BSP applications in ABAP .
    Regards
    Abhishek
    Message was edited by: Abhishek Raj

  • Parallel processing of webservice calls in ABAP Proxy

    Within an ABAP Proxy I want to call multiple services in parallel. My thougth was to encapsulate the webservice calls in RFC function modules and then to use "CALL FUNCTION STARTING NEW TASK ..." but anyhow I am wondering if it is possible to use a form within ABAP proxy to collect the RECEIVE data from the modules.

    The Problem was caused by the response of the external AXIS  WebService which contains a multiRef element in the SOAP
    body which is not supported by SAP simple transformation.
    The multiRef  was switched off on AXIS.

  • How to call Biztalk  through ABAP-DYNPRO

    Hi All  ,
    I want to call a function module which  in  BIZTALK Server through
    ABAP-DYNPRO ( by service call) . for this I require  Destination details ( in  service call ) .
    Can anyone please send me the Destination details or the approach  to follow for calling the  Biztalk ?
    Thanks in advance ..
    Regards
    Rahul

    Run a search on Web service calls from WDA.
    This topic has been addressed on numerous occassions.
    You can call BIZ-TALK using a web service.
    You could also call it using straight HTTP .
    There are classes in ABAP to allow you to write an HTTP client app if required.
    If possible go the Webservice route.
    IE have you Biztalk guy generate a WSDL for the call.
    The follow instructions on numerous threads on calling web services.
    Cheers
    Phil.

  • Calling a local Webservice from ECC ABAP - Am I on the right track?

    Hi all
    In my NW2004s landscape I have an ECC system (ABAP 6.40, Java not configured/linked) and an XI system (6.40).  My requirement is to call a Webservice (WS) from the ECC system.
    I've converted an existing Java class (that contains 3 methods) to a webservice (WS) using NWDS.  This WS has then been deployed to the XI system as it is the only one with a JAVA system.  I'm able to view and test the WS methods using the Web Service Navigator on the XI system.  The wsdl for the WS that was generated has the following format "http://<server>:<port>/<webservice name>/<configuration name>?wsdl  (No .asmx extension as per most of the examples on SDN...not sure if this matters).
    My understanding is that I should be able to create a client proxy in my ECC system (via Enterprise Services in SE80) using this wsdl and I can also configure a logical port throught txn LPCONFIG.  I should then be able to utilise ABAP to call this webservice? 
    I've found the blog "/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap detailing this (for a 6.40 system)... but when I attempt the program I get a soap 111 error code Unallowed RFC-XML Tag(SOAP_EINVALDOC).  
    Am I on the right track? Is it possible to call the Webservice from ECC ABAP? 
    There are no dumps for me to analyse and I've also tried putting on RFC trace with no success.
    Could it be that the WS is not correctly formed even though it works fine when tested from the WS Navigator on the XI system?
    Thanking you in advance.
    Malick

    Clive Pennington wrote:
    Thank you Eugene, your answer is most helpful.  I supose I just wanted to do everything myself really.  If when I have made my little movies, my animations and collated all my words and pictures I have problems assembling the documents then I can always get a professional to haul it together for me but I want to put in the donkey work first.  I know it is a lot of money for the software but now the pain is giving way a little I'm really quite enjoying myself.
    The planning which you have mentioned in your reply is of imense value I will start to do that immidiately, also the constant testing through Digital editions.
    All this is really helpful and I thank you for you reply.  I have made a brave attempt at some elementary annimation and posted them on youtube for testing, the urls are here if there is any interest.  Basic and time consuming but I can do this much faster now.
    http://tinyurl.com/348wjxg
    http://tinyurl.com/2wzuhql
    http://tinyurl.com/3yzjunk
    Thanks again............ Clive
    What comes through to me from your videos is that you know your material (of course, no pun intended) and that you have a clear sense of how to present it for clear communication to, and understanding by, your audience. Without this core, no amount of professional-level visual effects will achieve your goal, a great training program.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • RFC call through JCo or webservice

    Can anybody point differences(advantages/disadvantages) between a)calling a BAPI using JCo b)creating a web service for the RFC and calling the webservice fron WD application.
    regards,
    Bhupesh

    Hi Bhupesh,
               Jco is written in java and it convert the java calls into the native ABAP calls ..so comunication is done between a java program and r/3 system through the JCo.....if the BAPI is exposed as a webservice ..then the processing language use is XML and SOAP protocol any language which can create and process XML can communication to BAPI(r/3) system...like java,dotnet etc....else u need a middleware like JCO which can convert java calls to abap calls  for that language ...and now a days ....XML is commanly used by most of the Internet technologies...
    hope this will clear ur doubt.
    Regards,
    yash

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

  • Call the webservices in webdynpro ABAP.

    Hi,
      I have WSDL file. please tell me the procedure how to call webservices in webdynpro -ABAP.
    Thank you
    neelima

    Hi neelima,
    Refer This,
    <b>Consuming XI Web Services using Web Dynpro</b>
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3593. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    <b>Web service related scenario with XI</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9.
          (Reward Points If helpful)
    Regards
    Nandha.

  • Help regarding calling BRFPLUS function through ABAP code

    Hi,
          I have  a situation where I have to input  data into a BRFPLUS function  as a table (i.e the data is input as select options where list or range of data can be provided).The corresponding output is also in the form a table .I've created this function in BRFPLUS and is working fine .Now I have to call it through ABAP code.Can someone kindly  provide me with the probable code for this scenario.
    E.g:
            ZT_MATNR  is the table in brfplus representing the list of MATNR values input along with other such inputs to function module Z_FM
            ZT_ATM   is the  resultant output table  of the function  which contains several fields.
    Now I have to call this BRFPLUS function with help of ABAP code.Could someone kindly help.

    Hello ,
    There should be a number of BRF+ tutorials available in SCN which discuss the FDT APIs. You can have a look at them to get an idea of the various APIs available and their uses.
    For your usecase, you should do the following.
            lo_fdt_function         TYPE REF TO if_fdt_function,
            lo_fdt_result           TYPE REF TO if_fdt_result,
    * Get function handle
          CALL METHOD lo_fdt_factory->get_function
            EXPORTING
              iv_id       = lv_function_id
            RECEIVING
              ro_function = lo_fdt_function.
    where lv_function_id is the GUID of the BRF+ function . You can either make it a constant , or you can use a FDT API to get the function GUID from the BRF+ application name and function name.
    *   Set function context
        TRY.
            CALL METHOD lo_fdt_context->set_value
              EXPORTING
                iv_id    =
                ia_value =
    This is one way to set the input context ( pass the input to the BRF+ function to process ). There are other ways to do this as well. Which one you use would depend on the kind of input you want to pass.
    * Execute BRFPLUS function
      TRY.
          CALL METHOD lo_fdt_function->process
            EXPORTING
              io_context = lo_fdt_context
            IMPORTING
              eo_result  = lo_fdt_result.
    * Get result output
      TRY.
          CALL METHOD lo_fdt_result->get_value
            IMPORTING
              ea_value =
    Another direct way of doing it would be to use the method PROCESS of the class CL_FDT_FUNCTION_PROCESS.
    I have not gone into much explaination here , but it should provide you an idea of how you can go about it.Read the SCN docs on the APIs to get a better idea , or better still if you can get hold of a copy of the BRF+ book by Carsten Ziegler , you will get an end to end explaination of all BRF+ APIs in it.
    Regards,
    Indranil.

  • ABAP Webservice Call issue

    Hi
    I am trying to use webservice from ABAP ECC to external server (Webspehere ).
    I have configured RFC connection G Type HTTP connection to external server in SM59.
    Connection sucessfull.we use basic authentication scheme to access external server.
    I am able to call webservice method and getting the response in my program. but while calling second time it doesnot able to get the response. when I see the request message to external server second time, looks like some cookie adding to the request and this is causing no response back to my program.
    I have raised protocal to HTTP1.1 and also selected "No Cookies"  I got few tests sucessfullbut after some time same cookie issue.   Looks like somewhere request was going with cookies...but not sure where....
    anybody have this kind of issue before while calling webservice...? or how to make this cookie to not attach to request ?
    or is this cookie is because of authentication set to token system instead of basic authentication at external server ?
    Please suggest
    Thanks
    Praveen

    Adding details.......
    Experiencing cookie issue while calling webservice to Tivoli system hosted on IBM websphere.
    Steps we have done as follows:
    1. Created a ABAP Proxy class from Tivoli WSDL.
    2. Configured T-Code LPCONFIG to point to above proxy class and logical port.
    3. Configured  SM59 RFC connection to point to Tivoli server using basic authentication mechanism (User ID/Password).
    4. Called webservice method from ABAP program.
    After above steps, we are able to call the webservice method successfully but second time we are experiencing Cookie being adding to the request and eventually no response back to our program.
                When we investigated this cookie issue with IBM Websphere people, they says thay have enabled SSO Config instead of basic authentication and that's why a cookie is being added to the request and fails. when they disabled SSO, we are able to call webservic method sucessfully sevaral times. but now this cannot be no longer disabled as other applications are using SSO enable option. So, we are thinking, is there something that can be done in SAP ECC itself as we see the option of using SSO in SM59 instead of User Id/Password but not sure How?
    If anybody has undergone this scenario/SSO config from ECC SM59 successfully, Please reply back.
    Thanks in advance
    Praveen

  • Call DTP Through ABAP

    Does anybody knows if there is a way to call a DTP through ABAP?

    Hi ,
    You can call DTP by implementing  class CL_RSBK_DTP.
    I have attached a sample code below.
    Create executable program  (se38) with following code:
    DATA:  CLAS_DTP TYPE REF TO CL_RSBK_DTP,
                 DTP_REQ TYPE REF TO CL_RSBK_REQUEST,
                 L_DTP TYPE RSBKDTPNM.
    L_DTP = 'DTP_8W266521AYMB0RM3U7SXM5J72'.    " DTP id
    CLAS_DTP = CL_RSBK_DTP=>FACTORY( L_DTP ).
    TRY.
        CALL METHOD CLAS_DTP->IF_RSBK_DTP_EXECUTE~CREATE_REQUEST
          RECEIVING
            R_R_REQUEST = DTP_REQ .
       CALL METHOD DTP_REQ ->IF_RSBK_REQUEST~DOIT
          EXPORTING
            I_NO_COMMIT = RS_C_FALSE.
    CATCH CX_RS_NOT_FOUND .
        CATCH CX_RS_FAILED .
    ENDTRY.
    Regards
    MG

  • Calling of webmethods through abap programme

    Hello experts,
    There is requirement in my project related to webmethods.i have to create an ABAP programme(REPORT) To download a report using a new webmethod service.The programme will call the webmethod service using the following parameters:
    - Merchant ID
    - Password
    - Report Name/Format
    - Report Date.
    The wM service will pass back the report contents to the calling program.  The program will then build an output file onto the SAP UNIX interface directory for subsequent processing by  another program .
    can any one please send me a brief pseudocode,as i don't know webmethods.
    please help me as this is a very crunch situation.
    regards
    Prasun

    Hi Prateek,
    i don't know which version i am using,i don't know how to invoke webmethods through ABAp programme.i just wanta a brief pseudocode for the same.
    regards
    Prasun

  • Error in Webservice Call HTTP error (return code 404, message conn failed)

    Hi
    We wish to call  a standard EP7 webservice through ABAP.
    When we try to create consumer proxy , we get the following error.
    HTTP error (return code 404, message "conn failed")
    Message no. SPRX090
    ==> Display Error Document
    If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
    Check List for Setting Up a Connection to the Service Repository
    1. The address of the Enterprise Services Repository must be known in the SAP system
    Check with report SPROX_CHECK_IFR_ADDRESS
    The address is taken from the following parameters in the exchange profile ('Connections' section):
    com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
    com.sap.aii.connect.repository.httpport: Port (for example, 1080)
    com.sap.aii.connect.repository.contextroot: Root (for example,rep)
    The logon data is also read from the exchange profile ('ApplicationSystem' section):
    com.sap.aii.applicationsystem.serviceuser.name: User
    com.sap.aii.applicationsystem.serviceuser.pwd: Password
    As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
    The RFC destination has to be set up using transaction SM59 and should look like this:
    RFC Destination: SAP_PROXY_ESR
    Connection Type: G (HTTP Connection to External Serv)
    Description1: ESR for Proxy Generation
    Target Host: esr_host
    Service No: 1080
    Path Prefix: rep
    Logon and Security:
    Basic Authentication: active
    User: esr_user
    Password: esr_password
    2. The HTTP Framework of the Web Application Server must function
    Check with report SPROX_CHECK_HTTP_COMMUNICATION
    If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
    3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
    Check with report SPROX_CHECK_IFR_RESPONSE
    you can also login in dev and go to Xn se91
    enter msg id SPRX and msg no 090
    select the message and click on long text..
    you get the same message in a formatted manner..
    How to get rid of this ?
    Regards
    Rajendra

    Hi
    we have given the correct path as we have tested the webserive from
    other technology (.net) by providing the same path.
    regards
    Rajendra

  • Webservice consumption in abap working, but which URL to be checked.

    Dear Experts,
    I am working on Consumer Proxy in SOAMANGER,
    I have created a logical port and have done all the settings.
    When i click on Ping Webservice, it is returning the message as ping is successfull.
    When through ABAP also i am not facing any error.
    But where do i check data that is going to that URL
    I am using SOAP UI.
    Regards,
    Kartheek.

    Hi Kartheek,
    Traces are active for some time like 2 hours.
    Check below thread for config
    Get the XML/SOAP request created by an ABAP Web... | SCN
    Once you save config in SRT_UTIL, it will again show the web service calls.

Maybe you are looking for

  • How do i delete a the registered mailbox and add it back again?

    Basically, i had my hotmail set up as the main mailbox but then it would only refresh half of my emails, so i decided to try and add my gmail account on and that worked fine, so i thought it might work if i deleted my hotmail and re-add it back it, i

  • Email deletion / reconciliation no longer working after upgrade to OS 4.5

    Curve 8310.  BIS, email account is OWA web access. Before upgrade when I removed messages from the server they would automatically delete from my blackberry.  Since upgrading to 4.5 this no longer occurs and I have to delete messages from my handheld

  • Closing/ending a session in jsp

    Hi guys i need help ending my session. I am using session just for parameter passing, my webpages doesnt need login logout function. These are my basic code: page1.jsp <% String prodlinesel = request.getParameter("prod_line"); session.setAttribute( "

  • Forms 10 / mouse navigation

    Hi Friends, I'm having trouble with the mouse navigation in WebForms. (I know there are several threads about this topic already, but I didn't see any solution - if there is some, please would someone take these tomatoes off my eyes ..) I'am using De

  • Result set plz iam confused

    Hello sir, I have database for names ok it works fine but if iam entering the names with spaces like Raj kulkarni which is the full name of person it is going into the database but when i access into another form for other module through rs.getString