title: WSDL with multi port in same service
body: <p>I want use a WSDL file who wrote.</p>
  
  <p>With two porttypes</p>
  
  <pre><code>    &lt;wsdl:portType name="ContentDirectory"&gt;
      &lt;wsdl:operation name="GetSortCapabilities"&gt;
        &lt;wsdl:input message="tns:GetSortCapabilitiesRequest" /&gt;
        &lt;wsdl:output message="tns:GetSortCapabilitiesResponse" /&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="GetSystemUpdateID"&gt;
        &lt;wsdl:input message="tns:NOTHING_INPUT" /&gt;
        &lt;wsdl:output message="tns:GetSystemUpdateIDResponse" /&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:portType&gt;
  
    &lt;wsdl:portType name="ConnectionManager"&gt;
      &lt;wsdl:operation name="GetCurrentConnectionIDs"&gt;
        &lt;wsdl:input message= "tns:NOTHING_INPUT" /&gt;
        &lt;wsdl:output message="tns:GetCurrentConnectionIDsResponse" /&gt;
      &lt;/wsdl:operation&gt; 
      &lt;wsdl:operation name="GetProtocolInfo"&gt;
        &lt;wsdl:input message="tns:NOTHING_INPUT" /&gt;
        &lt;wsdl:output message="tns:GetProtocolInfoResponse" /&gt;
      &lt;/wsdl:operation&gt; 
    &lt;/wsdl:portType&gt;
  </code></pre>
  
  <p>And two binding</p>
  
  <pre><code> &lt;wsdl:binding name="ContentDirectory" type="tns:ContentDirectory"&gt;
      &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="Browse"&gt;
        &lt;soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/Browse/" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="GetSystemUpdateID"&gt;
        &lt;soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetSystemUpdateID/" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
    &lt;wsdl:binding name="ConnectionManager" type="tns:ConnectionManager"&gt;
      &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="GetCurrentConnectionIDs"&gt;
        &lt;soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetCurrentConnectionIDs/" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="GetProtocolInfo"&gt;
        &lt;soap:operation soapAction="http://www.forge.soa4d.org/DPWS/Samples/MediaRenderer/GetProtocolInfo/" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
  </code></pre>
  
  <p>And service with two ports</p>
  
  <pre><code>  &lt;wsdl:service name="Media"&gt;
      &lt;wsdl:port name="ContentDirectory" binding="tns:ContentDirectory"&gt;
        &lt;soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /&gt;
      &lt;/wsdl:port&gt;
      &lt;wsdl:port name="ConnectionManager" binding="tns:ConnectionManager"&gt;
        &lt;soap:address location="http://localhost:8080/MediaServer/TESTWSDL" /&gt;
      &lt;/wsdl:port&gt; 
    &lt;/wsdl:service&gt;
  </code></pre>
  
  <p>When I use this service with only one port my client able read my WSDL.
  When I use this service  with two ports getting an error. (same with a different location)</p>
  
  <p>I didn't find in W3 WSDL spec a problem with that.</p>
  
  <p>What is the solution?</p>