i am updating my aplication from ejb 2.1 to ejb3 anf jboss 4.2. I stop using axis in my
server aplication and now i am using jbossws with annotations. The webservices works fine,
but i need to change the name of the objects generated in the client aplication in order
to avoid changing the client code.
For instance:
the login web service from the server code:
............
@WebService(endpointInterface="com.satdatatelecom.satdataweb.model.session.session.SesionEndPointInterface",
targetNamespace = "http://localhost/jboss-net/services/Sesion", serviceName =
"LoginService")
@Remote(SesionSession.class)
@RemoteBinding(jndiBinding = "/ejb3/EJB3SesionEndPointInterface")
@Stateless
public class SesionSessionBean implements SesionSession {
@PersistenceContext(unitName = GlobalNames.PERSISTENCE_UNIT)
private EntityManager entityManager;
@WebMethod
@WebResult
public LoginVO loginUsuario(String idEmpresa, String loginName, String password, String
session) throws EmpresaNotFoundException, UsuarioNotFoundException, PasswordException,
SessionException, ConcesionException, ConcesionEmpresaException, RemoteException,
com.satdatatelecom.satdataweb.model.session.exceptions.SessionException {
try{
LoginUsuarioAction action = new LoginUsuarioAction(idEmpresa, loginName, password,
session, entityManager);
LogMessages.info("login", "El usuario "+loginName+" realiza
login", true);
return action.execute();
}catch (EmpresaNotFoundException e){
throw e;
}catch (UsuarioNotFoundException e){
throw e;
}
}
}
jboss publish the service , but when the client uses axis to create the objects needed as
LoginVo, which is returned by the login service, i would wish to change the type forn
loginvo to LoginVOWS, because in the past all the client aplication worked with it in its
code.
In the Ejb 2.1 sercer aplication i used in LoginVO:
/**
* @jboss-net.xml-schema
* urn = "satdataweb:LoginVOWS"
*/
to change the name type
now, i tried to use @WebMethod(name="loginVOWs) but it only changes the name in the
wsdl document :
..................................
...........................
if i wanted the type to be loginVOWs i need to change the wsdl document by myself.
...................
..................................
...........................
What can i do?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050459#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...