Hi folks,
 
I am very new to AXIS and web services and since I find it extremely
difficult to find a solution via Google, I am hoping that somebody can
answer my very simple question.
 
I am using Axis2 1.3, Tomcat 5.5 and Java 6_04.  
 
I created a POJO with one method.  The method's parameter accepts a
JAXB2.1 generated object class RetrieveConfigurationDataRequest and
returns a JAXB2.1 generated class called
RetrieveConfigurationDataResponse.  I deployed the web service into
Tomcat with the Eclipse plugin.
 
When a navigate to the URL of the web service including ?wsdl to get the
generated WSDL, I see that the elements within the complexTypes for both
the RetrieveConfigurationDataRequest  and
RetrieveConfigurationDataResponse are in alphabetical order and not in
the order as they appear in the class.  I also noticed that AXIS 2 is
not taking the annocations into account when generating the WSDL since
all the elemetns are minOccurs="0" when one of them are marked as
"required" by the @XmlElement annocation in the JAXB 2.1 generated
classes.  
 
I am expecting to see the WSDL to reflect as close to the XSD's that
generated the JAXB 2.1 classes as far as possible and the jaxb generated
classes contain enough information for Axis 2 to do that.
 
Can somebody please let me know how I can fix this so that the WSDL
conforms to the objects 100%?
 
Thanks in advance
~Glen Verran

Reply via email to