title: Error creating a proxy class from a WSDL. Element missing?
body: <p>I will admit I am ignorant when it comes to WSDLs.  I was provided the following WSDL for a project I am working on, but it isn't working. Here is a post of the WSDL I am using. I was asked to remove the actual URL to the service from the wsdl so that it didn't get indexed and hit by crawlers.  The actual URL has been replaced with 'www.testsite.org'.  Here is the XML:</p>
  
  <pre><code>&lt;wsdl:definitions xmlns:tns="https://www.testsite.org/uiws-test" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" name="uiicon" targetNamespace="https://www.testsite.org/uiws-test"&gt;
  &lt;!-- TYPES --&gt;
  &lt;wsdl:types&gt;
  &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="https://www.testsite.org/uiws-test"&gt;
  &lt;xsd:complexType name="ResponseType"&gt;
  &lt;xsd:sequence&gt;
  &lt;xsd:element name="request_id" type="xsd:string"/&gt;
  &lt;xsd:element name="messages" type="xsd:string"/&gt;
  &lt;/xsd:sequence&gt;
  &lt;/xsd:complexType&gt;
  &lt;xsd:element name="responseType" type="tns:ResponseType"/&gt;
  &lt;xsd:element name="ICON_MessageTrain" type="xsd:string"/&gt;
  &lt;xsd:element name="fault" type="xsd:string"/&gt;
  &lt;/xsd:schema&gt;
  &lt;/wsdl:types&gt;
  &lt;!-- MESSAGES --&gt;
  &lt;wsdl:message name="RequestMessage"&gt;
  &lt;wsdl:part name="ICON_MessageTrain" element="tns:ICON_MessageTrain"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="ResponseMessage"&gt;
  &lt;wsdl:part name="response" element="tns:responseType"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="FaultMessage"&gt;
  &lt;wsdl:part name="fault" element="tns:fault"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="SourceHeader"&gt;
  &lt;wsdl:part name="source" element="xsd:string"/&gt;
  &lt;/wsdl:message&gt;
  &lt;wsdl:message name="ApplicationHeader"&gt;
  &lt;wsdl:part name="application" element="xsd:string"/&gt;
  &lt;/wsdl:message&gt;
  &lt;!-- PORT TYPES --&gt;
  &lt;wsdl:portType name="uiicon_portType"&gt;
  &lt;wsdl:operation name="uiicon"&gt;
  &lt;wsdl:input message="tns:RequestMessage"/&gt;
  &lt;wsdl:output message="tns:ResponseMessage"/&gt;
  &lt;wsdl:fault message="tns:FaultMessage" name="FaultMessage"/&gt;
  &lt;/wsdl:operation&gt;
  &lt;/wsdl:portType&gt;
  &lt;!-- BINDINGS --&gt;
  &lt;wsdl:binding name="uiicon_binding" type="tns:uiicon_portType"&gt;
  &lt;soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/&gt;
  &lt;wsdl:operation name="uiicon"&gt;
  &lt;soap:operation soapAction="https://www.testsite.org/uiws-test/services/uiicon-test" style="document"/&gt;
  &lt;wsdl:input&gt;
  &lt;soap:header part="source" message="tns:SourceHeader" use="literal"/&gt;
  &lt;soap:header part="application" message="tns:ApplicationHeader" use="literal"/&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:fault name="FaultMessage"&gt;
  &lt;soap:fault name="FaultMessage" use="literal"/&gt;
  &lt;/wsdl:fault&gt;
  &lt;/wsdl:operation&gt;
  &lt;/wsdl:binding&gt;
  &lt;!-- SERVICES --&gt;
  &lt;wsdl:service name="uiicon_service"&gt;
  &lt;wsdl:documentation&gt;
  This is the web service for UI-ICON data exchange modernization project
  &lt;/wsdl:documentation&gt;
  &lt;wsdl:port name="uiicon_port" binding="tns:uiicon_binding"&gt;
  &lt;soap:address location="https://www.testsite.org/uiws-test/services/uiicon-test"/&gt;
  &lt;/wsdl:port&gt;
  &lt;/wsdl:service&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>When I run this in wsdl.exe, I get the following error:</p>
  
  <ul>
  <li>Unable to import operation 'uiicon'.</li>
  <li>The element 'http://www.w3.org/2001/XMLSchema:string' is missing</li>
  </ul>
  
  <p>I see where the wsdl is referencing the w3.org 2001 schema, and I see the string schema reference.  Just not sure what it should look like and why it is wrong.  Thank you!</p>