Hi,

   I have defined a simple webservice as follows:

    public BookDetail getDetailsOfBook(String isbn) { ... }

    public class BookDetail { String isbn; String title; String[] authors; double price; int quantityInStock; }

    The WSDL generated is perfectly fine. During web service invocation, I do not see the "isbn" element in the output.

    The WSDL reads as follows:

<xs:sequence>
  <xs:element type="xs:string" name="iSBN"/>
  <xs:element minOccurs="0" type="xs:string" name="authors" maxOccurs="unbounded"/>
  <xs:element type="xs:double" name="price"/>
  <xs:element type="xs:int" name="quantity"/>
  <xs:element type="xs:string" name="title"/>
</xs:sequence>

   Is there anything missing in the configuration?

   Also, can I define the order of elements (fields of the class) for XML-serialization and what fields to choose? Axis2 runs on Java 1.4 as well, so no questions of annotations to decide the propOrder as available in JAX-WS 2.0!!

Cheers,
Gaurav

Reply via email to