Consume an existing WebService over an SAP Portal Application

Hi all,
I would like to consume an existing  Web service, which has been implemented under AXIS 4 1 and deployed to a tomcat 4.1 installation.
I've developed an SAP Portal application with NWDS (Dynpage-Structure), which has to call this web service. For this, I've generated a standalone proxy client over WSDL of this WebServie under WebServiceWizard of NWDS and called it from my Portal Application, without success :(. But when i call it (proxy) from a standalone java client (Class with main-Method), it function.
Can anybody help me, for calling this WebService
Regards
Ahmet Büyükyilmaz

Hi Ahmet,
open a browser on your portal server (or try telnet) to check if you can access your axis server. Seems like you have some firewall or routing probs.
Just enter your web service uri in address bar of the browser to see if you can get a connection. If you do not have a browser, try:
'telnet <axis-server-name> 80'
from command line. Does anybody listen?
Is your web service designed to be used by anybody? Or do you have some kind of authorization issues?
HTH,
Carsten

Similar Messages

  • SAP Portal Application development & Deployment

    Hi Guys,
    I'm trying to find a way to customise the top navigation on the Portal (e.g. mahe a hover menu navigation).
    The way to do it is to develop a new portal application using NWDS.
    I'm struggling to follow any of the samples as they all refer to .PAR files, which is not supported anymore by NWDS 7.1.
    What is the right way (and steps) to deploy the SAP Portal application from NWDS to our SAP Portal.
    Thank you.

    Hi Pashaking
    Please check below docs might help
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6066b302-09c8-2a10-a894-eb9fef30df85?QuickLink=index&overridelayout=true
    Tag  Libraries: Creating a Hover Menu in SAP NetWeaver Portal
    Hope it will helps
    Regards
    Arun Jaiswal

  • Webservice & SSO in SAP portal

    Hi,
    I have created a webservice with basic authentification in my ABAP SAP backend.
    Now I like to use this webservice at my Java Web Dynpro application in SAP Portal. SSO (or is it SAP Logon-Ticket?) for the portal is set up correctly. I tested it with a SAP transaction iView that now doesn't need an addition logon.
    In the Web Dynpro application I added the webservice as a model.
    At project properties a also added tcsecwssec~service in the "Service references" tab.
    If I manually add username/pw the webservice works fine.
    ._setUser("user");
    ._setPassword("pw123456");
    But I like to use Single Sign On (SSO) for calling the webservice. How can I reach this?
    I also searched the Forum but none of the tested workarounds worked for me.
    Calling the webservices results in this exception:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized.
    Thanks a lot.
    Henning

    ok, I found the solution on my own.... it's easy :-D
    I had to define a HTTP destination for my webservice in Visual Administrator:
    (Services -> Destionations -> HTTP)
    Then only add the destination in the custom controller:
    setHTTPDestinationName("ZDEMO_SERVICE");
    Henning

  • Consuming function of WebServices (Microsoft) in sap

    Hi guru.
    I want call a function of a WebService of external System (not SAP).
    In SM59 I define an HTTP Connections to Ext. Server.
    Now can i implement a abap code to call this function and import the result table?
    My SAP release is 4.7.
    Regards
    Angela

    You can create a PROXY Object to consume a web service. You can create it in SE80 under Enterprise Services - Create Proxy Object. There you provide the WSDL file and this generates a proxy class which you can call in your report to consume that web service.
    Hope that helps,
    Michael

  • Implications of Reference System in SAP Portal

    Hello Friends,
    We have a situation where 30 of our existing users have IDs exceeding 12 characters in current non-SAP system. In ECC 6.0, I believe there is a limit of 12 characters for user IDs.
    As these users would be using SAP portal as their primary means of interaction with all SAP back-end systems, we are planning to keep their existing user IDs in SAP portal and creating another user ID  (<12 chars) in all back-end systems (ECC/BW/CRM). We'd use ECC system as a reference system to map the userIDs.
    I've a few questions regarding this approach.
    -Is user mapping necessary for all portal users or only these 30 users need to maintain it?
    -Is it mandatory for the reference system to be up and running all times? Should the reference system breaks down for some reason, would it hamper connectivity of all mapped users to other systems as well?
    Appreciate your inputs.
    Thanks,
    Vishwas Madhuvarshi

    Hi Vishwas Madhuvarshi,
    -Is user mapping necessary for all portal users or only these 30 users need to maintain it?
    How are users authenticating against the back-end system? 
    -Is it mandatory for the reference system to be up and running all times? Should the reference system breaks down for some reason, would it hamper connectivity of all mapped users to other systems as well?
    If the referenced system is down it will only be an issue when the user goes to an area where the back-end system presents content or data.  Pure portal areas will not be impacted.
    Best regards,
    Duncan

  • How to run a servlet in eclipse using "SAP Portal Plugin"  ( not tomcat)

    Hi All
    I'm just trying to create a simple servlet in Eclipse using SAP Portal Plugin but I couldn't find any document.
    I have an eclipse 2.1
    EP6 SP2 patch 5
    SAP Portal Plugin
    I created a Portal Application Project.
    I created a simple servlet and save it under src.core directory.
    My question is as follow:
    1) Which directory I should put in the file web.xml?
    2) Do I export this as *.par file?
    3) When I export it. Can I just call the servlet from the url?
    Anyone help.. I really appreciate.
    thanks much.
    Jen

    Hi,
      Portal plugin is used for developing SAP Portal applications ie Java iviews.
    There is a set of procedures to develop Java iViews . You can develop either AbstractPortalComponent which is more or less equivalent of servlet in ordinary java world or JSPDynPage which is equivalent of JSP.
    These plugins are used to develop any of the above portal components. If you are developing java applications for portal then you have to develop either of the above using the tools. These portlets( portal applications runs on Portal run time)
    But servlets can run on J2EE itself.
    But if your requirement is to develop servlet then you can create ordinary java project and deploy that in the J2EE server as like in any app server.
    Regards,
    Abdul Raheem .S

  • Server Names exposed while accessing SAP Portal

    We are using FireFox browser to access the SAP Portal application.We are running SAP EnterPrise Portal on NW 7.01. Our Production SAP portal is exposed to
    internet.
    After the users log into the system, using Firefox browser, the server name is seen in the status bar of the
    browser. This is a security threat, as the server names are exposed.
    This issue is not there if we access the sameusing Internet explorer.

    Abdul,
    See this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/b6/8b9aea8d7c11d5bdd8006094191908/frameset.htm
    The suspect is "User Mapping Type". It is probably set to "admin", instead of "admin, user". That is why you do not see the system when logged in as one of the users.
    Also make sure users have permissions in PCD to the system.
    If does not help, check other suspect as SAP help suggests:
    The selected principal does not have end-user permissions for the system.
    The system's logon method does not require any user mapping data for the system (such as "SAPLogonTicket" for a system that is not the SAP reference system).
    The system's user mapping type is not set correctly or not set at all.
    There is no system alias defined for the system.
    There is no system landscape registered, for example, the one contained in Enterprise Portal.
    Regards,
    Slava

  • Submit a webdynpro IView from a non-Portal application

    Hi,
    i have create a WebDynpro application. This application shows in a table a list of '. This reports are IView for Bex Web Application in a SAP portal. For navigation to this BW IView the WebDynpro application must be also embedded in a WD iView.
    The problem is:
    This WD IView will be requested by a non-sap/portal application with dynamic parameters and also with the POST method.
    In the WD application i have implemented the parameter request with following code:
    int i = 1;
    String name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("var_name_" + i);
    If the non-portal application submit the WD application directly -> the parameters are available.
    But when the non-portal application submit the WD IView, then the Parameters are 'null'.
    Thank you for quick response
    Anne

    Hi,
    yes I'm use the statement to submit the iView:
    <form action="http://server:50000/irj/servlet/prt/portal/prteventname/Navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage!2fcom.sap.portal.contentarea?NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.kwl.kwl-01.KWL-01%2Fcom.kwl.kwl-01-iviews.KWL-01-Iviews%2Fcom.kwl.WEB_DP%2Fcom.kwl.IW_GISBW&DynamicParameter="
    method="post">
    var_name_1<input name="var_name_1" type="text" value="ZHAMFSB"><br>
    var_value_ext_1<input name="var_value_ext_1" type="text" value="129191"><br>
    var_name_2<input name="var_name_2" type="text" value="ZHAMFSB"><br>
    var_value_ext_2<input name="var_value_ext_2" type="text" value="129761">
    <input type="submit" value=" Senden ">
    In this case the DynamicParameter will be send by GET.
    But i want use the POST Method.
    I get the parameters in both cases not in my WD application.
    What is the problem?
    Thank you
    Anne

  • Consume WS from Third Party System in a SAP Portal

    Hi everybody,
    I would like to know if it could be possible to consume a WS from a Third Party System from a SAP Portal page or iView directly.
    If not, could anybody propose a solution for that?
    I thought about the possibility of creating a WebDynpro Java application which would consume this Web Service.
    Thanks a lot.
    Kind Regards,
    Victoria

    HI Victoria,
    Create Web Dynpro Java application for consuming u Web services.Create SAP webdynpro iview Template to create your iviews.
    Thanks,
    Amith.

  • Change the default language of an existing SAP Portal

    Hi,
    Our SAP Portal works with two languages, Spanish and English. The default language is Spanish, but since the company is becoming more international, we want to set the default language to English. Need to know if you can change the default language of an existing SAP Portal.
    Specifically, it is the case of the standard UWL notifications, which are sent by mail in Spanish. For tasks defined in the application, the message is personalized and sent in two languages ​​at once. However, when the task is not defined, notifications arrive in the default language, which is now Spanish. Could anyone tell me if I change it?
    Thanks for the help!

    Dear Marciano
    I hope you are well and many thanks for using the SAP Discussion Forums .
    In relation to the scenario that you have described regarding the language setting for EP and the UWL.
    The language that the portal is displayed in depends on the following heirarchy, with the languages at the top of the list taking precedenceover those at the bottom:
    1.Component (iview) language (defined in the portalapp.xml)
    2.Portal Mandatory language (defined in the prtDefault.properties)
    3.User language (defined in the user#s profile).
    4.Request language (defined by the browser).
    5.Portal Default language (defined in the prtDefault.properties)
    6.System Default language (default locale defined by the OS).
    So for example, if you have your portal user language (as in point 3)set to Czech, but the language of the iView that is the logon page (as in point 1) set to English, that logon page will be displayed in English.
    Regarding the navigation path for the prtDefault.properties kindly refer to the SAP Documentation outlined below which provides a detailed summary and walkthrough regarding the language settings.
    Setting Mandatory Language For Portal
    http://wiki.scn.sap.com/wiki/display/EP/Setting+Mandatory+Language+For+Portal
    - SAP Note: 1013521 - Configuration of supported languages within the portal
    - SAP Note: 1661391 - Portal 7.3 is not displayed in the configured language
    - SAP NetWeaver Portal 7.3: SAP Documentation and Guides: http://scn.sap.com/docs/DOC-23349
    - SAP Note: 1696439 - Changing the Default or Mandatory Locale for a 730 Enterprise Portal
    Using Extended Notifications and the UWL
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/ad/d64842d59fb430e10000000a155106/frameset.htmhttp://http://help.sap.com/saphelp_nw70ehp2/helpdata/en/ad/d64842d59fb430e10000000a155106/frameset.htm
    Kindly update me as per your findings.
    Kind Regards & All The Best
    Troy Cronin - Enterprise Portal Support Engineer

  • SAP Portal Integration - The plugin secSAPR3 does not exist (FWM 02016)

    Hi Gurus,
    I have some problems with the integration of SAP Portal.
    I have created an iview in the SAP Portal with a Webi Report.
    When executed, displays the login page of InfoView without any authentication option, only request user an password. When I insert my credentials, appears the following error:
    Account Information Not Recognized: The plugin secSAPR3 does not exist (FWM 02016)  and I cannot login.
    Previous to this error message, appears an alert from the Session Management, advising me that the application will launch in other domain. I donu2019t know what problems can lead this fact.
    I have configurated the SAP Authentication in CMC and imported roles and users from BW. I can use the same user and password in both environments and works fine.
    Can anyone help me?
    Thanks in advance!
    Isaac.

    Hi IRoyan,
    First let's explain why the plugin secSAPR3 doesn't exist:
    1> when you view report from SAP EP to the report in BOE, it would use OpenDocument view application to logon and open the report.
    2> and the secSAPR3 plugin is the file of secSAPR3.jar;
    3> So it means the secSAPR3.jar is not in the classpath of OpenDocument application.
    How to resolve it:
    1> In the existing BOBJ solution, the secSAPR3.jar is included in PartnerPlatformServices;
    2> So please try to modify the web.xml under the directory $INSTALLDIR$:\Business Objects\Tomcat55\webapps\OpenDocument\WEB-INF, add the logon service URLcontext:
        <context-param>
            <param-name>config.logon.service.context</param-name>
            <param-value>/PartnerPlatformService</param-value>
        </context-param>
        <context-param>
            <param-name>config.logon.service.url</param-name>
            <param-value>/service/app/logon.do</param-value>
        </context-param>
    Hope you can understand it and it helps.
    Thanks,
    Rongliang

  • Installing NWDI in Existing SAP Portal

    hi experts,
    My project currently require to retrieve and modify ESS (personal information) standard code since the standard personal information in ESS will not meet our requirement.
    I found out that i need NWDI installed in our environment in order to retrieve ESS (personal information) standard code.
    my consideration is that we already implement several custom ESS using NWDS for SAP Portal.
    By installing NWDI, will it have any impacts to existing custom ESS (using NWDS)?
    I already tried to search through forum, but haven't find the answer.
    Thanks in advance

    Dear Rica,
    Download the NWDI Component from service market place with same version and SP level.
    DTR
    CBS
    CMS
    SLD
    Deploy the NWDI component througth SDM or JSPM. Once finished you can access with http://<Host>:<Port>/devinf
    For designing track for ESS/MSS, refer to the JDI cookbook. for your custom development you can migrate to the NWDI.
    Refer to SDN Page for NWDI [Click Here |SAP NetWeaver Development Infrastructure (NWDI)]for more details.
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • 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

  • Consuming external Web Service in portal application:Error URL.getProtocol

    Hello!
    I implemented a portal application which consums a external Web Service with NWDS 7.2.
    The Webservice access works fine when I test it in a Java-Main Class.
    If I deploy the application in a portal then I get the error:
    java.lang.NullPointerException: while trying to invoke the method java.net.URL.getProtocol() of an object loaded from local variable 'tmpUrl'
    It seems that my service_client-class has the problem to call the wsdl if the application is in portal:
    static {
        java.net.URL url = null;
        try {
                   java.net.URL tmpUrl = SERVICEClient.class.getClassLoader().getResource
                  ("wsdl/com/sap/test/SERVICE.wsdl");
                  url = new java.net.URL(tmpUrl.getProtocol(), tmpUrl.getHost(), tmpUrl.getPort(), tmpUrl.getFile());
        } catch (java.net.MalformedURLException e) {
          e.printStackTrace();
    Can anybody help me?
    Thanks, Thomas

    Hello Thomas,
    I got the same error. In my case I used an Enterprise Application Project for the developement of my Portal Service. The portal service itself was calling an external webservice.
    The reason in my case lies behind the generation of the EAR-File with the NetWeaver Developer Studio). Inside the generated EAR-File the WSDL-File was always missing. In consequence "
    java.net.URL tmpUrl = SERVICEClient.class.getClassLoader().getResource
                  ("wsdl/com/sap/test/SERVICE.wsdl");" is always "NULL".
    and "tmpUrl.getProtocol()" leads to the NullPointerException.
    So I copied my wsdl-folder / package with the wsdl-file inside the {application}.ear / {application}.war / WEB-INF / private / lib / {application}.jar and everything works fine:-)
    Regards
    Steffen
    PS: Today I found a better way without copying the wsdl-file into the EAR-File. I just didn't use the Enterprise Application Project for the developement of portal services anymore. If you look inside the generated EAR-File, you can see, that you can develop the portal service also by using a simple Dynamic Web Project wrapped by an Enterprise Application Project:-)
    (Rem.: Don't miss the portalapp.xml deployment descriptor).
    If you deploy the Enterprise Project the WSDL-File is always inside the generated EAR-File :-)

  • Using Synchronous webservice without using SAP XI

    Hi,
    I have a requirement of wherein which my client has provided me a dot net webservice which needs to be consumed in SAP R/3 using which i have to build an interface between SAP R/3 and the legacy system. This interface needs to be synchronous in nature.
    Please let me know how to handle this in ABAP and is this possible without using SAP XI / PI.
    Step 1:
    SAP r/3 ( sends data )------> (Webservice) Legacy system
    Step 2:
    (Webservice) Legacy system -
    > SAP R/3 (recives response from legacy system)
    Regards
    Joel

    Hi Joel,
    You can use the webservie (SOAP or WS[if it is PI7.1server] adapter).
    By calling the webservice from the ABAP.
    http://help.sap.com/saphelp_srm40/helpdata/EN/2d/64d023e74911d6b2e400508b6b8a93/frameset.htm
    or by using PI also it is possible
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f?quicklink=index&overridelayout=true
    Read page no 26th onwards.
    > Step 1:
    > SAP r/3 ( sends data )------> (Webservice) Legacy system
    you can use Proxy to PI to SOAP/WS scenario.
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    > Step 2:
    > (Webservice) Legacy system -
    > SAP R/3 (recives response from legacy system)
    you can use SOAP to PI to Proxy scenario.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8e/464442c1a1c253e10000000a1550b0/content.htm (For SOAP)
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies  (for proxy)
    Regards
    Ramesh

Maybe you are looking for

  • How to choose RT System at Run Time

    Variations of this question have been asked, but I'm not sure if they've been answered. We use LabVIEW RT to do a variety of behavior tests.  We have multiple experimenters using the same hardware, and each has his/her own set of "What I want to do"

  • What Application is required for Programming a game for a Nokia 7650

    Hello, I am new to all this and I would like to program a game on a Nokia 7650, I have downloaded a few games and transfered them via infrared to my phone (JAD and JAR files)which are pretty cool. All I know they are either written in Java or C++.I u

  • Intel Xserve power problems

    As of recently, I just started noticing a issue with powering on a new intel xserve. If the machine is running, using LOM and shut down works beautifully. After I shut it down, using LOM and the button works beautifully. If i attempt to turn it back

  • How to configure the logging and tracing in J2EE-Server

    Hi, when I've been using the SAP Logging and Tracing Framework before from more or less "standalone" Applications I always used a property file which configured the levels of severity  etc.. During application startup I've read this file and configur

  • Upgrade iTunes to 10.6.3 on iPhone

    I want to update my iTunes to 10.6.3 on my iPhone but I get an error message saying safari can't download the upgrade.  Why on earth would they make an upgrade that can't be downloaded easily?  i am so tired of the upgrades screwing up what is alread