Hi Sainath,

Creating EJB Web services is currently not supported in WTP.  We only 
support the creation of Web service in a Web project for Axis1 and Axis2. 
We had a long standing RFE 
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=89922) opened to request 
for this support but it had been closed with "No Plan to Fix" given the 
following rationale:

There's no plan to implement this enhancement in Axis1 given the current 
resource on the
Web services team.  Please note that we now have support for Axis2 (the 
next
generation Web services runtime).  Even though the Axis2 tool in WTP 
currently does not
support EJB Web service either, future enhancement to support the creation 
of
EJB Web service would likely be for the Axis2 runtime rather than the 
Axis1
runtime.

You are welcome to open an RFE for the Axis2 Web services tools in WTP to 
support the creation of EJB Web service.  Here's the URL for opening a 
bugzilla:

https://bugs.eclipse.org/bugs/

You should select the Web tools, jst.ws component.

BTW, the wtp-dev distribution list is for the discussion of people 
developing WTP.  Questions for the usage of WTP tools can be appended to 
the WTP newsgroup at:

http://www.eclipse.org/newsportal/thread.php?group=eclipse.webtools

Regards,

Kathy Chan
Rational Java Web Services, 
IBM Toronto Lab

[EMAIL PROTECTED]
(905) 413-3022, tieline: 313-3022
----- Forwarded by Kathy Chan/Toronto/IBM on 06/18/2008 01:15 PM -----

"Sainath Chowdary" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
06/18/2008 10:01 AM
Please respond to
"General discussion of project-wide or architectural issues." 
<[email protected]>


To
[email protected]
cc

Subject
[wtp-dev] Fwd: EJB WebServices






Hi,

I am trying to deploy a stateless session EJB as a web service using the 
create webservices popup menu.
my ejb code is this:

Converter.java
----------------------------------------------------------------------
import java.math.BigDecimal;
import javax.ejb.Remote;
import javax.jws.WebService;

@Remote
public interface Converter {
    public BigDecimal dollarToRupees(BigDecimal dollars);

    public BigDecimal rupeesToEuro(BigDecimal rupees);
}
--------------------------------------------------------------------------------------------------------


ConverterBean.java
--------------------------------------------------------------------------------------------------------
import java.math.BigDecimal;
import javax.ejb.*;
import javax.jws.WebService;

@Stateless
public class ConverterBean implements Converter {
    private BigDecimal rupeeRate = new BigDecimal("40.58");
    private BigDecimal euroRate = new BigDecimal("0.018368");

    public BigDecimal dollarToRupees(BigDecimal dollars) {
        BigDecimal result = dollars.multiply(rupeeRate);
        return result.setScale(2, BigDecimal.ROUND_UP);
    }

    public BigDecimal rupeesToEuro(BigDecimal rupees) {
        BigDecimal result = rupees.multiply(euroRate);
        return result.setScale(2, BigDecimal.ROUND_UP);
    }
}
------------------------------------------------------------------------------------------------------

But when i right click the ConverterBean.java and select create web 
service, the wizard works fine to the point where we select which 
functions to expose as web methods. Then its giving me an error like this:

IWAB0398E Error in generating WSDL from Java: 
java.lang.ClassNotFoundException: abc.ConverterBean

I think it created another web project named WebServiceProject and trying 
to search the class files in that project.

Can anyone help me in this regard?

Thanks in Advance.,

-- 
Sainath Chowdary
B.Tech III yr, Spring Semester
Electronics & Communication Engg
Indian Institute of Technology Roorkee 
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev
_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to