You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gaurav Vaish <gv...@gmail.com> on 2006/11/15 17:44:36 UTC
Problem with Custom Data-Type with WebService Deployment
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