title: why my wsdl don't show elements
body: <p>I have a web service written in Java by netbeans named "test".
  One of the methods gets a class called "BodyCollection" That includes several elements.
  the xsd File created in netbeans shows all the elements, but the WSDL file does not show the elements at all.
  What could be the reason?</p>
  
  <p>Here is the xsd File:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown. --&gt;&lt;xs:schema xmlns:tns="http://test.TelZar.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://test.TelZar.com/"&gt;
  
  &lt;xs:element name="Check_Response" type="tns:Check_Response"/&gt;
  
  &lt;xs:element name="Check_ResponseResponse" type="tns:Check_ResponseResponse"/&gt;
  
  &lt;xs:element name="InterruptedException" type="tns:InterruptedException"/&gt;
  
  &lt;xs:element name="execute" type="tns:execute"/&gt;
  
  &lt;xs:element name="executeResponse" type="tns:executeResponse"/&gt;
  
  &lt;xs:element name="getting_started" type="tns:getting_started"/&gt;
  
  &lt;xs:element name="getting_startedResponse" type="tns:getting_startedResponse"/&gt;
  
  &lt;xs:complexType name="Check_Response"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="bd" type="tns:bodyCollection" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="bodyCollection"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="ACK_CODE" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="ACK_DATE" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="approvalInd" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="essentialInfo1" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="fromNumber" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="identification_value" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="networkType" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="number" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="numberType" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="rejectReasonCode" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="requestRetryDate" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="requestTrxNo" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="toNumber" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="Check_ResponseResponse"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="return" type="tns:response" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="response"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="ack" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="date" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="InterruptedException"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="message" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="getting_started"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="Process_type" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="To" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="Network_type" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="Number_type" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="Number" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="From_number" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="To_number" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="Identification_value" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="getting_startedResponse"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="return" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="execute"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="Anser" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="executeResponse"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="return" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>And here is the WSDL file:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;&lt;!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown. --&gt;&lt;!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown. --&gt;&lt;definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://test.TelZar.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://test.TelZar.com/" name="test"&gt;
  &lt;types&gt;
  &lt;xsd:schema&gt;
  &lt;xsd:import namespace="http://test.TelZar.com/" schemaLocation="http://localhost:8080/WebApplication1/test?xsd=1"/&gt;
  &lt;/xsd:schema&gt;
  &lt;/types&gt;
  &lt;message name="execute"&gt;
  &lt;part name="parameters" element="tns:execute"/&gt;
  &lt;/message&gt;
  &lt;message name="executeResponse"&gt;
  &lt;part name="parameters" element="tns:executeResponse"/&gt;
  &lt;/message&gt;
  &lt;message name="InterruptedException"&gt;
  &lt;part name="fault" element="tns:InterruptedException"/&gt;
  &lt;/message&gt;
  &lt;message name="Check_Response"&gt;
  &lt;part name="parameters" element="tns:Check_Response"/&gt;
  &lt;/message&gt;
  &lt;message name="Check_ResponseResponse"&gt;
  &lt;part name="parameters" element="tns:Check_ResponseResponse"/&gt;
  &lt;/message&gt;
  &lt;message name="getting_started"&gt;
  &lt;part name="parameters" element="tns:getting_started"/&gt;
  &lt;/message&gt;
  &lt;message name="getting_startedResponse"&gt;
  &lt;part name="parameters" element="tns:getting_startedResponse"/&gt;
  &lt;/message&gt;
  &lt;portType name="test"&gt;
  &lt;operation name="execute"&gt;
  &lt;input wsam:Action="http://test.TelZar.com/test/executeRequest" message="tns:execute"/&gt;
  &lt;output wsam:Action="http://test.TelZar.com/test/executeResponse" message="tns:executeResponse"/&gt;
  &lt;fault message="tns:InterruptedException" name="InterruptedException" wsam:Action="http://test.TelZar.com/test/execute/Fault/InterruptedException"/&gt;
  &lt;/operation&gt;
  &lt;operation name="Check_Response"&gt;
  &lt;input wsam:Action="http://test.TelZar.com/test/Check_ResponseRequest" message="tns:Check_Response"/&gt;
  &lt;output wsam:Action="http://test.TelZar.com/test/Check_ResponseResponse" message="tns:Check_ResponseResponse"/&gt;
  &lt;fault message="tns:InterruptedException" name="InterruptedException" wsam:Action="http://test.TelZar.com/test/Check_Response/Fault/InterruptedException"/&gt;
  &lt;/operation&gt;
  &lt;operation name="getting_started"&gt;
  &lt;input wsam:Action="http://test.TelZar.com/test/getting_startedRequest" message="tns:getting_started"/&gt;
  &lt;output wsam:Action="http://test.TelZar.com/test/getting_startedResponse" message="tns:getting_startedResponse"/&gt;
  &lt;fault message="tns:InterruptedException" name="InterruptedException" wsam:Action="http://test.TelZar.com/test/getting_started/Fault/InterruptedException"/&gt;
  &lt;/operation&gt;
  &lt;/portType&gt;
  &lt;binding name="testPortBinding" type="tns:test"&gt;
  &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
  &lt;operation name="execute"&gt;
  &lt;soap:operation soapAction=""/&gt;
  &lt;input&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/input&gt;
  &lt;output&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/output&gt;
  &lt;fault name="InterruptedException"&gt;
  &lt;soap:fault name="InterruptedException" use="literal"/&gt;
  &lt;/fault&gt;
  &lt;/operation&gt;
  &lt;operation name="Check_Response"&gt;
  &lt;soap:operation soapAction=""/&gt;
  &lt;input&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/input&gt;
  &lt;output&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/output&gt;
  &lt;fault name="InterruptedException"&gt;
  &lt;soap:fault name="InterruptedException" use="literal"/&gt;
  &lt;/fault&gt;
  &lt;/operation&gt;
  &lt;operation name="getting_started"&gt;
  &lt;soap:operation soapAction=""/&gt;
  &lt;input&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/input&gt;
  &lt;output&gt;
  &lt;soap:body use="literal"/&gt;
  &lt;/output&gt;
  &lt;fault name="InterruptedException"&gt;
  &lt;soap:fault name="InterruptedException" use="literal"/&gt;
  &lt;/fault&gt;
  &lt;/operation&gt;
  &lt;/binding&gt;
  &lt;service name="test"&gt;
  &lt;port name="testPort" binding="tns:testPortBinding"&gt;
  &lt;soap:address location="http://localhost:8080/WebApplication1/test"/&gt;
  &lt;/port&gt;
  &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p>All the WSDL files examples I saw are with elements, and for some reason they do not appear in my file.
  I must emphasize that the web service works properly, but I want to understand what is the problem in my file.
  Can someone help me with this?</p>