NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Bind not exposed subtypes to WSDL

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Ybarion



Joined: 28 Aug 2009
Posts: 1

PostPosted: Fri Aug 28, 2009 9:10 am    Post subject: Bind not exposed subtypes to WSDL Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo