NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Ybarion
Joined: 28 Aug 2009 Posts: 1
|
Posted: Fri Aug 28, 2009 9:10 am Post subject: Bind not exposed subtypes to WSDL |
|
|
Hi everybody,
I am writing a jax-ws web service without WSDL, thus with annotations.
Is there any option in netbeans that lets me expose certain classes that are not in the ws interface but will be returned as subclasses of the exposed return types?
When I publish the service (Glassfish v2) only the return types found in my @WebService()-declared class are declared in the XSD, not their subclasses, which is perfectly logical. But I need to have polymorphism here.
Example:
| Code: |
<imports>
@WebService()
public class WSv2
{
@EJB
private QueryLocal myBean;
@WebMethod(operationName = "query")
public SearchResponse query(@WebParam(name = "queryform") SearchQueryForm queryform)
{
//get some subtype of SearchResponse from an EJB, but don't know which one:
SearchResponse response = myBean.search(queryform);
return response;
}
}
|
Now how can I make sure that the client gets the correct subtype even though they are not in the WebService-class without touching a pre-defined WSDL/XSD? I couldn't find something in NetBeans or an anotation that lets me do this. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|