axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert <>
Subject Re: Is it possible to add a new method?
Date Mon, 13 Feb 2006 15:36:13 GMT
Combining EJB with axis 1.x requires integration with the app server. I've 
done it a lot with jboss, which uses axis internally. Basically there's a lot 
of files to edit. 

My advice: 

1) Work with wsdl2java instead of java2wsdl. Just create your endpoint like: 

YourImpl implements SessionBean, EJB_Context

Then implement your endpoint methods that match your wsdl2java generated 
methods and classes. 

2) Create a jar with your wsdl2java generated classes and use that to create 
your references. Use the same jar on the server and the client. 

That's the basics. Beyond that, its all about the configuration, unfortunately 
different on every app server. In the long run you can use spring to solve 
that somewhat. 


Em Segunda 13 Fevereiro 2006 14:04, o Joel Rosi-Schwartz escreveu:
> Hi,
> It is my understanding that it should be possible to add a new operation
> to a Web Service and still connect to it from old clients. The books and
> articles I have read imply this, but in practice I have not been able to
> accomplish it.
> What I have are a set of EJB Service  beans. I generate the WSDL using
> axis Java2WSDL.  I deploy  the WSEndPoints on my client and I use the
> following code to access the proxy:
>     ServiceFactory factory = ServiceFactory.newInstance();
>     Service service = factory.createService(url, qname);
>     ServerWSEndPoint endpoint = (ServerWSEndPoint)
>     service.getPort(ServerWSEndPoint.class);
> This works fine. Now when I add a new method to the ServerWSBean and
> redeploy to the server but not the client I get an exception:
>     javax.xml.rpc.ServiceException: Incompatible service endpoint
>     interface: com.etish.useme.est.webservices.ServerWSEndPoint
> Which is understandable since the server and client have different
> versions of the ServerWSEndPoint class.
> I figure that I a missing a piece of the puzzle.  I would appreciate any
> suggestions or pointers to a reference that actually explains what I
> need to know.
> Thanks,
> Joel


View raw message