Webservice development in Webdynpro

Hi,
         I want to develop a webservice in webdynpro for consuming BAPI(BAPI_MATERIAL_AVAILABILITY).
Can someone provide me the related document to reach this requirement?
Thanks,
Kundan

Hello,
You can search in WebDynpro java forum for related documenation.You will find enough documentaion for importing web service in Web Dynpro.
Thanks,
Naidu

Similar Messages

  • Consuming webservice in a webdynpro component

    Hi Experts,
    I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
    Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
    If possible, Provide me some good material for consuming webservice in a webdynpro component.
    Awaiting for a useful reply.
    Thanks,
    Ramanan.p

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    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.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • Webservice Exception from Webdynpro

    Hi,
    We are on 7.1 SP04 Patch 1. We have created a webservice with http and None Authentication and deployed on EP 7.0 server. We have set a constant User Name and Password in Visual Admin.
    We are able to execute this webservice successfully from Webservice navigator.
    We have developed a Webdynpro appln with this webservice. We are getting an exception when the webservice is getting executed from Webdynpro appln.
    "Exception on execution of webservice with WSDL url '<wsdl url>' with operation 'webservice name' in interface"
    We checked in the trace file and got the following message
    com.sap.mdm.logging.MdmLogger warning
    WARNING: PingServerCommand failed
    Have any one faced this issue?
    Thanks,
    Arun prabhu

    Hi Walter,
    The webservices are developed using MDM Webservice generator. The webdnpro application has to access MDM Data using MDM Webservices / MDM Java APIs.
    This was working fine with MDM 7.1 SP03. Now we have upgraded to MDM 7.1 SP04.
    When I try to access MDM Data from webdynpro using MDM Java API commands, I am getting an exception at AuthenticateUserSession Command. While access using MDM Webservices, I am getting an webservice exception and an entry in trace file.
    Thanks,
    Arun prabhu S

  • Consuming MII WebService in Java WebDynpro

    Hello,
    We are facing a strange situation...
    We define a transaction in MII to be consumed as WebService in Java WebDynpro. This transaction is a simple query on a DB returning 4 fields :
    Shift code : SHIFT
    Shift description : DESCRIPTION
    Start time : START_TIME
    End time : END_TIME
    It works fine, we use the import adaptative web service wizzard in netweaver developper studio to use this WS...
    But if we to an update on the webservice, changing a field name for example (SHIFT -> SHIFTCODE), we start to have trouble...
    We got then the very helpful error message :
    Exception on execution of web service with WSDL URL '<sever>/WebServices/GetShift' with operation 'Xacute' in interface 'XacuteWSSoap'
    If I display the model info using wdContext.currentRequest_XacuteElement().modelObject().associatedModelClassInfo().getModelInfo().toString()
    I got the following (extract) :
    <ModelClassPropertyInfo name="SHIFT" dataType="com.sap.tc.webdynpro.model.webservice.types.string(java.lang.String)" readOnly="false" qName="SHIFT" required="true" backendType="null"/>
    As you can see, the model definition is NOT updated and we still have SHIFT as name instead of SHIFTCODE...
    If someboby has an idea, it will save us our life ;o)
    Thank you
    PS:it the same behaviour if we add a field...

    Oliver -
    Did you try to reimport the WS model ..? If yes and still doesn't work...Try  to delete the old proxy in webdynpro ( adoptive ws) and import again.
    To avoid code changes,you can give same old name while fresh import.
    Adoptive WS in webdynpro  is not really like Adoptive RFC .It has some limitations.
    Thanks
    Hari

  • How to consume a ABAP webservice in a  webdynpro app?

    Hi,
    I have a BAPI in ABAP that is exposed as a webservice. I want to use this to build a webdynpro app so that i can consume this webservice. This BAPI returns the Employee data. As soon as the person logs into the portal i am going to pass his login id to this BAPI so that it retrieves the Employee data for that user id. But i need to know the procedure of consuming this webservice in a webdynpro app. Any pointers in this regard will be greatly appreciated.
    Thanks,
    Arun E V

    Hi Arun,
    Consumption of a web service is univesal I guess so it wont matter if it is an ABAP webservice. For consumtion of webservice in Web Dynpro you can go through the following tutorials
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20car%20rental%20web%20service%20with%20web%20dynpro.pdf</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20an%20email-client%20using%20web%20dynpro%20and%20web%20services.pdf</a>
    Do reward points if it helps
    Regards
    Sid

  • Problem with calling Webservice from Java Webdynpro

    Hi,
    I have a scenario where I need to call a Webservice through my Webdynpro application. I need to pass few parameters(of type string) and the Webservice is suppose to retrun a few records based on the input values.
    When I run the webservice directly using the browser, the output is in XML format.
    When I create a model for the webservice in webdynpro, the return value is a Node element of type java.lang.Object. From webdynpro, I am successfully able to make a call to the Webservice (as there is no exception with model execute command), but the return value is always null. I am not sure if the webservice is not returning any data or if I am not reading the correct context element. There is no documentation available for the webservice either.
    Can anyone tell me what is that I am missing. Is it not possible for Webdynpro to call a webservice which can return only XML data?
    Any help on this issue would be greatly appreciated.
    Thanks,
    Sudheer

    Hi Sudheer,
    You can refer to wiki link (& other links available at the end in this)
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService
    Kind Regards,
    Nitin

  • Consuming WebServices in ABAP WebDynPro via webservice proxy code

    Hi,
    My requirement is to consume a webservice using WSDL(basic authentication) in WebDynPro ABAP. then based on the SOAP response I need to show a pop up message whether the response valid or not.?
    I first tested the webservice by creating LPCONFIG Logical Port and generated WebService Proxy class.
    It got response correctly with basic authentication enabled each time I send a request.
    Secondly I generated webservice proxy code using service calls on creating webdynpro test application with some UI elements. Service call created Nodes,attributes and method correctly.
    it's giving me error when it tries to invoke webservice method through generated code.
    Question is that How do we code authentication to the webservice method via WebDynPro ABAP code.
    I appreciate anyone who worked on this area and taken basic authentication via coding. or worked successfully through coding.
    Thanks
    Praveen

    hi
    Refer this:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    It might be usefull for u.
    Regards
    Vivekananthan.S

  • XI Webservice Exception within Webdynpro component

    Hi All,
    I have created a model for an XI webservice within the webdynpro project and created 2 view one for search and the other for search results and have accordingly associated the context variables of these views to the import and response parameters of the web service.
    Now when I execute the method associated with this service I receive a service exception as enclosed below :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized
    Can someone please tell me if there any settings to be done on the client or server settings.
    Thanks in advance.
    Best regards,
    Divya

    Divya,
    please go through this documentation and see if it helps.
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/08194116bfb167e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/27fd3b651f6a1ce10000000a11402f/frameset.htm

  • Consume a webservice developed in other than coldfusion  in WS-Security mode

    1. What are the prerequisites (any software installation, configuration) to be considered ?
    Requirement : To consume a Webservice developed in other than coldfusion in WS-Secuirty mode .
    Environment used : Windows 2003, IIS 6, Coldfusion 8, SQl server 2005
    2. While trying to consume a public webservice through coldfusion , We received unable to read WSDL file and Unknown host exception error.Can you please advise. why we are receiving this error and solution ?

    Thanks Dan Bracuk, for your reply.
    What I could understand from Sivakarthikeyan post is that
    Point 1)
    It is mentioned that they are going to consume external webservices for which he would like to know whether any software/configuration is required to implement WS-Security (In IIS or coldfusion administrator)?
    Point 2)
    It could be a correct URL that he is using, from his description (2nd step) he gets a error message as "Unable to read WSDL file". If it of incorrect URL then he would have received file not found or other error message.
    Can you please or anyone clarify?
    Thanks,
    Satheesh

  • (261718088) Q ADVC-4 Can Timer Control/Polling be used to interact with webservices developed outside of WLS?

    Q<ADVC-4> Can Timer Control/Polling be used to interact with webservices developed
    outside of WLS?
    A<ADVC-4> Absolutely, Timer mechanisms are the appropriate way to make your web
    service a client to another web service and are very useful to provide polling
    mechanisms. Look at slides ADVC 9-11 to see more.

    Step by step, how did you arrive at seeing this agreement?

  • Webservice development  method

    Hi,
             I want to develop a webservice in webdynpro for consuming BAPI(BAPI_MATERIAL_AVAILABILITY).
    Can someone provide me the related document to reach this requirement?
    Thanks,
    Kundan

    Hi,
    you can create Web service consuming BAPI in R/3 itself.
    Have a look at this link
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/2eac5a56d7e345853fe9c935954ff1/frameset.htm
    - Saravanan K

  • ABAP Webservice and Third Party Webservices Consume in Webdynpro

    Hi Everyone,
    My Landscape is
    ECC 6.0 SP16.
    PORTAL is Netweaver 2004s SP16
    NWDS SP14.
    I Need How To Develop Webservice From RFC's in ECC.[I Need Step By Step Documents Making Webservice From RFC].
    Because I read so many documents,Blogs But i am not getting what i want.
    What Configuration I Will Do On SOAMANAGER.
    How To Cosume in Webdynpo.
    I Exposed RFC As Webservices but When I Testing in wsnavigator
    I Am getting Below Error
    An error has occurred. Maybe the request is not accepted by the server:
    Connection refused (errno:239)
    The above ABAPWebservice i consumed in Webdynpro.After Deploying i will get the error.
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZK2GenProjInfo' in interface 'z_k2_gen_proj_info'
    I Am in confused State What I Will Do.
    I Am Thinking the Webservice is not correct.
    And also We have some Internet Webservices.
    https://usint.skire.com/ws/services/mainservice?wsdl
    the above Webservice Protocol is https.
    But Our Portal Run under http.
    Thanks
    Subba Rao

    Hi,
    The given Document is helpful to me.
    But in My ECC 6.0 SP18.WSConfig and WSADMIN Transaction codes are Absolete.
    New Transaction code SOAMANAGER We get the exposed Webservice.
    But What the Problem is We forget some things while creating Webservices.
    We are getting the Error While Testing Webservice Under Wsnavigator Of Portal.
    I Am getting Below Error
    An error has occurred. Maybe the request is not accepted by the server:
    Connection refused (errno:239)
    The above ABAPWebservice i consumed in Webdynpro.After Deploying i will get the error.
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZK2GenProjInfo' in interface 'z_k2_gen_proj_info'
    I Am in confused State What I Will Do.
    I Am Thinking the Webservice is not correct.
    And also We have some Internet Webservices.
    https://usint.skire.com/ws/services/mainservice?wsdl
    the above Webservice Protocol is https.
    But Our Portal Run under http.
    Thanks
    Subba Rao

  • Consume Adaptive Model Webservice in the webdynpro java Exception.

    Hi  Experts:
    i had developed a Adaptive Webservice  Model  on CE7.1 to consume the webservie of  PI7.1 .and then i deploy the webdynpro project to the ce7.1,but when invork the webservice ,the  exception throwed is :
    Exception on execution of web service on destination 'MANUALRUN' for operation 'MANUALSENDER_SI' in interface 'MANUAL_SENDER_SI'_
    i had maintained the  destination of 'MANUALRUN'  and 'MANUALMetadata', and test successful in the webservice navigater .
    i dont know how to solve the problem.
       best regards
    Edited by: kevin liang on Oct 21, 2009 3:50 AM

    Hi  Experts:
    i had developed a Adaptive Webservice  Model  on CE7.1 to consume the webservie of  PI7.1 .and then i deploy the webdynpro project to the ce7.1,but when invork the webservice ,the  exception throwed is :
    Exception on execution of web service on destination 'MANUALRUN' for operation 'MANUALSENDER_SI' in interface 'MANUAL_SENDER_SI'_
    i had maintained the  destination of 'MANUALRUN'  and 'MANUALMetadata', and test successful in the webservice navigater .
    i dont know how to solve the problem.
       best regards
    Edited by: kevin liang on Oct 21, 2009 3:50 AM

  • Webservice to a webdynpro

    Hi,
    Is there relation between webservice and webdynpro in ABAP..I mean how can we use these two together for achieving a user interface program...?????
    I have very little knowledge in Web Service....!!! Excuse if this makes no sense...
    Thanks,
    ABAPer 007

    Hi,
        No you are getting a bit confused. No problems. I will get it cleared for you.
    ABAPer 007 wrote:
    I would like to tell my understanding.. So webservice is an architecture to develop UI technology and Web Dynpro a tool which utilizes this architecture to effectively explore UI technology....( Correct me if i am wrong ? )
    Yogesh Answers:
    Webservice is not an architecture to develop UI technology. Webservice is an architecture to utilize enterprise level logic. This logic either preexists in the form of SAP ABAP code (in SAP systems). For example creation of a Inquiry (SAP standard T-Code). Suppose i want to do it from my Webdynpro UI. So i ll utilize this standard enterprise code from a webservice.
    ABAPer 007 wrote:
    I developed one Web Dynpro program which takes some input and provides output based on it in another VIEW. Hence whether i can say I developed a Webservice ?
    Yogesh answers:
    No you did not develop a webservice. You only developed a platform that will ultimately consume a webservice.
    ABAPer 007 wrote:
    i developed a Webservice using ABAP transaction SE80 and attached a Function Group to it....But interesting thing is !!! how i should proceed further to test or consume it !!!!!!
    Yogesh answers:
    Yes its correct that you made a webservice out of a function group. To test it you can use the nwa.
    http://<server>:<port>/nwa --> Web services navigator.
    You require an appropriate wsdl link to the webservice.
    This wsdl link will be available from the webservice definition in the workbench. Open the webservice and you will have a wsdl button/tab at the top of the screen.
    Revert for other doubts

  • Need help in developing a webdynpro application using UWL API

    Hi developers,
    Iam developing a new WebDynpro application for UWL using UWL API.the functionality is to dispaly the summary of UWL like number of unread items, total items.
    Iam getting the problem while deploying the application, iam getting warning while deployed the application.
    I have given all possible ways mentioned in the below forum link
    Re: Accessing PortalRuntime at runtime?
    The exact problem is coming at reference file.
    Please giude me how to move forward.
    1. Below is the error when given "tckmcbc.uwl~api" in the service entry
    deployed with warning :
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application local/UWLCountDemo for startup. Reason=Clusterwide exception: Failed to start dependent service ''tckmcbc.uwl~api'' of application ''local/UWLCountDemo''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
    2.Below is the error  when i gave PORTAL:sap.com/tckmcbc.uwl~api in the sharing refernce entry
    Finished with warnings: development
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/UWLCountDemo and wait. Reason: Clusterwide exception: server ID 21763550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/UWLCountDemo cannot be started. Reason: it has hard reference to resource tckmcbc.uwl~api with type application, which is not active on the server.
    Thanks in Advance
    Sekhar.
    Edited by: sekhar c on Mar 21, 2009 11:24 AM

    Please see Kenichi Unnai in his blog "How to use UWL API for NetWeaver BPM Tasks"
    How to use UWL API for NetWeaver BPM Tasks
    The .sca-file can be found on the sap service marketplace, afterwards you need to import the .sca-file, add the SC to your "MyComponents" and then you can select your necessary DC's.

Maybe you are looking for

  • Crystal Report & Liveoffice connection

    Hello, I am using Xcelsius (2008,sp3,fix pack 5) and crystal report (2008 sp3) along with liveoffice(sp3). But while a crystal report takes 2-3 seconds to execute but when I  map the same crystal report through liveoffice after uploading the crystal

  • New E4200 firmware release?

    does anone know when the next release will be out?  I have sorted out all the kinks but still loose my media server once in a while and need to reboot the router to get it back.   I am using the latest release.   NOthing seems to trigger the loss of

  • Split view in Numbers

    Dear Forum users, We have just transfered to iWork from Appleworks and are trying to iron out the differences! so please excuse me if this post is a little banal. In Appleworks (as in other spreadsheet software) one can split a view so that you have

  • Please could you tell me what DLT/SDLT/Ultrium series drive works with Sun Fire V880 with SCSI Sun X

    Please could you tell me what DLT/SDLT/Ultrium series drive works with Sun Fire V880 with SCSI Sun X6540A? The question is URGENT because we need to do backup/restore of our Databases but we have not backup device... We want to buy it but we don't kn

  • 2007A: Unable to install evaluation version of SAP B1 2007A

    we are trying to install SAP B1 2007A but we are only able to install 95% after that we are not able to install 5%. meghana