Calling webservice from webdynpro thru model(webservice created from BAPI)

Hi all
i have created one webservice from Functional module in backend system(ECC) and also i released the same webservice in backend(ECC) thru the TCODE wsconfig.
my questions are
1) how to execute that created Webservice in backend system itself(ECC). can you please send the execution steps for webservice in ECC system.
2)  how to call from webdynpro thru model for that created webservice from functional module. can you please send the execution steps for the same. here there are three options while model for webservice like local server,Local file system and UDDI or URL.
Regards
Sunil
[points are always rewardable]

hi!
Below are good documents on Webservices
Adaptive webservice model
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
Re Importing of Web Services in Simpler way
Re Importing of Web Services in Simpler way
Using RFC as WebService in WebDynpro
Using RFC as WebService in WebDynpro
Enterprise Applications with webservices and Web Dynpro
The specified item was not found.
Regards
vishal

Similar Messages

  • Calling EJB in WebDynpro JavaBean model

    Hi,
    we have our business logic encapsulated in EJB's. Due to performance issues we don't want to call the EJB's via the webservice model in Web Dynpro. Thus we decided to use the Java Bean model in Web Dynpro and call the EJB's we need in the execute method of the Java Bean.
    This worked fine before we migrated from FP12 to FP14. Now we get a
    java.lang.NoClassDefFoundError: javax/ejb/EJBHome
    exception when we try to access the EJB in the execute method of the Java Bean.
    This happens although we have defined a library reference to
    sap.com/ejb20
    in project properties -> Web Dynpro References.
    Did we miss something in order to use the ejb20.jar?
    Any help to this topic is appreciated.
    Greetings.
    Achim

    Hi,
    we have exactly the same problem!! We also use FP14
    Please help!
    Greetings
    Thomas

  • Charge Account Is Not Copied From PR to PO When Created From PR to RFQ to Quotation to PO

    Hi,
    We are using Autocreate functionality (Forms) for creating PO.
    Now when we create PO directly from PR, distribution account gets copied correctly from PR, but when when we create PR>>RFQ>>Quotation>>PO , it takes from Inventory org material account.
    I want to use the same account from PR to be copied into PO.
    Please Advise,
    Thanks Nikhil

    You may find the following links to be helpful
    Incorrect PO Accrual Account when PO is created from a Purchase Requisition (Doc ID 1136853.1)
    How to Set Up and Use Category-based Account Default in Purchasing (Doc ID 293046.1)
    How To Diagnose Issues In Autocreate (CREATEPO) Workflow (Doc ID 559009.1)

  • Call external service in a Application service created from ES

    Hi Experts
    I have the follow situation:
    I've modeled a new service in Enterprise Service Builder. This service i'll implement in caf application. In the method create by application i'll call one method of external service.
    I imported this modeled service in Create Web Service Provider option in external package, select the Enterprise Service Repository source option and choice the respective Service Interface.
    In this moment the caf created a new application service, with methods of modeled service. That's all right.
    Now i import a external service of esworkplace. All the step are ok. But the problem is going to next step.
    I need to call this imported service in the method of application service. I know 3 way to do this:
    1. Mapping the external service with this application service. In this case i have a problem - the method of external service is expose as web service, and i don't want this. Just the method of modeled service must be expose.
    2. Create another application service, map the external service with this application service, and create a depency between this application service and the application service created by modeled service. I think this work fine and resolve the problem of expose the method of external service. However i think this isn't a good way to do.
    3. Instantiate the service class of exernal service. From this class i can call the method of external service in application service. But now i have another problem. If i see the implementation of this class, it have a static block which call a URL class, and pass as parameter a wsdl file located in one directory of my computer like
    url = new java.net.URL("file:/D:/SAP7110Workspace.jdi/LocalDevelopment/CRVP/demo.sap.com//ejbmodule/
    _comp/tmp/0/EJB/src/META-INF/xml/ext/rootwsdl_WorkCentreSimpleByPlantQueryResponse_InService.wsdl");
    when execute the application in the server it don't find this file and i give one error.
    I think the best way to do is the 3° way. But why did the caf generate the URL with My computer directory instead of in directory of application? There are some solution to this problem?
    I've change this line manualy, but all the time when i generate the project, i need change this code again.
    Regards
    Marcos

    Hi,
    You may consume external service via JNDI
    Context context = new InitialContext();
    <JNDI OBJECT> local = (<CAST JNDI OBJECT>)context.lookup("<JNDI OBJECT>");
    //Call the method
    If you are using CE 7.11, go to NWA -> Problem Management -> JNDI browser  > ..... -> ObjectName for <JNDI OBJECT>
    - julius

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • Creation of purchase requisition from Webdynpro Java

    Hi all,
        I have a requirement that i should create purchase requisition from webdynpro java. i imported all required BAPI in the webdynpro. But i am not getting what should i have to give as input paramater. I have imported the Bapi_Requition_Create. Please help me on thin what sould be the input parameter i should pass.
    Regards,
    Shreeharsha

    Shreeharsha,
    you can check out the fm inse37 and see what are the importing and tables parameters
    Thanks
    Bala Duvvuri

  • BAPI Diff between Creat and Create from Data

    Hi All,
    for Sales order creation we have Many BAPI function module.
    how can i decide which module shoud i use ..a
    and what is the diff bw create and create from data function module.
    And i have read some where about BAPI --- ' acces to SAP applications from Third party can only by means of BAPI's.'..
    it means can't third party call RFC's in SAP.
    if they can call RFC's why BAPI.
    i met this question in so many Situations.
    But i didnt get clear answer for this.
    could u pls help me.
    Thanks in advance.
    Jeyaseelan.G

    hi jeyaseelan guru,
    there no difference actually ...between a create bapi and create from data() bapi...
    open business object type kna1 in swo1 and see that  differeence lies in the versions .....double click on create method under the methods node u will find tat create bapi  used from the release 30a and create from data bapi used from the release from 45a.......... based on the versions it offer more features ............
    so, try to use a bapi of newer version
    The BAPI Create() or CreateFromData() creates an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    reward points if helpful.....
    Message was edited by:
            raam

  • Enable to  run .exe file which is created from .air file  in windows 7?

    Enable to  open .exe file which is created from .air file which is created from adt command in windows 7 .
    for run .exe file ::
    The user must right click and select "Run as Administrator" for run successfully.
    so How to remove this above permission issue in Windows 7?
    Thanks
    Sunil

    Right-click on the exe file and choose Properties.
    Switch to the compatibility tab and uncheck the box next to "Run this program as an administrator". Click "ok".

  • How to create custom BAPI for a project on Agentry?

    As I am very new to BAPI creation, I would like to get some helpful pdf documents or links for creating custom BAPIs, which would fetch data for an Agentry Project to be build.
    Tags edited by: Michael Appleby

    Rajkamal,
    I would recommend you work through the following tutorial on how to build an Agentry application from scratch.  It covers creating a BAPI to retrieve data from the SAP backend to Agentry.
    Part 1 - http://scn.sap.com/docs/DOC-47550
    Part 2 - http://scn.sap.com/docs/DOC-47651
    --Bill

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • Consuming PI Webservice from Webdynpro Java Not working

    Hello SAP,
    Environment: CE 7.2.
    Resolution expected immediately, Helpful answer is highly appreciated.
    Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
    I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
    I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
    Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
    Options tried so far:
    1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
    2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
    3) Changing the Business Systems in PI and there after calling the service - Not worked
    4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
    5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
    For all the Options, I am facing the same error which is provided in the screenshot.
    Below procedure which I have followed for calling the PI Webservice:
    1) Created Adaptive Webservice Model
    2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
    3) Selected Option - No Service Group Configuration
    4) Provided Logical Destination
    6) Completed creation of Model
    7) Added the model as a UsedModel
    8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
    9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
    10) Build the project.
    11) Activated the code and Run the Application.
    12) Getting the below error which is showed in the message.
    ERROR MESSAGE:
    Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'

    Hi Sankar,
    If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
    Please check the code for initialization and execution for the webservice and then test it.
    Best Regards,
    Arun Jaiswal

  • Com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException

    Hello Team,
    We have a scenario where we have a PI web service and we are importing the WSDL into our WD Java application.
    While running the test scenario we are getting the below 2 exceptions in the stack trace.
    20111222:Exception trace: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service on destination 'WS_CUST_**' for operation 'GetCustomer*' in interface 'GetCustomer**'
    Caused by: java.rmi.RemoteException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.; nested exception is:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
    Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
    By running through few posts on SDN a probable solution for this was proposed as: blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application
    Any help on this would be great.
    Regards,
    Shailesh

    Dear Shailesh,
    Did you try to check the blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application? please try to check and test.
    Also try to import fresh in new DC and check whether it is working or not.
    Best Regards
    Arun Jaiswal

  • 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

Maybe you are looking for

  • Help me with  this assignment

    can anyone out there help me with this assignment ????? i`ll attach the file to this topic In this assignment, you are to write a Java applet, using arrays, to simulate the functions of a drinks-vending machine. The assignment requirements described

  • Reading from a file. How to ask the user for file name at run time????

    I have the code to read from a file but my problem is how to prompt the user for the file name at run time. import java.io.File; import java.io.FileNotFoundException; import java.util.InputMismatchException; import java.util.Scanner; public class Fil

  • Those PREMIUM MESSAGING charges

    I originally posted this suggestion under an older post and the original poster to the thread suggested that I move the message up to a current discussion.  Just an FYI Premium Messaging charges are alive and well and being added to your Verizon bill

  • Scheduling job problem and modification in the bat file

    Dears ALL i am using the following script in windows 2003 server for oracle database 10 g i have one problem of scheduling the task i scheduled it successfully on windows scheduled task program but its not running at scheduled time and even when i ru

  • Power button will not go in or out

    I have received in April a Nano generation 6 under Apples product replacement.  This replaced my great working generation 1.  The power button will not go in or out.  Tried to go to Apple support and put serial number in.  It states out of warranty.