users@jax-ws.java.net

Re: what is wrong with my web service and its client ?

From: Vijay Ramachandran <Vijay.Ramachandran_at_Sun.COM>
Date: Fri, 19 Jan 2007 16:33:57 -0800

legolas wood wrote:
> Thank you for reply. That certainly will help me to develop the client application.
> But to be honest I am stopped in server side yet.
> here are the explanations
>
> I have write a some code in jax-ws which you can see in this message.
>
> But my codes has some problems.
>
> Here are my problems with this codes.
>
> 1- Netbeans 5.5 return deployment error when i try to deploy the project, here is the error that Netbeans return :
>
> Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- Service wsProviderService has an endpoint with non-HTTP binding but there is no WSDL; Deployment cannot proceed
>

providers require a WSDL

> 2- If i do not add @WebService() on top of the class, Netbeans does not show this web service under web services node in EJB project.
> But if I add @WebService() to wsProvider class, it will show an error that says:
>
> Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- Ejb wsProvider implements 2 web service endpoints but must only implement 1
>

The error message is indeed bad - i will fix it - but you cannot use
@WebService and @WebServiceProvider in the same class