Create Webservice from an EAR

Hi,
I want to deploy a java EAR file into the PI java stack and then wrap it into a webservice and expose it from PI for use.
How to do that?
Regards,
Nitin

Hi,
       Deployement of Web Services:-
Step 1)
        In NWDS
     Goto Windows->Open Perspective->others -->J2EE development.
Step 2)
     Goto File->new->Ejb module(give project name).
Step 3)
     Right Click on the <project name> eg. work_ejb select new->Ejb.
Step 4)
     Give an appropriate EJB name and default package (eg. com.xxx.yyy).
     Also select stateless Ejb.
     Click next then next and then next.
Step 5)
     Add method with an appropriate name.
     Mention the return type and also assign the required parameters.
     Logic is written in the EJB module bean.
Step 6)
     Right click on the <project name> and build EJB Archive.
     Creates .jar
Step 7)
     Goto File->new->Enterprise Application project(to create EAR)
Step 8)
     Give project name, assign EJB and build.
     Creates EAR.
Step 9)
     Right Click on the EJB.
     Goto new->Web services.
     Specify name of the web service.
     Specify EAR in the WEB service.
Step 10)
     Build EAR.
     Build Ejb.
Step 11)
     Goto Windows->Prefrences->SAP j2EE engine.
     Give the message server host name.
Step 12)
     Right Click on EAR and deploy.
Step 13)
     Goto-> http://<host name>:<port no.>/index.html
Step 14)
     Choose the web service name,test it and download it(default WSDL).
Step 15)
     Import port(WSDL) in External definition of SAP PI.
regards,
       Milan Thaker.

Similar Messages

  • How to create webservice from function module

    Hello,
    I'm trying to create webservice from function module from. I choose Utilities/More Utilities/Create Webservice/..From function Module. What data should I enter in section "Enter Package/Request" ?
    When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign namespaces"
    Is there any doc about this procedure (web service creation) with description of all sections ?
    thanks for any reply,
    Lukasz Ferenc

    Hi,
    Which SAP product of wich release of which SP are you using ?
    The procedure is documented in help.sap.com and in blogs and SDN forum messages.
    It means that the use of the SEARCH button should give plenty of answers...
    >When I check "Local object" checkbox I get a message "Test objects cannot be created in foreign >namespaces"
    As usual, begin your choosen name with an "Z".
    Regards,
    Olivier

  • Unable to create webservice from EJB due to wrong wizard configuration

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-i 1</a>
    <a href="/people/baris.buyuktanir2/blog/2007/02/12/how-to-create-dynamic-configurable-web-services-easily-with-netweaver-development-components-part-ii 2</a>
    Regards
    Abhijith Ys

  • Issue with IDE configuration for creating Webservice from EJB

    Hi All,
           I was trying to create a webservice from a EJB(session bean).I executed following steps :
    1. I created the bean in one EJB project.
    2. Then created another Enterprise Project in whichEJB projects .jar file is included.
    3. Now when i right click "ejb-jar.xml" to create a webservice ,webservice wizard
       appears in which Server and WS runtime configuration are set properly.
       But it displays following error message on the top : "Select a service Project Type".
       If i click on the link on the wizard to select a "service Project type" the drop down for the same comes empty.The value for 'Service Project' is already defaulted
    as "Webservice Project ".If i go to windows->preferrences->Webservcies->ProjectTopology i found two entries in the service project type list :
                         1.Dynamic Web project
                         2.SAP Web Project
         But there is no entry for Webservice Type project.Can any one help me out
    how to solve this issue ?
    Thanks and Regards
    Ashis

    Hi Ashish,
    perhaps you launch the Web service wizard from the wrong location (i.e. not selecting the SEI you want to use). Did you strictly follow the steps described in the <a href="http://help.sap.com/saphelp_nwce10/helpdata/en/44/f36fa8fd1d41aae10000000a114a6b/frameset.htm">documentation</a> for creating the web service?

  • Error creating webservice from BRF+ application

    Hi,
    I am creating a webservice for the BRF+ application that I created.
    I entered following parameters,
    Development Package: 
    Local Package:   
    Transport Request: 
    Create Function Group:   
    Function Group: 
    Function Module: 
    Prefix for Generated Object: 
    Webservice Name: 
    Webservice Short Text: 
    Webservice Security Profile: 
    I get the following error message, which I am unable to find the reason for. Please help.
    Save all the objects before generating the webservice
    Alternatively I will appreciate if I can have the code that is generated as part of webservice. I think there is more code than I found below from the blogs.
    TRY.
      hand over some values into the context
        lo_context = lo_function->get_process_context( ).
        lo_context->set_value( iv_name  = 'GROSS_SALARY'   "#EC NOTEXT
                               ia_value = 25000 ).
      process the function
        lo_function->process( EXPORTING io_context = lo_context
                              IMPORTING eo_result  = lo_result ).
      get the result
        lo_result->get_value( IMPORTING ea_value = lv_string ).
        WRITE lv_string .
      CATCH cx_fdt INTO lx_fdt.
      error handling
        LOOP AT lx_fdt->mt_message ASSIGNING <ls_message>.
          WRITE / <ls_message>-text.
        ENDLOOP.
    ENDTRY.
    lo_function->if_fdt_transaction~dequeue( iv_deep = abap_true ).
    My goal is to create a function module that can use the BRF+ application rules to determine result based on input entered.
    Regards,
    Kartik N.

    Hi Kartik,
    You will get the following error message, if you have done some changes and you have not saved before trying to generate the webservice.
    Please save all the changes before trying to generate the webservice.
    Also, if your goal is to just generate the function module, this can also be alternatively done, but not from the UI.
    You can try the same by executing the method GENERATE_RFC of the class CL_FDT_WEB_SERVICE and pass the required inputs. The only differnece between both this method is that in the webservice method you also have to provide the webservice related attributes, whereas in the other method you do not have. This funcitonality has not yet been ex[posed on the UI.
    Thanks and Regards
    Nitesh

  • NullPointerException received on creating webservice from wsdl with jdevel

    Hello experts,
    I have the following problem when trying to create a web service from a wsdl file:
    java.lang.NullPointerException
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.fetchWSDL(SpecifyWsdlPanel.java:1054)
         at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$1.run(SpecifyWsdlPanel.java:364)
         at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
         at java.lang.Thread.run(Thread.java:662)
    I'm using Jdeveloper 11.1.2.2.0.
    Any ideas?
    Thanks in advance and best regards!
    Edited by: Carolik on 23.10.2012 01:28

    are you trying access web service(old) which is free of cost.
    nowdays, most of the webservices(free of cost) they are re-locating the service to somewhere else
    anyhow, some of the service had been stopped.
    so please post which web service are you trying access(if it belongs to public).
    if it is private web service dont post here

  • Creating Webservice from BC

    Hi Folks,
    Question 1: I wrote an Business compoenent. So I Have one AM with contains 2 VOs. My question here is .. I want to conevert this whole to a webservice.
    I am very new to this and am not able to create that. Please help me out in the procedure or any links that will help..
    Question 2: I want to use ESB to route the requests from UI to webservice. I don't want direct wiring to webservice. Please help in configaring ESB and using ESB and then how to wire the UI to Websrvice through ESB.
    Please help me out as I am strugling on this from 2 weeks and not able to get any docs also... Pleassssssssss help me folks..

    Question 2: I want to use ESB to route the
    requests from UI to webservice. I don't want direct
    wiring to webservice. Please help in configaring ESB
    and using ESB and then how to wire the UI to
    Websrvice through ESB.- Drag a SOAP service to the canvas
    - Go through the wizard to configure this SOAP service to point to your webservice
    - save and register your ESB project with the ESB server
    - open the ESB control and look at your project
    - click on the "Definition" tab for the service
    You will see a WSDL there - you can use this WSDL in your UI.
    You now have a layer of indirection between your UI and the actual web service.
    Hope that makes sense.
    Demed L'Her, ESB product management

  • Problem creating webservice from existing code in sjse8

    I have a java class with three methods in an enterprise app (no ejbs) that I want to expose with webservice. In sudio5 I had no problem with webservice creation but in studio8 when I chose "From scratch, Use existing code", it gives me the opting to go to my class and select those methods. When I click finish, it generates an Implementation class that has declaration for my java class repeated 3 times which is obviously wrong and under it says:
    // Enter web service operations here. (Popup menu: Web Service->Add Operation)
    The class is empty.
    I choose "rpcliteral", "strict", "useonewayoperations" and "donotoverride" under web module property / webservice.
    And as you can guess it generates a wsdl file with no webservice methods info.
    I have and am checking all forums and searching different sites but haven't fond anything yet.
    I appreciate any help resolving this issue.

    Seems this feature doesn't work properly in jse and completely removed from latest nb55 enterprise pack (only session enterprise bean case remain)

  • Generate document classes when creating WebService from WSDL using JAXRPC

    Can anybody tell me how i can generate request response document classes.Response is return type and request is its parameter of method (service provided by webservice).
    I had used cmd:
    wscompile -keep -gen:both -d src config.xml
    My config.xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <wsdl
    location="wsdl\TroubleTicket\v1-2\JVTTroubleTicketSession.wsdl"
    packageName="src">
    <handlerChains>
    </handlerChains>
    <namespaceMappingRegistry>
    </namespaceMappingRegistry>
    </wsdl>
    </configuration>
    After running the wscompile command, i was able to generate SOAPBuilder classes, LiteralSerialiser files, Request-Response-Exception classes and the Tie, stub, Port and Impl classes.
    How can i procedd furthur???

    Arushi,
    I would refer to the online tutorial for JWSDP, which walks you through creating a web service and a Client to the service.

  • Trouble when creating webservice from PL/SQL via jdeveloper

    Hi,I'm new comer of this world,
    I've a pl/sql like this:
    package MY_WS_API is
    type record_set is ref cursor;
    PROCEDURE Get_User_Info(p_user_id VARCHAR2,
    p_rep_id VARCHAR2,
    p_flag out number,
    p_msg out varchar2,
    p_recordset out record_set);
    end MY_WS_API;
    when I using jdeveloper trying to publish it as a webservice, in the step 4 of the wizzard poping me choose the program unit to expose, the PROCEDURE Get_User_Info is not available and told me "Ref cursor Type is not supported due to a jdbc limitation and Ref Cursor Types are only supported for use of return type".
    THE QUESTION is:
    1.the cursor I used is of return type,I'm not very understanding the "why not" message upon.
    2.in such case , need I trans the return cursor into Object[] if have to?
    3.any other limitation for generating WS from PL/SQL using jdeveloper?
    Thanks!

    I had the same problem and found that JDeveloper uses the thin driver to connect to oracle, this driver doesn't support ref cursors or xmltypes etc. You have to assemble your own web service using the webservicesassembler command line utility (i.e. wsa.jar). This link should provide you with all you need:
    http://download-west.oracle.com/docs/cd/B25221_04/web.1013/b14434/wsassemble.htm

  • Error while creating webservice from function module in ECC

    Hi
    while creating a web service out of a function module in ECC, in the configure service section we get a message saying ' Remember that the service does not have any runtime configuration and therefore cannot be used. Create the Web service configuration in the NetWeaver Admninistrator (transaction WSADMIN2).'
    instead of check box 'release for runtime'.
    Our ECC at release 7 patch level 22.
    Checked in SCICM, SICF teh service and the folder are active.
    Please suggest if we are missing on anything
    Regards
    Kumar

    In new version on ECC, the runtime configurations needs to be performed in transaction SOAMANGER.
    On executing the transaction, it opens a browser. The important configurations to be performed are:
    1. Configure J2EE server and host. You can choose to provide the ECC server and host
    2. Administration of the service in "Single Service Administration". The navigation path may differ depending of the ECC versions. But it is related to administration of the services.
    Once done, check the WSDL generated.
    Use this WSDL in the NWDS.
    Regards,
    Sharath

  • 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

  • Problem in calling Webservice from Webdynpro ABAP

    I want to call a BAPI FM which is available in SAP ECC server when user is clicking on a button in a web dynpro application which is available in SAP Portal server.
    For example,
    Portal server name is DVP-EPP &
    ECC server name is DVP-ECC
    I have the done the following steps to achieve it,
    In Server DVP ECC:
    1) Created Web service from the standard BAPI FM (SE37-->Utilities-->More Utilities-->Create WebService --> From the the Func.Module)
    2) Downloaded the WebService as WSDL file from SOAMANAGER
    3) Tested the Web service through SE80, it is correctly calling the BAPI & creating necessary data.
    In Server DVP EPP:
    4) Created a Proxy class as follows,
    a) SE80 --> Package --> Create --> Enterprise service
    b) Selected Object type "Service Consumer"
    c) Selected Service Consumer "Local File"
    d) Browsed and selected WSDL file downloaded from DVP ECC
    e) Selected the Package, Prefix, Request, Completed the process & Activated it.
    5) Configured the Logical port as follows,
    a) Selected my Proxy class through F4
    b) Wrote a name for Logical port, Selected 'Default port' checkbox and selected 'Create'
    c) In the next screen, in 'Call parameters' tab, selected the 'URL' radio button & mentioned the URL of the WSDL-Document created in DVP-ECC system
    d) Saved the data & activated it
    5) Now, tested the service through (SE80-->Package-->Enterprise Services-->Client Proxy) option.
    6) When I test it, system prompts a dialog box for User-Name & Password (as available in DVP-ECC system).
    After the details are given, system throws the Information message as "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/" - Exception of class CX_AI_SYSTEM_FAULT
    No record is created in DVP-ECC through the WebService BAPI.
    Please tell me whether the steps that I followed are correct as per my requirement and a solution for the above interruption.
    Thanks in advance

    Good day guys,
    Somehow I managed to resolve the above error.
    Now in DVP-EPP system, I am able to Test the Web service Client Proxy (through SE80) and a record is successfully created in destination system (DVP-ECC).
    Now, in Webdynpro I am unable to call this webservice proxy class.
    System throws the error,
    Error (id=SoapFaultCode:5): Web service processing error; more details in the
    web service error log on provider side (UTC timestamp 20141006045544;
    Transaction ID 9A144DE49C12F1B5A6B9E41F137BE3CC)
    I just created a sample WDA application and on click of a button I am calling the Webservice Proxy class as follows,
    Method on_submit_click().
    TRY.
          CREATE OBJECT wd_assist
            EXPORTING
              logical_port_name = 'ZLOG_PORT'. "Logic port creatd for Proxy class (in SOAMANAGER)
          CALL METHOD wd_assist->bus1240create     "Method available in generated Proxy Class
            EXPORTING
              input  = ls_inp                                        
            IMPORTING
              output = ls_outp.
        CATCH cx_ai_system_fault.
      ENDTRY.
    ENDMETHOD.
    Do I have to do any thing additionally in order to call the WebService in WDA?? Because, in the same system, if I test it in SE80, record is perfectly created in destination server.
    Also please suggest if I have to do any other configuration changes related to this.
    Keenly awaiting your reply.
    Have a nice day .
    Thank you.

  • How to use own created WebService in BPEL?

    Hello!
    I have a problem using an own created Web Service (a wsdl file) in BPEL Process Manager.
    At the moment I have a Java program which is getting values from SAP via SAPJConnector. From this Java program I generate an WebService File (wsdl) via Axis (on my local Tomcat Server).
    Now I want to use this own created WebService (wsdl file) in BPEL. I don't know how to bulid it to my BPEL Server so that I can use it in JDeveloper.
    Does anyone know what I have to do?
    Would be nice if someone could help me, because its very important
    Thank you

    Hi.
    Thanks for your reply.
    The way to invoke the WebService in BPEL Designer is not the problem i have.
    The problem i have is how to deploy my own created WebService (from a Java class with AXIS) to the BPEL server (OC4J).
    Do you know a solution for this?
    I described my Problem detailed in another thread "Thread: Issues Publishing Web Service to OJ4J"
    Tanks and Regards
    Benjamin

  • Create Webservice and deploy

    Dear Gurus,
    I had followed the below steps in creating webservices using ABAP.
    1. Create Package
    2. Create Function group
    3. Create RFC function module
    4. Create webservice from the function module
    5. Create service definition, select port profie and deploy service and assign to Package and transport request
    6. Executed SOAMANAGER transaction , it opens a webpage with internet explorer defaul web page and I dont see any SOA administration related information and I dont have any clue how to proceed further.
    Please let me know if I there is any prerequisities Like SP to be installed, or any configuration / settings needs to be done.
    I am workign in SAP ECC 6.0 (SAP version 700)
    Thanks in advance.
    Thanks
    Shanthi

    Hello,
    In Web Service hierarchy transaction SICF, node APPL_SOAP_MANAGEMENT should be active. The complete path is default_host/sap/bc/webdynpro/sap/APPL_SOAP_MANAGEMENT.
    Once you are in the SOA Management screen, select single service adminstration and select your service and create End Point there.
    Thanks,
    Venu

Maybe you are looking for

  • Frustrated with SCCM Software Deployment - GRRRRRRRRR

    I made a change to an application which changed the revision from 4 to 5.  I redistributed content so all my DPs are showing Revision 5.  When I update my Machine Policy and then my Application Enforcement policy the workstation is still trying to ru

  • After Effects Issue uploading to Youtube - Screen Resolution

    Hi All I've been struggling lately trying to get my set of youtube videos to appear at the proper resolution and ideally fullscreen without the black bars at the side. Youtubes recommended sizes: 1080p: 1920x1080 720p: 1280x720 480p: 854x480 360p: 64

  • Unicode migration via socket

    Dear all, I am converting an ECC system to unicode using the socket option. Shortly after the communication between the two server has been established and 2 jobs has been completed I can not see any procedure. And in sapinst gui I can read "RESPONSE

  • ESS user Authorzation

    Hai Gurus I have assigned the standard Composite role(ZSAP_EMPLOYEE_ERP) of ESS to a user.But if he logs on to his ECC, he is able to create and view the data of the selected infotypes assigned in the role.But i want restrict his permission to view a

  • Help! renaming my songs?

    I click the song and go to "get info" and the option for artist is blank and greyed out... how do you rename songs? Thanks!!!!!