Exposing ejb3 as webservices

hi java folks,
I am exposing my existing ejb3 components as web servieces.
cleint tries to access webservice using JNDI lookup,but i am getting following error,
javax.naming.NameNotFoundException: service not bound
could anybody tell me does it requires any deploy descriptor files.As i am using ejb3 its full of annotation.No deployment descriptor file is required.But to bind jndi name with webservice do i require any additional descripor files?
please help me..
thanks in advance.

Thanks Timo !
Found out to be an issue with Oracle Fusion Middleware control (http://<hostname>:<port>/em ) validating for required Inputs, but when tested with SOAP UI or Web logic Test Client (http://<hostname>:<port>/wls_utc) it works as expected. Reported the issue to Oracle Support and the problem has been reproduced there.
Regards,
Prashanth

Similar Messages

  • Expose IDoc as Webservice

    Hi,
    <i>"RFC-enabled function modules, function groups that contain an RFC-enabled function module, BAPIs, and XI message interfaces can be made available as Web services without any additional programming."</i>
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/a68d10f4eb894087fc9c1c3f9ae433/content.htm
    I like to know if IDoc's can also be exposed as a Webservice..? If Yes, How.
    Cheers,
    Siva Maranani.
    Message was edited by: siva  maranani

    Hi siva,
    Have you achieved this thing?
    Have you succeeded to expose IDoc as webservice?
    If yes then how you have done it?
    Thanks in Advance,
    Bhavik

  • One question about ejb3.0 webservice

    HI all:
    How to get the ejb3.0 webservice client's IP Address??
    thanks

    Sorry I don't know what you say ?
    Two questions ? ????

  • Expose ejb3 as jaxws web service

    Dear,
    I want to expose my ejb3 stateless sessionbean as a jaxws web service (in order to have versioning for production redeployment high availability). I followed these docs a bit: http://e-docs.bea.com/wls/docs92/webserv/jws.html
    excerpt of my class :
    @Session(ejbName="myWSBean")
    @MethodIsolationLevelPattern(pattern="*", isolationLevel=IsolationLevel.TRANSACTION_READ_COMMITTED)
    @JndiName(remote="...")
    @RoleMapping(principals="MYUSER", roleName="MYUSER")
    @TransactionAttribute(value=TransactionAttributeType.REQUIRED)
    @Stateless
    @WebService(name="MyServicePort", serviceName="MyService",
    targetNamespace="http://.../.../MyInterfaceService")
    public class MyWSBean implements SessionBean{
    When I try to build the web service with the jws ant task, I get following errors:
    [jwsc] [ERROR] - The annotation weblogic.ejbgen.RoleMapping is not allowed on ...MyWSBean because it is a JAX-WS type web service.
    [jwsc] [ERROR] - The annotation weblogic.ejbgen.Session is not allowed on ...MyWSBean because it is a JAX-WS type web service.
    Seems its not allowed to mix jaxws and ejb3 annotations. What is the way to go to expose my ejb3 bean as a resource?
    thx

    Thx for your reply.
    I did it differently: Creating a EJB3 bean (using the weblogic.ejbgen annotations) and afterwords creating a seperate file for the JAXWS webservice and there injecting the bean via the EJB annotation. Works smoothly.
    Although I would rather use 1 file for both sessionbean and web service
    Therefore, like I said, in the EJB3 sessionbean I now use following ejbgen annotations:
    @Session(ejbName="...",
                   runAs="...", runAsIdentityPrincipal="...",
                   createAsPrincipalName="...", passivateAsPrincipalName="...",
                   transTimeoutSeconds="7200", enableCallByReference=Bool.TRUE,
                   useCallerIdentity=Bool.FALSE)
    @MethodIsolationLevelPattern(pattern="*", isolationLevel=IsolationLevel.TRANSACTION_READ_COMMITTED)
    @RoleMapping(principals="...", roleName="...")
    Not sure why this is 'ejbgen' annotations, instead of just ejb or javaee general annotations... Arent there any more standard annotations or so in order to specify these configurations (rolemapping, MethodIsolationLevelPattern, Session, runas, createasprincipalname...) ?
    thanks

  • Expose IDoc as Webservice without PI/XI

    Is it possible to expose an IDoc as an webservice without PI/XI?
    I noticed there is a port called XML-HTTP. Does it use SOAP? Can i use this port for webservices.
    Thanks.

    Hi,
    Precisely.
    Idoc is not a program but structure. You can create RFC which interact with this Idoc or related structure and then expose this RFC as webservice.
    Regards,
    Gourav

  • Exposing IDoc as Webservice

    Hello Everybody,
    I want to find the way how can i expose the IDoc as webservice.
    First of all is it possible? If yes then how can we achieve this?
    Thanks In advance,
    Bhavik

    Hi Bhavik,
       There is a basic difference between web service and IDOC. Web service is a call based interface, where you use request and response mechanism to call a functionality, these are mostly synchronous. IDOC is document based interface, these are mostly assynchronous.
       Coming to your problem, since you want to use IDOC's you can not expect to get a response synchronously(Processing of IDOC depends on partner profile) and I am quite sure you are talking about an inbound scenario because for outbound scenario you will consume web service rather than exposing web service.
       If my assumption is correct then from WAS 6.20 onwards you can use FM IDOC_PROCESS_ASYNCHRONOUS (I can't recall the exact name of the FM but it sounds like this) and create a WSDL for this using BSP application 'WEBSERVICEBROWSER'.
    Regards,
    Sanjeev

  • Expose Table as Webservice

    I am trying to create a internal web service that will return a recordset based on filter.
    Platform JDev 10g
    1. Made Database connection.
    2. Created new application. (JSP, Struts, EJB)
    3. Created Model Diagram. (Which Diagram should I create.)
    If I choose web service Diagram I cannot drop my table view onto diagram.
    4. ? using When I drag the Table onto the Diagram. Do I create a EJB or Java Class. I ask this because only Java Classes can be made into WS.
    What steps do I need to take to expose a table as a webservice???

    Eric,
    You can't publish a table as a web service directly,
    You'll need some code that access the table and then you'll publish this code as a Web service.
    The code can be a simple Java class doing JDBC calls, a BC4J component, and EJB or even a PL/SQL stored procedure that you publish as a web service.
    Here are some tutorials that might help:
    For PL/SQL
    http://otn.oracle.com/tech/webservices/htdocs/series/plsql/index.html
    For BC4J
    http://otn.oracle.com/tech/webservices/htdocs/series/pattern/
    for EJB
    http://otn.oracle.com/tech/java/oc4j/1003/how_to/how-to-ws-ejb21.html
    More on http://otn.oracle.com/tech/webservices

  • Few business scenario for exposing Schema as webservice in biztalk

    Can anyone give me few business scenario when we need to publish Schema as webservice in biztalk
    Regards
    Suresh

    A lot of people prefer to publish schemas as a service as opposed to publishing the orchestration as a service. This (to list a few)..
    disassociates the orchestration version from the service definition and for every change in the orchestration you do not have to republish the web service.
    allows you to create an orchestration using direct bound ports. This provides you with a flexibility to invoke the orchestration across two-way (request-response) or one-way ports. This permits service virtualization where the same service can be invoked
    through multiple protocols, etc.
    In a large project you may be required to publish the Service Definitions (WSDL) well in advance for others to start their portion of the work, in which case having decided on the schemas, this is a easy way to publish service contracts while you work on
    building them.
    Regards.

  • Exposing Constants in WebServices

    In web service is it possible to expose the Constants used in the application. Let say for my web serice I need to pass value for Operation, possible values for this are (add, delete, update). Is it possible expose these constant values(add, delete, update) visible to client application accesssing the web service.
    Server Side: public static String[] OPERATIONS={"ADD", "DELETE", "UPDATE"};
    client Side: mywebsericeport.setOperation( mywebservicePort.ADD );
    thanks
    Manju

    Check V_T511K , V_T511P also
    yes it is important for some of the indian specific things like PF and ESI we maintain the constants here
    check PF bas in table 511P where u will maintian the which ever is less i mean 6500
    Edited by: Sikindar on Dec 30, 2008 9:29 AM

  • Exposing complete data structure in webservice

    Hello Experts,
      I have a scenario where a Bapi functionality(server proxy) is exposed as a webservice .
    So scenario will be SOAP -> XI -> Proxy (calls a BAPI)
    In our BAPI (proxy, target structure) we are having 100+ fields. Currently the WS consumer - application making SOAP call to our webservice will send only 20 (minimum required) fields. But in near future it will be updated to send all 100 fields.
    Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    Thanks in Advance,
    XI Queries.

    Hi,
    >>Is it OK to include all 100 fields in source data type even though we will receive only 20 fields. (If i mark all of them as optional i.e. occurance 0..1) Or will it result in error?
    yes it is ok to have all 100 fields in source even if you use only 20 fields. But later when you make them as mandatory or anything, you need to regenerate the wsdl
    Regards
    Suraj

  • Exposing OIM APIs as webservice

    Hi,
    I wanted to know if i can expose OIM APIs as webservice?
    As per my reqmnt, i need to implement forgot password and change password functionality for OIM users from a portal application.
    So wanted to know if I can use OIM APIs say getChallengeValuesForSelf , compareChallengeValuesForSelf, changePasswordForSelf and then expose them as webservice?

    Can I do this...
    Create a WebService using NetBeans Editor...
    In it add a web method, which basically is using OIM API say getChallengeValuesForUser to fetch some value and then returning it as output of this web method?
    I'll be setting all the system properties required for calling OIM API here itself and also would make the connection to OIM here.
    I tried doing so, but getting an exception while I try to deploy the webservice,
    com.sun.xml.ws.model.RuntimeModelerException: The web service defined by the class weblogic.wsee.async.AsyncResponseBeanSoap12 does not contain any valid WebMethods.
    Kindly suggest.

  • Can I expose existing java applications as webservices

    I have some java based applications doing functions such as datamining, visualization ... Can I expose these as webservices? How to do that? Can I directly expose it as webservices? What tools should I use? Please explain.
    Thanks

    basically, if you have a java application doing stuff, you can create a webservice by writing JSP pages and beans and/or servlets. very simple example:
    - write a jsp page for data input that access your bean
    - write a bean that routes the request/response to/from your application classes
    all you need for doing this is a webserver and a servlet container (e.g. tomcat).
    however, if youre application is doing some graphical output, you could split your application in two: a client application for the visualization, which is communication with a servlet or a full blown J2EE server (http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/WCC.html).

  • Sending Email from EJB exposed as Webservice

    Hi,
    I have created a EJB, which i have wrapped in an EAR & exposed as a WebService.
    <b>I want the code to send an email from the EJB</b>
    I know there is a code to send email, but that code is to send an email from WebDynpro. I am not sure if that will work with the EJB.
    Any ideas??
    Regards,
    Hanoz

    Hi,
    Thanx for the prompt response.
    I went through that blog. Its good, but it requires me to install additional plugins, which is dont want to do.
    Here is the code to send email from WebDynpro:
    String l_str_to = "<destination email id>";
                   String l_str_from = "sender";
                   String p_subject = "U've got mail!!! ";
    //               String p_l_request_id = "1" ;
                   // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
                   String host = "<SMTP SERver ip>";
                   // Create properties, get Session
                   Properties props = new Properties();
                   // If using static Transport.send(),
                   // need to specify which host to send it to
                   props.setProperty("mail.smtp.host", host);
                   // To see what is going on behind the scene
                   //props.put("mail.debug", "true");
                   Session session = Session.getInstance(props);
                   try {
                        // Instantiatee a message
                        Message msg = new MimeMessage(session);
                        //Set message attributes
                             msg.setFrom(new InternetAddress(l_str_from));
                             InternetAddress[] address = { new InternetAddress(l_str_to)};
                             msg.setRecipients(Message.RecipientType.TO, address);
                             msg.setSubject(p_subject);
                             //msg.setSentDate(new Date());
                        java.util.Date dt = new java.util.Date();
                        msg.setSentDate(dt);
                        // Set message content
                        msg.setText("This is a test email");                         
                        //Send the message
                        Transport.send(msg);
                   catch (Exception mex)
                        // Prints all nested (chained) exceptions as well
                        mex.printStackTrace();
    <b>i want a similar code, which can be executed from the EJB!!!!</b>

  • Probelm while connecting from PI server to BAPI (exposed as webservice)

    hi friends
    i exposed BAPI as webservice in R/3 system .
    when i am trying to test from tcode wsadmin with
    "http://10.136.148.36:8002/wsnavigator/jsps/explorer.jsp?description=WebServiceZZBAPI_USER_GET_DETAIL&name=ZZBAPI_USER_GET_DETAIL&wsdl=http%3A%2F%2Finst50053318.BLR4.SAP.CORP%3A8002%2Fsap%2Fbc%2Fsrt%2Frfc%2Fsap%2FZZBAPI_USER_GET_DETAIL%3Fsap-client%3D001%26wsdl%3D1.1"
    its giving reponse when i test it.
    if directly opens with Internet Explorer through the following link
    "http://inst50053318.blr4.sap.corp:8002/sap/bc/srt/rfc/sap/ZZBAPI_USER_GET_DETAIL?sap-client=001" its showing HTTP 500 - Internal server error in R/3 system.
    in PI SERVER  i am trying to call this webservice using SOAP adapter with scenario HTTP->SOAP.
    i configured the soap adapter using URL "http://inst50053318.blr4.sap.corp:8002/sap/bc/srt/rfc/sap/ZZBAPI_USER_GET_DETAIL?sap-client=001&wsdl=1.1".
    nw its giving the respose like " HTTP 500 TIMED OUT ERROR" as wellas showing Application server error".
    please suggest me with ur valuable inputs
    thanks & regards
    Ravi

    HI,
    Have u maintained the 4 RFC destination and run the SLDCHECK transaction on XI.
    DO let me know the result of SLDCHECK.
    AI_RUNTIME_JCOSERVER
    Points from the Integration Server to the mapping runtime. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used for the mapping runtime, value mapping, and the exchange profile).
    AI_DIRECTORY_JCOSERVER
    Points from the Integration Server to the Integration Builder. The program ID corresponds to the entry under JCo RFC provider for the J2EE Engine (used to refresh the runtime cache).
    LCRSAPRFC
    The RFC destination LCRSAPRFC is required for the connection to the System Landscape Directory (SLD). It is used to read the exchange profile.
    SAPSLDAPI
    The RFC destination SAPSLDAPI is required for the connection to the SLD. It is used by the ABAP API.
    INTEGRATION_DIRECTORY_HMI
    For Cache Updates
    Ur HTTP time out problem is repsolved or still u r facing it.
    Thnx
    Chirag

  • Oc4j and ejb3.0 as web services

    Hi,
    I have deployed a ejb3.0 jar with following files.
    Interface :
    package samples.webservice;
    import javax.jws.WebService;
    *@WebService*
    public interface HelloRemote
    public String echo(String input);
    Bean
    package samples.webservice;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    *@WebService(name = "HelloRemote",serviceName = "HelloWorldService")*
    *@SOAPBinding(style = SOAPBinding.Style.RPC)*
    *@Remote(HelloRemote.class)*
    *@Stateless (name = "HelloRemote")*
    public class HelloWorld implements HelloRemote
    *@WebMethod*
    public String echo(String input)
    return input+"Hello";
    The ejb jar does not contain any deployment descriptor. I deployed it on OC4J 10.1.3.5. and Java-6.
    It got deployed without any error.
    But I am not able to see the WSDL using url.
    My ejb jar name is TestOc4j.jar
    At whct url I will be able to see the WSDL.
    I checked the admin console, under web services tab, there is no entry. I think it should show my Ws entry.
    Am I missing any step. The same WS (as ejb3) worked fine with the jboss6.
    Regards
    Ganesh

    Hi,
    you could use TopLink exposed by a EJB 3.0 session bean and use web services annotation of JSR-181 (available as a library) to expose it as a Web Service. In Business Components you expose methods to WebService by creating a remote configuration. I've done TopLink/EJB 3.0 and found it straight forward to use. In both cases the information to query from row 50 . 125 needs to be passed in by the Webservice.
    For PLSQL you may want to look at PLSQL WebServices (there are OBE availabe on the OTN website for JDeveloper -- look in the 10.1.2 or 9.0.5 section)
    Frank

Maybe you are looking for

  • HELP: failed to deploy and run WL performance monitor, console extension

    Hi All i downloaded and installed the WL performance monitor, console extension package at http://commerce.bea.com/products/weblogicserverconsoleextension/wlsext_home.jsp As i tried to deploy "performance monitor" web app to the WL server at "Perform

  • How do I get about:config to open last tab first?

    Hi: I would like my Bookmarked Tab's to open all at once, with the last Tab opening first; (right to left). Instead of the first Tab opening; (left to right). Regards, mdc

  • After upgrade ios 7 and itune 11 iphone icon not showing up on itune

    I've just upgraded my iphone4 to ios 7. also upgraded itunes to 11.1, but then when I connect my iphone onto my PC, the iphone icon not showing up on itune, I can only see it as a camera device on file explorer in windows8, what can I do?

  • How to create a grouping function

    How to create a grouping function ?? For example, can I create a function:myavg and I can use it like : select col_a, col_b, myavg(col_c) from table_a group by col_a, col_b Thanks in advance !! null

  • LaCie Rugged 1TB freezes in OS X and other issues

    Macbook Pro Retina (Mid 2012) Processor  2.3 GHz Intel Core i7 Memory  16 GB 1600 MHz DDR3 Graphics NVIDIA GeForce GT 650M 1024 MB OS X 10.8.2 (12C3006) I purchased a LaCie Rugged 1TB portable drive today that supports thunderbolt and USB 3.0.  I per