Web Service / Iview

Hi,
This is a fairly simple question which will help me put things in place, if anyone can answer.
In the ABAP world, Iunderstand that a "web service" is something we create to place an RFC or program available in the "web world". Is that correct? I've seen that from the ABAP Workbench, you can access a function module and there's a menu option to "create the web service". Then, I guess something kicks off behind, the creation of the access from the web. Right? And, is that also possible for a transaction or a program? or is it only possible for RFC/function modules ?
The other question referring to iviews. As far as I can gather, an iview is created through a wizard, and this iview will be calling whatever you need: an call to SAP, or to any other system. How does this match with the web service concept?
Thanks for an explanation folks.
Ray

Hi Ray,
you are right. For generating a Web Service you doesn't need to write any code.
I do not think that a Web Service can be generated for transactions or programs. Only function modules or BAPIs will work fine. RFC must be checked for function modules.
An Webservice is only an interface that will receive some variables and the will return some variables.
The generated service and/or WSDL you can see with transaction "wsconfig" and "wsadmin". There is also an web-application provided by SAP where you can test your webservice. You can start it out of transaction "wsadmin" In the browser you can enter your request-values and will then see the whole response. There you can also see the used SOAP-messages.
In transaction "wsconfig" you can delete the Web Service.
An iView is only a frame for including an application the portal. While generating an iView you can use templates. For connecting to an SAP system you can use a transaction iView. This will show the SAP-GUI in the portal. But the transaction is not the prefered method to add applications to the portal.
I just wrote a Web Dynpro Java application, that consumes a webservices. The Webservice was generated from an RFC function module in my ABAP-Backend. That's a good way to display data from the ERP-system in the portal with an intuitive to use GUI.
Henning

Similar Messages

  • Creating Web Service iView

    What do I have to do to see any available system aliases in "Choose System Alias" listbox when I create a Web Service iView in Portal Content Studio:
    Content administration -> Right click Portal Content folder -> New -> iView ->  Choose iView Template -> Choose Web Service iView -> Enter required data -> Choose System Alias
    Now it is empty although I have two configured systems (may be they are configured incompletely, but SAP RFC iView are created and working normally).
    Regards.

    Hi,
    To create a web service iview u need to have a System Object.
    Create System Object
    System Administration>System Configuration><u r folder context menu>-->system
    Give the required entries and finish it change the propertie WSDL to ur url ( u can find it in http://http://<host>:<port>/QuickCarRentalService/Config1)
    goto System Aliases and create a new alias.close the system object after saving it.
    Creating the iview
    Simple create an iview with the template Web Service iview and select the system alias and give other info if required and finish it.
    Good Luck,
    MrChowdary

  • How to create iView to run Web Service

    Hi,
    I need create iView on EP7 NW2004S SP12 portal to run Web Service provided on SRM 6.0 system.
    Here is how I have attempted to create the iView:
    1. Right click and select New =>iView.
    2. Select "iView Template" radio button.
    3. Select "Web Service iView" radio button to specify Web Service Template.
    4. Enter name and ID of iView.
    5. Select System Alias of System defined earlier.
    At this point, the portal attempts to connect to the ECC system, and it fails with this error, and I cannot finish the create of the iView.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    Here are the key parameters defined for the System referenced by the system alias:
    WSDL_URL:http://sap2.mycompany.com:50000/SRM-MDM/SRM_MDM
    Logon Method:UIDPW
    User Mapping Type:admin, user
    CodeLink:com.sap.portal.systems.webservices.webservice_system
    I've also created a usermapping for the Everyone group, and provided the userid and password for the system alias successfully.
    Thanks,
    Kevin

    Thank you for that information.  I had not previously seen a procedure on how to setup an iView to run a web service. 
    I had created the System just as described in this blog, but I still have a problem.  When creating the iView (on the last step of process when I click Finish), the portal attempts to connect to the SRM system, and it fails with the error highlighted below.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    I get an error in System Administration as well when I test the connectivity for the System object.
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results:
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    How does the security need to be setup to make this work?  Or what could be causing this error?  I do have SSO configured between the portal and the target system.
    Thanks,
    Kevin

  • Authentication between a web service and XI

    Hi VC experts,
    I'm in a deadline date to show the project clients a proof of concept that show the VC consuming data from XI through a XI generated WSDL file deployed as a web service.
    When I test the web service with soapUI or XMLSpy, as there's a place to fill the username and password who has access to XI, the web service works just fine.
    But, when I try to access it using a system object created inside SAP Portal, it fails.
    I tried it in
    two ways:
    1. Using the system in a VC model. I can get the web service input/output parameters, select those I need to use (The same used when I test it through soapUI and XMLSpy) and, when I execute the test (Using the "Test Data Service" feature), the VC shows me the message "Portal request failed (Could not execute Web service operation)"
    2. Creating a Web Service iView inside the SAP Portal. Informing the same input parameters as the tests described above, and when I preview it, the message "Function execution failed. Exception message: Could not execute Web service operation" is showed inside the iView.
    I really appreciate any help. (And I promise I'll reward these helps with points!)
    Thanks in advance,
    André

    Hi André
    You can visit the  https://wiki.sdn.sap.com/wiki/display/VC/Connectivity page for troubleshooting.
    Also it should be great if you let us know the SPS level and the way you register the WebService in the Portal to be reached on the VC Storyboard.
    Best Regards,
    Luis

  • Calling a Web Service Through Custom iView

    Hi All,
    I have to create a Custom iView that would call a Web Service that is available over internet. This web service returns data in form of an XML file and have to display this file.
    It means that I have to create a Portal Application and call web service in that application and parse the XML file that this web service returns and finally display the parsed XML file in an iView.
    Can anybody please help me on this?
    Thanks,
    Vivek

    Hi Vivek,,,
    To consume the webservice u need to start with getting the wsdl of it..
    these links nd easy to follow weblogs are kool ..,
    check out
    BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
    Accessing an External Web Services in Portal
    Developing single document WSDL to schedule a web service
    The specified item was not found.
    http://help.sap.com/saphelp_bw33/helpdata/en/68/d4623c046a9b67e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/81/12703e5da3e946e10000000a114084/content.htm
    Cheers..,
    Swathi
    Do offer pts nd ncourge:-)
    ping ur mailid will give u screenshot tutorial on this ..

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • SSO to a Web Service from Portal

    Hi All,
    I have EP deployed on machine A, and my web application deployed on machine B, and I need to get SSO enabled between EP and the web application. Machine B is a Windows 2003 Server, and has the ISAPI filter installed to get at the HTTP_REMOTE_USER from the server variables, when I come from the EP. The web application on machine B is able to get the HTTP_REMOTE_USER server variable. This web application is an ASP.Net application, which calls web services in order to do any processing, including logging in a user. The flow looks like this:
    EP -> web app page -> redirect to login page -> check if HTTP_REMOTE_USER is present, if so, call web service to login user.
    The problem is this: when in the login page, I get at the HTTP_REMOTE_USER, which only gives me a user name. In order to actually log the user in, I need to call a web method, passing in a user name and a password. However, I don't have a password, and if I put a web method to login the user without the password check, it becomes a security hole. I hence need to check for the HTTP_REMOTE_USER in my web service layer as well, but I don't seem to be able to get at the HTTP_REMOTE_USER in the web service. At present, both web service and web application are on the same machine, but I still don't get the server variable. Isn't the web service (yet another) HTTP-based application, which should be able to get at the server variables? How do I get at the server variables to flow to the web service as well?
    In addition, I need to also do the following: I need to create an iView, which will call web methods on the web service. The web service uses WSE 1.0, and validates to check that there is a UsernameToken present. So, I need something similar to the above, wherein the web service can "figure out" that it is being called from the iView, and can skip the validation.
    Regards,
    Vivek
    PS - Points will be definitely rewarded

    Hi,
    Can anyone pls help me with this.
    Any ideas are most welcome.
    Regards,
    Vivek

  • Portal web service consuming in portal application

    Hi ,
    I have done the following steps and consumed a web service and created a portal service.
    When i am consuming this portal service in turn in my application.Its showing the error.
    Step 1 :- I Created a portal service.
    Step 2 :- And published it as a web service.
    Step 3 :- By consuming this web service I created a portal service and uploaded it into the server and started it.
    Step 4 :- Now I am using the portal service created from my web service in my application ad I also added the sharing reference of the portal service in this application.
    Step 5 :- I configured the proxy.
    By going to the path System Administration->System configuration->Service Configuartion.In that under Applications folder--->com.sap.portal.ivs.Httpservice and under this proxy.
    Step 6:- And when I am executing my portal component I am getting the following error stack i am getting .
    Could anyone help me in this regard.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : lokconsumewebservice_Use.webserviceuse
    Component Name : lokconsumewebservice_Use.webserviceuse
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 08:02_30/06/08_0041_4808950
    See the details for the exception ID in the log file .
    Thanks & Regards,
    Lokesh.

    Hi
    Go to
    usr/sap/<SID>/JC00/j2ee/cluster/server/logs...if i am not wrong. Pick up the latest one and post logs here for  related error.
    Koti Reddy

  • Dates coming from web service

    Hi,
    I'm currently trying to consume in VC a CAF Application Service exposed as a Web Service. I'm able to retrieve what I want but I have a problem with dates format.
    The web service returns dates in the following format: YYYY-MM-DDTHH:NN:SS
    When I test my data service in VC it works fine. When I run my iview, VC swap the month and the day and compute the new date...
    It's not just a problem of formatting with DVAL and DSTR because the date is already computed.
    Example:
    Date returned from web service: 2007-09-21T00:00:01
    Date returned from test data service in VC: 21.09.2007
    Date returned at runtime: 09.09.2008
    VC understand 21.09.2007 not like DD.MM.YYYY but like MM.DD.YYYY so 21.09.2007 becomes 09.09.2008
    I also tried to check on the server Regional and Language option but it doesn't come from there.
    Have you ever faced this problem?
    Thx

    Hi,
    It is a Web Service generated by NWDS (to expose my CAF Application Service)and deployed on the server.
    The url si like http://<hostname>:<port>/mywebservice/Config1?wsdl
    The Web Service runs correctly.
    When I call a method of my web service to retrieve a list of objects (CAF Entity Services) and their attributes, it returns attributes of type String and Dates of type 'java.util.GregorianCalendar'.
    It seems that VC doesn't correctly understand this type of Date at runtime
    Regards,
    Thomas

  • Error in BEx Web Application Iview in Portal

    Hello All,
    I am trying to access a query from the BI NW2004s (Ver 7.0)in EP 7.0 and i have created a BEx Web application Iview and have specified the proper Query/Template , but i am not able to preview the output on Iview and getting the following error in Iview
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: com.sap.ip.bi.web.portal.integration.launcher.
    Exception id: 05:52_11/10/06_0006_17835450
    See the details for the exception ID in the log file
    Further to add is that when i access the same BI application using the URL Iview, it's wokring absolutely fine. Can somebody identify the problem with the BEx Web Application Iview and suggest a suitable remedy for the same??.
    Thanks in advance.
    Regards,
    Sarabjeet.

    Hello,
    You can download these components from Service Market Place (service.sap.com/swdc) and:
    Download -> Support Packages and Patches -> Entry by Application Group -> "Support Packages and Patches" -> "SAP NetWeaver" -> "SAP NETWEAVER" -> "SAP NETWEAVER 2004S" -> "Entry by Component" -> "BI Java":
    BI BASE SERVICES 7.00
    BI WEB APPLICATIONS 7.00
    You have to download the SP that equals your APAP SP.
    Normally, these SCAs will be installed with installation of "BI Usage Type" of the J2EE engine.
    Regards, Karol Kalisz
    SAP BI Development

  • Error calling web service from Viusal Composer

    Hello:
    I'm accessing entity services methods published as web services from a composite application from Visual Composer. I'm using version 7.0 SR3 SP15.
    Iu2019m able to access create and read methods from entities services. But from same getAll() methods  Iu2019m getting access error. When I execute the same getAll() method from u201CWeb Service Navigatoru201D it works ok. But from Visual Composer itu2019s not working.  That happens only for same entities for others itu2019s working ok.
    From VC Iu2019m able to select the WDSL and use I in the iViews. The other methods of the iView works ok except for the getAll.
    I have already set the options of VC to not keep a cache of web services definition and review and recreate the system in portal landsacape and teh related alias to access the web services. I have laso checked te user and password in the mapping.
    Thabk you in advance for your help.
    Regards.

    Hello:
    Using the infprmation in the link that you pass me I was able to look into the log files and see what the problem is.
    The getAll service as it is geerated by NWDS receive an input paramter:
    queryFilter (test.types.p1.GetAllQueryFilter)
    In VC when I drop the getAll method from the corresponding service data into the working area. That input parameters doesn't apper aonly the output parameter.
    Then when I execute or test that service. The portal is giving an error:
    Full Message Text
    com.sap.engine.services.webservices.additions.soaphttp.exceptions.ProcessException: Cannot find the required parameter [queryFilter] in request message
    But that parameters was never recognized by VC.
    Thank you in advance for your help again.

  • Getting error while taking preview of Web Dynpro iView

    Hi,
    I am getting this error while taking a preview of Web Dynpro iView :
    500   Internal Server Error
          SAP J2EE Engine/6.40
    Application error occurred during request processing.
    Details:   com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Wrong WebDynpro-URL: no application name specified
    Exception id: [0011D83FB2E7004A00000CB800001E0400045F7E8F181DF7]
    This error comes if the Web Dynpro iView don't have the Web Dynpro application name specified.
    Regards
    Neha Singh

    Hi,
    After selecting the Webdynpro java iView enter the following parameter correctly
    1. System -  Sap-LocalSystem
    2.Name Space  - local/<your webdynpro project name>
    3.Application name - <your webdynpro application name>
    4. choose plain HTML option
    Regards,
    P.Manivannan

  • Integration between Purchase Requisition  & external web services

    Hi
    We have a requirement to Integrate  Purchase Requisition Process in MM & external web services(Portal).So we wanted to know what are the third party tools that SAP supports inorder to integrate both the systems.The requirement is like a business user from  Logistics team enters a PR on  a portal and the data flows to SAP through a connector and creates  a PO automtically if it has got sufficient data.
    Regards
    Prasad

    Hi,
    If you have the any transaction codes that are required to do the process in the backend MM, use the same tcodes and create the SAP Transaction iViews in the Portal.
    You can have three GUI (for look and feel) in the Portal iViews, SAP GUI for Windows that is the default one, SAP GUI for HTML has the Web look and feel, which requires you to configure the ITS and SAP GUI for Java. Depending on your requirement you can use any of the three.
    Hope this will help you.
    Sheetal
    Reward if helpful.

  • Web Services - WSDL doubt.

    Hi all,
    I’m sorry to repeat this subject again, but I continue with some doubts…
    I read almost SDN web logs about web services. All they teach, how to configure and develop a simple web services… but the steps to create a web service connection between XI, continues a little bit confused to me…
    To clarify my objective, look at this scenario: With an iview with an upload form, I want to upload an xml file to XI trough web service (soap adapter). NW Portal <-> (web services) <-> XI.
    I don’t have sure what I need to do to configure a scenario like that. Tell me if I’m correct: First I need to create an outbound interface to connect Portal via web services to XI, with a soap adapter?
    In the web logs that I’m read, (/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi) I need to download wsdl files… but who make these wsdl files? I need to make it before configure my soap adapter?
    I don’t understand what is the propose of wsdl files and what is used for!!! I never worked with web services… I’m come from ABAP programming and I’m trying to do the first steps in web technologies. So, I’m sorry if said some mistakes…
    Please, can anybody clarify my doubts? Documentation to help is appreciated.
    Thanks in advance,
    Ricardo.

    Hi Ricardo,
    >>>I don’t have sure what I need to do to configure a scenario like that. Tell me if I’m correct: First I need to create an outbound interface to connect Portal via web services to XI, with a soap adapter?
    yes that's what you have to do:
    1. create an outbound interface
    2. publish a web service based on this interface (sender SOAP adapter)
    >>>In the web logs that I’m read, (/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi) I need to download wsdl files… but who make these wsdl files? I need to make it before configure my soap adapter?
    you need to download wsld file if you want to call
    a web service <b>from</b> XI, since you only want to do Portal -> xi and not XI -> web service then you <b>don't</b> need any
    wsld files
    >>>but who make these wsdl files?
    you will, once you'll define your web service
    on the XI - your Portal iview will use this file
    Regards,
    michal

  • Test Connection fails for VC system of type Web Service

    Hi All
    I ve created a VC system of the type Web Service in Portal. In this VC system, I have given Url of the Enterprise Service that I want to use in VC.
    (for eg: http://erp.esworkplace.sap.com/sap/bc/srt/wsdl/sdef_ECC_SALESORDER002QR/wsdl11/ws_policy/document?sap-client=800)
    In the next step, I did user mapping for the VC user that will be consuming this Enterprise Service.
    The system was created successfully but when I did ‘Connection Tests’ , I got the following exception:
    “Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly”
    Do I need to do any more configurations before I can use such ES portal system in my VC work studio ?
    I understand that I have provided little information about the exception thrown by Portal.
    I kindly request you to feel free in asking any other details about the same.
    Regards
    Kapil S Kamble

    Hi Natty
    thanks for your immediate reply.
    I followed your instructions and created iView of the type URL and set the fetch mode property to 'server side' as told.
    Initially, I gave 'http://www.sap.com' as the Url and I was successful in opening the site.
    Later, when I gave Enterprise Service url and tried to preview the iView, I got the following exception:
    *'http://erp.esworkplace.sap.com/sap/bc/srt/wsdl/sdef_ECC_SALESORDER002QR/wsdl11/ws_policy/document?sap-client=800
    Error # 401'*
    I ll need to give username and password. But how do i give them as parameters?
    Please note, these parameteres are appended to the Url. So, I fear that if url of Enterprise service is changed, then it wont open.
    what do you think ?
    Kapil

Maybe you are looking for

  • Order confirmation and scrap gene in SL

    In Production Process - Two type sof scrap generate 1. planned - which is maintained in BOm and update with 531 mvt type 2. Unplanned - which is booked in scrap field while doing Confirmation. Suppose my Order material Y broke on the way/while doing

  • Finder-based account with root privileges?

    Is there anyway to give the Admin account root privileges? Or is there a true Root account in the Finder? There are times when I need to move/change files in other accounts. Can this be done through the Finder? Or do I have to use Unix and the Termin

  • Where can I source parts for my PowerMac G4s for cheap?

    Hi there Apple fans! I've recently purchased 2 PowerMac G4s off of craigslist, a MDD and a Quicksilver for a school project andtheir missing a lot of parts. A list of parts includes hard drives, power supplies, ram sticks, disc drives, etc. Is there

  • Web application designer basics

    hi experts, i am bw learner and want to know few things 1) how do we publish report developed in web application designer so that we can access it on internet. Is there any webserver offered by sap. 2) how that report will be authenticated in browser

  • 3RD GENERATION IPOD NANO SYNCING QUESTION.

    I have a 3rd. gerneration I Pod but for some reason it will not sync. my library on I Tunes to the I Pod. I have tried restore but it will only sync. 1 album. Any help would be appreciated