non-bean class
mkprim Sep 29, 2004 6:08 PMHi I have a class that implements a web service, and has this method
public void placeChatEvent(ChatEvent evt)
But this ChatEvent is a complex type, so whenever I try to deploy the wsr, axis tries to
find out the complex type and generate a descriptor.
However I get this error:
[Types] The class com.primary.common.events.ChatEvent extends non-bean class com.primary.common.events.GenericRequest. An xml schema anyType will be used to define com.primary.common.events.ChatEvent in the wsdl file.
However, my GenericRequest adjusts to the JavaBean Specification.
Here is the GenericRequest Code:
public abstract class GenericRequest extends GenericEvent { private SessionID sessionId; private User user; // Para ser llenado en el server private String requestId; /** * Default constructor */ public GenericRequest() { super(); } /** * Se recomienda usar este constructor * @param type */ public GenericRequest(int type){ super(type); } /** */ public abstract void doAction(MarketsApi mApi) throws ServerException; /** * @return el Id de Session */ public SessionID getSessionId() { return sessionId; } /** * @param sessionID el Id de Session */ public void setSessionId(SessionID sessionID) { sessionId = sessionID; } /** * Devuelve el identificador del pedido unico para este cliente * Es el mismo que tiene el request * @return int el identificador del pedido unico para este cliente */ public String getRequestId() { return requestId; } /** * Setea el identificador del pedido unico para este cliente * Es el mismo que tiene el request * @param int el identificador del pedido unico para este cliente **/ public void setRequestId(String requestId) { this.requestId = requestId; } /** * @return Returns the userId. Para ser usado en el servidor */ public String getUserName() { return user.getName(); } /** * @return the user (filled in the server) */ public User getUser() { return user; } /** * @param userId The userId to set. Para ser llenado en el server */ public void setUser(User user) { this.user = user; } }
Can anybody please help me? I think this might have a simple solution that I just cannot see because i'm a newbie in webservices and axis.
Thanks a lot,
Marcelo