title: Visual Studio can't read WSDL parameters
body: <p>I have created webservice in Java, that automatically build WSDL using JAX-WS. My colleague is trying to access method with parameters in Visual Studio, but IDE offers only void method without parameters. I don't have any clue, what can be wrong, do you? Here is the complete wsdl with types schema and VS preview. Thanks for any advice.</p>
  
  <pre><code>&lt;definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://foo/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://foo/" name="GRCWSHLService"&gt;
      &lt;types&gt;
          &lt;xsd:schema&gt;
              &lt;xsd:import namespace="http://foo/" schemaLocation="http://foo/grcwshl/GRCWSHLPort?xsd=1"/&gt;
          &lt;/xsd:schema&gt;
      &lt;/types&gt;
      &lt;message name="querycastxml"&gt;
          &lt;part name="parameters" element="tns:setExtraDataElement"/&gt;
      &lt;/message&gt;
      &lt;message name="querycastxmlResponse"&gt;
          &lt;part name="parameters" element="tns:setExtraDataResponseElement"/&gt;
      &lt;/message&gt;
      &lt;portType name="GRCWSHL"&gt;
          &lt;operation name="querycastxml"&gt;
              &lt;input message="tns:querycastxml"/&gt;
              &lt;output message="tns:querycastxmlResponse"/&gt;
          &lt;/operation&gt;
      &lt;/portType&gt;
      &lt;binding name="GRCWSHLPortBinding" type="tns:GRCWSHL"&gt;
          &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/&gt;
          &lt;operation name="querycastxml"&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;/operation&gt;
      &lt;/binding&gt;
      &lt;service name="GRCWSHLService"&gt;
          &lt;port name="GRCWSHLPort" binding="tns:GRCWSHLPortBinding"&gt;
              &lt;soap:address location="http://foo/grcwshl/GRCWSHLPort"/&gt;
          &lt;/port&gt;
      &lt;/service&gt;
  &lt;/definitions&gt;
  </code></pre>
  
  <p><strong>Types schema:</strong></p>
  
  <pre><code>&lt;xs:schema xmlns:tns="http://foo/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://foo/"&gt;
      &lt;xs:element name="Error" type="tns:lineError"/&gt;
      &lt;xs:element name="setExtraDataElement" type="tns:request"/&gt;
      &lt;xs:element name="setExtraDataResponseElement" type="tns:response"/&gt;
      &lt;xs:complexType name="request"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="tns:generalObject"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="jmsoub1" type="xs:string" minOccurs="0"/&gt;
                      &lt;xs:element name="data1" type="xs:string" minOccurs="0"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="generalObject"&gt;
          &lt;xs:sequence/&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="response"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="tns:generalObject"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="Message" type="xs:string" minOccurs="0"/&gt;
                      &lt;xs:element name="ReceiveDate" type="xs:dateTime" minOccurs="0"/&gt;
                      &lt;xs:element name="LinesTotal" type="xs:int"/&gt;
                      &lt;xs:element name="ErrorsTotal" type="xs:int"/&gt;
                      &lt;xs:element name="Errors" type="tns:lineError" minOccurs="0" maxOccurs="unbounded"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
      &lt;xs:complexType name="lineError"&gt;
          &lt;xs:complexContent&gt;
              &lt;xs:extension base="tns:generalObject"&gt;
                  &lt;xs:sequence&gt;
                      &lt;xs:element name="LineNumber" type="xs:int"/&gt;
                      &lt;xs:element name="ErrorText" type="xs:string" minOccurs="0"/&gt;
                  &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
          &lt;/xs:complexContent&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p><strong>Visual Studio preview</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Y00JA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y00JA.png" alt="enter image description here"></a></p>