[jboss-user] [JBoss Web Services] New message: "EJB WS Annotation and WSDL generation"

David CARRERAS do-not-reply at jboss.com
Sat Mar 6 07:35:45 EST 2010


User development,

A new message was posted in the thread "EJB WS Annotation and WSDL generation":

http://community.jboss.org/message/530306#530306

Author  : David CARRERAS
Profile : http://community.jboss.org/people/Jojopotatoe

Message:
--------------------------------------------------------------
I have noticed some differences in wsdl generation when you change the place of annotation.
 
I am using Jboss 5.1 (jdk6) with a deployment of ws 3.2.2.
 
Here the test class :
 
@WebService(name = "EndpointInterface", targetNamespace = "http://www.openuri.org/2004/04/HelloWorld", serviceName = "HelloWorldService")  
@SOAPBinding(style = SOAPBinding.Style.RPC)  
@Remote(HelloRemote.class)  
@Stateless  
public class HelloWorld implements HelloRemote  
{  
   @WebMethod  
   public String echo(String input)  
   {  
      return input;  
   }  
     
      
     
}  
 

 
Here the interface :
 
@WebService  
public interface HelloRemote  
   
{  
   public String echo(String input);  
     
      
}  
 

 
 
If you change code to :
 
@WebService(name = "EndpointInterface", targetNamespace = "http://www.openuri.org/2004/04/HelloWorld", serviceName = "HelloWorldService")  
@Stateless  
public class HelloWorld implements HelloRemote  
{    
   public String echo(String input)  
   {  
      return input;  
   }  
     
      
     
}  
 
 
 
 

 
 
and interface :
 
@WebService 
@SOAPBinding(style = SOAPBinding.Style.RPC)  
public interface HelloRemote  
   
{  
   @WebMethod
   public String echo(String input);  
     
      
}  
 

 
 
The two wsdl are quite differents and the second is way seems to be better. For example if you use apache axis to generate data from wsdl only the second one give us a working implementation.
 
Is it something known ? Maybe it is my bad use of the framework ?

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/530306#530306




More information about the jboss-user mailing list