Reg: Webservice consumption on JEE 5

Hi
I have a webservice provider (ABAP) and I call the WebService from a WS Client in Java (JEE 5 SAP CE). I have generated Proxies using the WSDL Url (WS Client Generator on NDS CE 710). Now I would like to use HTTP Destination, can some one please tell me how? How should I configure it on NWA and then how should I change my client code? Thanks.
regards
Lakshminarayanan.V
PS: I have posted the same question on JEE 5 forum but I find it relevant on this forum as well, excuse me if its wrong!!

Hi,
For maintaining HTTP destinations you can follow the steps below:
1.Go to NetWeaver Administrator.
2.Choose Role SOA Management  -->  Destination Template Mangement
3. Choose the Service Client
5.Select Edit required parameters and Save.
Programmatically:
InitialContext ctx = new InitialContext();
Service reqSrv = new Service();
Request req = (Request) reqSrv.getRequestPort();
Map propsMap = ((BindingProvider)req).getRequestContext();
propsMap.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "URL");
propsMap.put(BindingProvider.USERNAME_PROPERTY, "UserName");
propsMap.put(BindingProvider.PASSWORD_PROPERTY, "PASSWORD");
Regards,
Alka.
Edited by: Alka Panday on May 6, 2008 10:02 AM

Similar Messages

  • Reg: webservices  error  in  xi

    Hi ,
    Iam new to xi and  had developed a http to web service scenario and the response i got an error
    Result:  
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText></SAP:Error>
    so in the receiver soap adapter  in module tab  i have given
    Module name - localejbs/AF_Modules/MessageTranspormationBean
    Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case “transform” In the module configuration ,
    Module key - In this case “transform”
    Parameter name - TransformContenType
    Parameter Value - text/xml;charset=utf-8
    I got an error
    Result:  
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: local bean not found: localejbs/AF_Modules/MessageTranspormationBean</SAP:AdditionalText></SAP:Error>
    the websevice is
    http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia
    Could any one help me out.
    Thanks & Regards,
    Gangadhar.S

    Hi Gangadhar
    If you are  new to SAP XI , then its better to read TIBIT. Below are the links of TIBIT which are very helpful in understanding the End-to-end process of XI. And you can even do some exercies here which are very helpful.
    TBIT40:
    https://websmp109.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT40
    TBIT41:
    https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
    TBIT42:
    https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
    TBIT43:
    http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
    TBIT44:
    https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
    later you can follow this link which contains step by step blogs for http to webservices
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=httptoweb+service&adv=false&sortby=cm_rnd_rankvalue
    Thanks
    sandeep
    PS: if helpful plz reward points

  • Webservice Consumption from ABAP without XI

    Hi Experts,
    Im trying to consume a webservice which I got from ESB(IBM) team. Basically I got a wsdl file.
    First I have created a proxy from SE80 by uploading this wsdl file and I have activated sucessfully.
    Second from SOA Manager I have created Logical port for this wsdl file.
    Finally I wrote one ABAP program to consume webservice and got the return message.
    Now for this I have few doubts.
    1) Because I'm uploading WSDL file manually, in future if there is any change in the webservice do i need to upload new wsdl file again?
    2) In the wsdl file endpoints like URL will change from dev to qa and prod. If that is the case, from SAP how can we transport from dev to Quality to Prod?  Do we need to manually change those urls? How can we transport to different  servers?
    3)suppose I have uploaded 2 wsdl files. And in SOA manager I have created logical ports with the same name. Then in our program how can we call the right service as there are two logical ports with the same name?
    Appreciate your help .
    Regards,
    Ravi.D

    Hi,
    >1) Because I'm uploading WSDL file manually, in future if there is any change in the webservice do i >need to upload new wsdl file again?
    It depends of the changes. Suppose, one optional input parameter has been added in the wsdl, and you don't need this parameter from the client side. You would not need to regenereate the client proxy from the new wsdl. But if you want to play it safe, regenerate the proxy each time the wsdl is modified.
    It should not change every day !
    >2) In the wsdl file endpoints like URL will change from dev to qa and prod. If that is the case, from SAP >how can we transport from dev to Quality to Prod? Do we need to manually change those urls? How >can we transport to different servers?
    This is runtime configuration that you have to do manually in each system. It cannot be transported and should not as it would have no meaning.
    3)suppose I have uploaded 2 wsdl files. And in SOA manager I have created logical ports with the same name. Then in our program how can we call the right service as there are two logical ports with the same name?
    It would be a bad idea to create 2 different logical ports with the same name but if you do, thare will be no confusion because the logical port is defined for the client proxy.
    Regards,
    Olivier

  • 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.

  • Webservice Consumption in CE 7 1 EHP1

    Hi All,
    I was trying to consume webservice using webdynpro in NWDS CE 7 1 EHP1.
    Getting error as : unable to find service group as <server name where WSDL exists>.
    Kindly clarify me.
    Regards,
    Devender V

    Hi Devender,
                      I am getting an error " Cannot connect to http://localhost:50000/NWDemoAdminService/NWDemoAdmin?wsdl&mode=ws_policy: Unable to connect to proxy:8080 - proxy "
    I think there is a problem with the proxy setting but u can try with some other standard available service.
    in the web service navigator, select a standard service and test it.
    import the model to ur web dynpro component and execute the model.
    please follow the vital things specified in the document like creating a communication profile , provider system......
    Thanks and Regards

  • Error in WebServices Consumption - There are multiple root elements

    hi,
    I am working on consuming webservice which has a WSDL to get the RouteDetails with a structure like:
    <Source>
    <HouseNumber>1</HouseNumber>
    <Street>XYZ</Street>
    <City>Hyderabad</City>
    <Country>India</Country>
    <PostalCode>500018</PostalCode>
    </Source>
    <Destination>
    <HouseNumber>2</HouseNumber>
    <Street>X1Y1Z1</Street>
    <City>Bangalore</City>
    <Country>India</Country>
    <PostalCode>500067</PostalCode>
    </Destination>
    When I am calling the method RouteDetails of the proxy I created, I am getting the error 'There are multiple root elements in line 1 column 178 and the column is indicating <HouseNumber> in <Destination> node.
    Please let me know how to overcome this.
    Thanks for the help
    Githa

    Its now resolved. Thanks,
    Githa

  • Webservice consumption from abap system

    hi colleagues,
    I want to consume webservice that is in ABAP syatem  in webdynpro java project .
    I just want to know what is the basic thing need to do  for consuming webservice.
    Thanks,
    sudhanshu

    Hi,
    You need to create the Adaptive Webservice Model.
    After that you need to create the destination for this WebService in the below location of Visual Admin.
    services>WebServiceSecurity>Dynamic WebService Proxies-->Click on Create button.
    And you need to give this destination in the properties of Webservice Model.
    See the below document for destinations configuration:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    This destination is to handle the url, credentials (uname, pwd) dynamically.
    See the complete tutorial "Accessing an Email Web Service using the Adaptive Web Service Model" in the below link.
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]
    If you are using CE 7.1 go through the below document.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
    Regards,
    Charan

  • Webservice consumption in WDA

    Hi all,
    I need to consume a third party webservice in ABAP webdynpro component. For this first I have consumed the webservice by giving the wsdl url path  using the option Enterprise services-> Webservice but finally throws the following error
    "Proxy-Generierung: Fehler aufgetreten     
    Exception occurred in library handler     
    Not implemented"     
    Any possible solutions for the above error or links regarding consuming third party webservice in to WDA component will be rewarded...
    Regards,
    Dinesh

    There is nothing specific about consuming Web Services in WDA.  The Proxy Generation is just a normal ABAP piece of functionality.  The proxy class can be called from WDA like any normal ABAP class.  There are lots of links within SDN on consuming services in ABAP.  If you are getting an error with the process of generation I suggest that you post your question in one of the main ABAP forums since the functionality is not WDA specific.

  • Reg: webservice - authority check failed

    hi friends
    i have created a Webservice for FM- BAPI_COMPANYCODE_GETLIST  . after creating that i have tested in the case then i found a error that
    "An error has occurred. Maybe the request is not accepted by the server :  Authority check failed "
    what are the necessary authority checks has to be done.
    Thanks & Regards
    suman

    Hi,
    Which WAS should it be the I configured. The ESA or our own?
    I have configured our own WAS as described in the tutorial. Here I tried to set up the username and password and I was able to send the request.
    But I'm just accessing the test system and it is there I get the error.

  • Reg,REM Consumption

    Dear Guru's
    iam having problem in develop a report for consumption report based on production line/production version.from MSEG am getting qty but i need to develop a report based on production line/workcenter wise. i.e how much consumed to get particular output.
    Kindly suggest if their is any report link to MSEG, tales to get workcenterwise or production line wise consumption...
    thank u.

    Dear Thimmaiah,
    You can get the report through the Activity based Costing for the above Scenario.
    In this TCode S_ALR_87013619 , you can get the Actual Consumption Value to the Planned Figures and Absolute Variance,  % Variance.
    For Cost Center wise , Cost Element wise , Plan Version wise .
    Regards,
    Shankar K B

  • Reg : Webservice

    Hi Experts,
    I need to call a RFC in R/3.But the problem is if Req parameter is 'A' i need to send back response from RFC and If Req is 'B' it updated some entried in R/3 using same RFC.
    Currently i have designed like SOAP--XI(server proxy).But how i can determine whether service interface is sysnchrnous or asynchrnous.Please advice me about design for this object
    Thanks in Advance
    Dinesh

    You can not dynamically decide if a interface has to be synch or asynch.
    What you can do is design it as a synch interface. Call the Proxy in either case. In the prxy decide what you want to do based on the Req A or B and then send a response. In case of B send a empty response  and you can ask the Sender system to ignore this response. It should be quite easy for the sending application to handle an empty response.

  • Reg WebServices In IDM

    Hi,
    We have planned to develop a web interface for provisioning request. So the users will raise request through this web interface which in turn would connect to IDM.
    Can any one please list out the web services that can be implemented between the web interface and IDM.
    Thanks in Advance.
    Regards,
    Pricy

    Mary,
    The idea behind IDM is that you use the NW IDM interface via Portal (Portal/PHP in 7.0).  However if you need a separate interface for some reason you could do something with SPML, but you'll need to put VDS in front of IDM.
    Matt

  • 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.

  • Consuming Webservices in webdynpro ABAP

    Hello,
    I want to work with consuming Webservices in Webdynpro ABAP. Can anybody give an example for the same.
    Any help would be highly appreciated.
    Thanks.

    Hello
    Here is a link.
    It has many links for the webservice consumption in abap and web dynpro
    Consuming webservice in a webdynpro component
    actaully process on a high level is like this.
    1. first you need to create an client proxy., For creating this go to SE80
    and follow this link
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm
    2. then you can consume this service using the service call option of the web dynpro
    here go to the web dynpro comp and right click on it and create-> service call
    and use  the proxy created in the first step here.
    it will create one custom controller which you can use.
    thanks
    sarbjeet singh

  • Authentification for WebService

    Hi,
    I'm trying to access a web service that needs an authentification.
    How can I pass username and password?
    It's not like the OTN example. I need the authentification for the webservice not for the function.
    By the way: How can I pass a proxy which needs an authentification?
    Thanks!
    Markus

    Hi wolfgang,
    Please refer this article for a step by step webservice consumption in .NET
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3057b5a7-99d0-2910-8f8f-f357dc4b70b5
    Also if the exception is because of user name and password then try to give some variables instead of string values for user name and password.
    Also you can refer this thread for the same problem discussion.
    http://www.thescripts.com/forum/thread525060.html
    Regards
    Sumit Bhutani

Maybe you are looking for

  • After upgrading a domain I am getting .....config.xml not found error

    upgraded domain from 10.3.0 to 10.3.2 while upgrading one message was.. "no servers are detected under this directory" and now after my upgrade is successfully done its showing me that "the config.xml not found"...

  • Using java for the web at large

    Hello, i have built a interface for my client that requires the Java2 browser plugin to work. Its not the front page or anything...but non the less it is a page that my client payed good money for. My question is this.. due to the lack of support fro

  • Hostname lookup failing

    Any idea why this won't work:"jdbc:oracle:thin:@my.host.net:1521:mydb" when "jdbc:oracle:thin:@192.168.0.7:1521:mydb" does work and my.host.net is set in the /etc/hosts files as 192.168.0.7 and I can ping and traceroute my.host.net. Two weeks ago all

  • Images are automatically saturated when opened in PS

    Hi, I've been using Photoshop for a while, and was recently bought CS5...  My problem is, everytime I either import a photo from my files or I copy an image offline, open a new file and then paste in the image, they come out highly saturated. I've se

  • Where is iTunes 6.0.2?

    Although my 'Software Update' suggests that I should update from 6.0.1 I can't find it listed on the downloads page of Customer Support. I prefer to download and install manually rather than automatically with SU. Does anyone know why its not availab