- 
        1. Re: use an EJB as client of a web servicenorman.richards Feb 14, 2005 12:56 PM (in response to mariob)Why not use J2EE 1.4 web services instead of trying to hack axis into the application? 
- 
        2. Re: use an EJB as client of a web servicemariob Feb 15, 2005 6:31 AM (in response to mariob)is there a tool for eclipse that supports me in developing web services, like the lomboz plugin, so that I do not have to write the deployment descriptor, mapping file etc. by hand? 
- 
        3. Re: use an EJB as client of a web servicenorman.richards Feb 15, 2005 9:52 AM (in response to mariob)Try XDoclet's wseedoclet task. It will generate deployment descriptors for J2EE web services. 
- 
        4. Re: use an EJB as client of a web servicemariob Feb 15, 2005 12:41 PM (in response to mariob)thanks for your answer. 
 I decided to use J2EE 1.4 web services to solve my problem.
 to get familar with J2EE web services I tryed the wiki step by step example
 (http://www.jboss.org/wiki/Wiki.jsp?page=WSRPCClientStepByStep)
 here what I did:
 downloaded a wsdl-file and used wscompile to generate the classes and descriptors for a provided web service
 build a stateless session bean that provides a method to invoke one method (String getPhoneNumber(String name)) of the web service. used nearly the same implementation like the wiki example:.... InitialContext iniCtx = getInitialContext(); PhoneServiceService service = (PhoneServiceService)iniCtx. lookup("java:comp/env/service/ThePhoneService"); PhoneService endpoint = service.getPhoneService(); String number= endpoint.getPhoneNumber("John Doe"); return number; ....
 adapted and checked the desciptors (ejb-jar.xml, mapping.xml) and deployed the bean successfully on the server
 built a simple ejb-client that calls the session bean which (should!) invoke the web service ...
 when I try to execute the ejb-client I get the following error message:javax.naming.NameNotFoundException: ws4ee-client not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) .... 
 any suggestions what could have gone wrong?
- 
        5. Re: use an EJB as client of a web servicemzill Mar 2, 2005 7:50 AM (in response to mariob)I have the same problem as you: 
 ... adapted and checked the desciptors (ejb-jar.xml, mapping.xml) and deployed the bean successfully on the server
 built a simple ejb-client that calls the session bean which (should!) invoke the web service ...
 when I try to execute the ejb-client I get the following error message:javax.naming.NameNotFoundException: ws4ee-client not bound at org.jnp.server.NamingServer.getBinding (NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) .... 
 
 I tried to get it runnning with jboss-4.0.1sp1.
 If anyone has a solution for it plz post it. I need help!!!
- 
        6. Re: use an EJB as client of a web servicehsutarwala Aug 9, 2005 4:12 PM (in response to mariob)I am trying to build a client using WSDocClientStepbyStep and ran across the same error. Any help will be appreciated. 
 javax.naming.NameNotFoundException: ws4ee-client not bound at org.jnp.server.NamingServer.getBinding
 (NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) ....
- 
        7. Re: use an EJB as client of a web servicejana01 Sep 16, 2005 10:03 AM (in response to mariob)The same here... :( 
- 
        8. Re: use an EJB as client of a web servicesudhakaratbits Nov 9, 2005 4:57 AM (in response to mariob)I certainly dont understand y anyone from jboss is not answering this question !! Or is it answered somewhere else? I have been trying out their Wiki documentation for the last 2 weeks but i am stuck with this problem. If they give sample applications that do not work, how the heck am i supposed to proceed further!! 
 Plsssssssssssssssss, someone from jboss respond n give the solution!!
 thanks
 sudhakar
- 
        9. Re: use an EJB as client of a web servicejeshell Feb 1, 2006 6:33 PM (in response to mariob)Did anybody ever hear back on this? I was able to execute my service locally from a web component (usint the no arg constructor of InitialContext), but the second I start messing with this, Properties env = new Properties(); ... env.setProperty("j2ee.clientName", "ws4ee-client"); ... InitialContext iniCtx = new InitialContext(env);
 I get that error (ws4ee-client not bound). Of course when I comment out that setting of the j2ee.clientName, I get an exception complaining that I didn't specify the j2ee.ClientName.
 I looked through the samples from the wiki, and every servlet and EJB that I could see was newing up an InitialContext locally.
 When my client, even though it is in a web application, is on another machine, could that implicitly make it an "Application Client", where I would need to bring in those other two (jboss-client and application-client) xml files?
 Thanks in advance if anybody found the answer here.
 --Jeff
- 
        10. Re: use an EJB as client of a web servicethomas.diesler Feb 14, 2006 1:08 PM (in response to mariob)Have you looked at the samples that are attached to the main wiki? 
- 
        11. Re: use an EJB as client of a web servicepierroot Mar 22, 2006 10:15 AM (in response to mariob)Well, yes I looked in the samples provided and I am sorry I was not able to find out the reason why this is not working... 
 I really would like to know how to fix this... Thank you !
- 
        12. Re: use an EJB as client of a web serviceschuller007 Mar 24, 2006 3:05 PM (in response to mariob)Anybody actually found a solution to this problem? I have been also following Anil's blog, which is BTW a far better post than the JBOSS documentation, just to end up with the same error. 
 
     
     
     
     
     
     
     
    