Web Services in WDA.

Hi Experts,
How do i trigger a web service from a WebDynpro ABAP component. Any idea regarding it is invited.
I intend to use a Web service belonging to a different server, in my system so that i can invoke trhe functions and rettrieve or update the data there.
Any suggestions or clues are welcome.
Thanks and regards,
Anto.

Hi Sascha,
Thank you for your answer, I am using a standard Enterprise service. Could you please explain on how to go about by the services frrom Enterprise registry in WDA? I went through the link and other docs available, but with little success.
Kindly put acrosss your suggestions ya ideas.
-Thanks and Regards,
Anto.

Similar Messages

  • WebServices Creation and Consuming a Web Service in WDA ABAP

    Dear Experts,
    We are on SAP-ABAP Release 7.00 / SAP NetWeaver 2004s / SP19.
    Problems and Confusions galore.
    WebService Consumption
    We have been given an external webservice which need to be consumed. When I try to create a proxy thru SPROXY or thru SE80, it throws an error : Proxy Generation : Errors Occured (In German)/ Exception Occured in Library handler/ Not Implemented / No vendor specified.
    What am I doing wrong?? Any step by step !!! Pls. help.
    I have reached a point where I have absolutely no idea where to go.
    +WebService Creation for an RFC FM +
    WSDL created (later came to know its available by default), its visible in SOA Manager but execution doesn't throw up the screen wherein one can input field values to test the service. Although. the XML file is generated.
    Any help would be highly appreciated.
    Please Note :
    1> XI Framework is NOT available
    2> on Calling TCode : SPROXY, it shows "No connection to ESR"
    Thankx in advance.
    Regds,
    Srini

    Please post your questions in the correct forum. This forum is only for Web Dynpro ABAP related questions.

  • How to call web services in WEB DYNPRO ABAP

    Hi ABAPER'S,
    Please let me know how to call web services in web dynpro.
    Thanks,
    Sandy.

    Hi Sandy,
    Please check this blog..
    /people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    also cehck this...
    call the webservices in webdynpro ABAP.
    calling webservice in webdynpro component
    Re: Web Services in WDA.
    Cheers,
    Kris.
    Edited by: kissnas on May 24, 2011 11:37 AM

  • WDA and Web Services

    I have a Web Service (WSDL URL) that I would like to consume so that I can retrieve data to be displayed in my Web Dynpro application.  Can I access a Web Service using Web Dynpro for ABAP or must I use Web Dynpro for Java?  Please point me to any documentation if possible.
    Thanks,
    Ashley

    hi,
    maybe these links can help
    Consuming Webservice in WDA.
    grtz,
    Koen

  • How to consume Google REST web service

    Dear All,
    I have a task to embed Google Maps into web dynpro and/or CRM WebUI.
    There is no problem with embedding only map with route on it, but I need also calculated distance.
    In WebDynpro I've just created iFrame CHIP component which targets: http://maps.google.pl/maps?output=embed and two CHIPS with import parameters to give source and destination address. Route is calculated and drawn.
    Problem is with the distance, because the only way is to consume google web service (which is not SOAP, so I can't use service consumer). It must be something like web request.
    URL which I need to access is:
    http://maps.googleapis.com/maps/api/distancematrix/xml?&mode=driving&sensor=false&origins=Warsaw&destinations=Hamburg
    or
    http://maps.googleapis.com/maps/api/distancematrix/json?&mode=driving&sensor=false&origins=Warsaw&destinations=Hamburg
    where origins and destinations must be connected with import CHIPS. How to access such service in a proper way?
    Second thing is that I have to parse response.. it could be XML or JSON format. I just need summary distance. Any idea?
    Btw - I'm quite fresh with WebDynpro and WebUI, so I'm looking for good 'HOW TO' guide. Can you recommend something which is good to start with?
    thanks in advance

    Hi,
    check this reference to start with: [How to integrate google maps in Web Dynpro ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0bca5ae-3c5c-2d10-938d-a81787f59ace?QuickLink=index&overridelayout=true]
    Also this demo by Thomas Jung Sir: [Google Maps: Flash Islands in WDA|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80f16eef-91ef-2b10-4fb5-d709436f3cc3&overridelayout=true]
    hope this helps u.,
    @moderators: Don't Close this thread instead move to Web Dynpro ABAP Forum
    Thanks & Regards,
    Kiran

  • Web Service call from WD4A

    Hi All,
        I am in need of calling a web service from my WDA. I havent worked on the same before. Please can some one help me in learning the same.
    Thanks,
    selvakumar M.

    [Creating a Web Service|http://help.sap.com/saphelp_nw04/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm]
    [Consuming a web service|http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm]
    Abhi

  • Web service using an external api (WSDL)

    Hi,
    Need to use a web service from google. I have the wsdl file with me.
    1. Since I am not clear on web services - need a step - by - step procedure on how to use this wsdl file in a WDA app.
    WDSL link: http://api.google.com/GoogleSearch.wsdl
    2. I also need a really simple tutorial on how to use external web services so that i can implement more of them into my application.
    Thanks.

    hi ,
    check this link ,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Regards ,
    venkat .

  • Calling Web Services between two SAP systems.

    Hi Experts,
    I am trying to trigger a web service  created in one of the SAP system from a different R/3 system through WDA.
    Kindly help me out on what are the configurations to be done like linking two systems (do i require this?) etc..
    I have successfully obtained the WSDL file, but could not use it in my second system. It says , it encountered an error. I wonder if i am required to do any configurations.
    All suggestions are welcome.
    Thanks and Regards,
    Anto.

    Hi Antony,
    By Proxy Object, I meant Class to consume WebService in your second system.
    Lemme summarize, what you have done and lemme know where I am wrong.
    System A.
    You exposed an RFC enabled Func Module or BAPI as a webservice.
    After this you have checked it using WSADMIN, and you have tested this as well.
    And finally you saved the WSDL file of this Web Service.
    System B.
    you create a Proxy Object as specified in the link I provided.
    you create the RFC destination n did the Logical Port Configuration  as per that link.
    Now you can use this proxy class any where , in any abap code.
    you can use this in WDA as well.
    But before doing so, I would suggest to write a test report as suggested in the link and test if your webservice is working fine.
    Now please tell me where did you do the things differently.
    Regards
    Pushkar

  • Error while invoking a WS-Security secured web service from Oracle BPEL..

    Hi ,
    We are facing some error while invoking a WS-Security secured web service from our BPEL Process on the windows platform(SOA 10.1.3.3.0).
    For the BPEL process we are following the same steps as given in an AMIS blog : - [http://technology.amis.nl/blog/1607/how-to-call-a-ws-security-secured-web-service-from-oracle-bpel]
    but sttill,after deploying it and passing values in it,we are getting the following error on the console :-
    “Header [http://schemas.xmlsoap.org/ws/2004/08/addressing:Action] for ultimate recipient is required but not present in the message”
    Any pointers in this regard will be highly appreciated.
    Thanks,
    Saurabh

    Hi James,
    Thanks for the quick reply.
    We've tried to call that web service from an HTML designed in Visual Studios with the same username and password and its working fine.
    But on the BPEL console, we are getting the error as mentioned.
    Also if you can tell me how to set the user name and password in the header of the parter link.I could not find how to do it.
    Thanks,
    Saurabh

  • Not Able To View Data in Web Service Model

    Hi ,
       I m trying to view a table using web service model.
       When i write the same code for binding it to context , i m able to view its data.
       But not so while using Web Service Model(not adaptive web service model).
       The code is: 
             Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT object1 =new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
       wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(object1);
       object1.setResponse(new Response_ZMANAGE_MAKT_ZMANAGE_ZMAKT());
      CAn anybody plz solve my problem.
    Thanks..
    Regards,
    Ankita

    Hi,
    I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
    eg:
    select
    case
    TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2)
    = :P15_EV_LCL
    then
    span style="background-color:lightgreen"
    || TRUNC((
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    else
    span style="background-color:yellow"
    || TRUNC(
    ( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
    ),2) || '%' || /span
    end "Effort"
    from actuals Z
    If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
    Please suggest
    Thanks
    Sudhir
    Edited by: Sudhir_N on Mar 23, 2009 10:00 PM

  • Unable to capture return values in web services api

    At the time of login to web services if my server is down ,
    it returns following error :
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1438)
            at java.lang.String.substring(String.java:1411)
    I want to capture this error so that i can try another server to login. how do i capture this error
    Another place where i want to capture the return Value is when i look for a report on the server
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
                               "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if the report is not there on the server , it returns a null handler exception.
    but if i try catching it by checking my responsehandler is null  like rh == null  it does not catch it.
    Any help will be appreciated
    thanks
    Rakesh Gupta

    Ted : i have two cases
    1)   server = server_st.nextToken();
        providerURL = "http://"server"/dswsbobje/services";
        sessConnURL = new URL(providerURL + "/session");
       Connection boConnection = new Connection(sessConnURL);
       Session boSession = new Session(boConnection);
      EnterpriseCredential boEnterpriseCredential = new    EnterpriseCredential();
                  boEnterpriseCredential.setLogin(userid);
      boEnterpriseCredential.setPassword(pwd);
      boEnterpriseCredential.setAuthType(auth);
    SessionInfo boSI = boSession.login(boEnterpriseCredential);
    I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
    This is for failover purposes.
    at present when i was trying to capture return value of boSI it  breaks giving the error
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1438)
    at java.lang.String.substring(String.java:1411)
    2nd case :
    I am geeting reports from the server and scheduling them:
    i run the following code which works fine if reports is there
    rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
    "@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
    oInfoObjects = rh.getInfoObjects();
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    Here if  the  report  is not there on the server  then i should be able to catch from the response handle rh that it has got a null value.
    but rh does not return a null value 
    the code ultimately throws a null handle at the following line
    CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
    i am not able to catch the null value there also.
    hope you got my issue.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • How do I use the Web Services API to query orders?

    The help doc states, "you can retrieve details for purchases including products purchased, payments received, and their status." The only additional info is at the link to eCommerce-Related Web Service, which does not include any information about retrieving "products purchased, payments received, and their status."

    Hey if you read over that again you have two links, the other is this one:
    https://worldsecuresystems.com/catalystwebservice/catalystcrmwebservice.asmx

  • Web Service deployed with admin_client is not working

    Hi,
    I'm usung SOA Suite 10.1.3.1 and Eclipse WTP 3.2.2.
    The thing is that I developed a Web Service with Eclipse using the plugin for generating web services. Then I exported my project to a .war file from eclipse as well.
    For deploy my web service in oc4j, I tried from the oc4j console in Applications --> Deploy and Next-Next wizard and using the .war file generated by Eclipse. I got the application deployed and I can check that the wsdl is working in http://localhost:8888/Hello_Web2/services/Hello?wsdl
    But the main problem is when I try to deploy using the admin_client command tool running the command: java -jar admin_client.jar deployer:oc4j:opmn://localhost/home oc4jadmin welcome1 -deploy -file d:\TEMP\Hello_Web.war -deploymentName Web5 -contextRoot "/". Everything seems right, I can see the application created in the console, but when I try to access to the web service using "http://localhost:8888/Hello_Web2/services/Hello?wsdl" I get and Http 404.
    What is wrong with the command method?
    Many thanks in Advance,
    Alberto

    Hi,
    As the custom web part works well in other browsers, the issue may be related to the IE itself.
    Have you tried the methods below?
    Use compatibility mode to check whether it works.
    Open IE->Tools->Compatibility View Settings
    Add the site into Trusted sites to check whether it works.
    Open the IE->Internet Options->Security->Trusted Sites->add the site into the zone
    What’s more, you can also switch the Document mode to IE 10 or lower to check whether it works.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Questions on using a SOAP web service's data in a Crystal Reports report

    I'm attempting to create a report using CR 2008, accessing data from a SOAP web service. I've run into a few problems, and need some advice.
    1) CR doesn't seem to support WSDL files that use relative URI imports (for example, I have a relatively complicated WSDL file that imports other WSDL files and schemas using relative URI locations). To solve this problem, I have downloaded all of the files to my local hard drive, and changed the "location" attributes to point to local files. Is there any other solution to this problem?
    2) CR doesn't seem to support circular references within schema files. To solve this problem, I have removed circular references from my local schema files. Of course, my actual web service will still potentially return data structures with these circular dependencies. Is there any other solution to this problem?
    3) CR doesn't seem to support request documents that allow for arrays of elements. For example, my schema allows the user to specify an array of Instruments that should be returned by the web service. In the meantime, I have changed the schema to only specify single instances of the Instrument element in the request. Is there any other solution to this problem?
    4) CR doesn't seem to support empty values for optional attributes that are specified in the schema. So, when the "Enter Values" parameter form appears, I am required to enter values for these attributes, even though they are listed as optional in the schema. To avoid this problem, I have commented out the optional attribute values in the schema. Is there any other solution to this problem?
    5) When the schema specifies that a value is based on a restricted simple (string) type, the CR parameter form shows a drop list with ellipses (...), but the drop list does not contain the enumerated types specified in my schema. Instead, I must manually enter a value. Do you know of any reason why the drop list is not populated?
    6) The SOAP response document from my web service is relatively complicated. So, in the "Data" page of the Standard Report Creation Wizard, each and every XML element level of the response document listed in the schema is shown as a separate entry. If I choose just the top level element ("fetchInstrumentSetResponse"), then very little data is shown on the next page of the wizard (only the ID attribute). But, if I select each and every element type from the response document, CR prompts me for the request document parameters for each row I have selected (I see the same form 30+ times), even though there really should only be a single SOAP request to the web service to return this response document. It seems to be treating each of these elements as a separate "database table", with a different query string for each. Am I using this feature incorrectly?
    If you can point me to somewhere in the documentation that handles this in more detail, that would be great (all I could find were the step-by-step instructions on how to connect to a web service as a data source).
    Thanks!

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

Maybe you are looking for

  • How can I lock my photos in iOS 8?

    I Want my photos to be safe in my iPad even if someone else is using it. Is there a way I can lock them from others ?

  • How to skip a record in flat file to idoc scenario?

    Hi, Anybody have good suggestions on how to skip a record(xi not process the record) based on certain conditions?  I don't want to use bpm, anybody has experience with file to idoc can advise how to deal with this situation? Thanks, Meg

  • Flashing Mouse pointer when sharing desktop

    I have a problem when sharing my desktop - The Flashing Mouse pointer makes me ill.  It's like a seizure-inducing strobe and gives me instant nausea. I read that this flashing is by design.  If this is the case, can anyone suggest a workaround or an

  • Synching same iPod to PC and Mac possible?

    wondering if i can add songs at my friend's house on his Mac/iTunes. i manage mine at home on a PC/iTunes. do you have to register it again? does it have to be reformatted? is it worth it?

  • Adding date field in the notification list-- MAM2.5

    hi i want to add DATE field in the notification list this field is already there in the device inside notification details i want to get it in the list beside notification no Can I do this by editing List Def.xml file in the device pls tell me  way t