users@glassfish.java.net

GlassFishV2: XSD generation problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 31 Jan 2008 14:25:40 PST

I have a webservice operation that returns a complex object. I am running in to problems with the wsdl and schema generated for this.
Appreciate any help.

Details:

@WebMethod(operationName = "getQuote")
    public Quote getQuote(@WebParam(name = "ticker") String ticker)

When I build the project in NetBean6.0, the schema element generated for the "quote" is not correct. And I don't see any JAXB beans getting generated for Quote object.
Do I need to add any annotations to get the JAXB beans for
Here is the schema.
<xs:schema xmlns:tns="http://ws.my/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://ws.my/">
  <xs:element name="getQuote" type="tns:getQuote" />
  <xs:element name="getQuoteResponse" type="tns:getQuoteResponse" />
<xs:complexType name="getQuote">
<xs:sequence>
  <xs:element name="ticker" type="xs:string" minOccurs="0" />
  </xs:sequence>
</xs:complexType>
<xs:complexType name="getQuoteResponse">
<xs:sequence>
  <xs:element name="return" type="tns:quote" minOccurs="0" />
</xs:sequence>
</xs:complexType>
[b]<xs:complexType name="quote">
  <xs:sequence />
</xs:complexType>[/b]
</xs:schema>
[Message sent by forum member 'i_srini' (i_srini)]

http://forums.java.net/jive/thread.jspa?messageID=256876