title: Import wsdl file to xsd file
body: <p>I want to generate class from soap xml via using xsd. I've been successful so far, but now, I've this soap message:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" 
      xmlns:tds="http://www.onvif.org/ver10/device/wsdl"&gt; 
      &lt;SOAP-ENV:Body&gt; 
          &lt;tds:GetSystemDateAndTime/&gt; 
      &lt;/SOAP-ENV:Body&gt; 
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>xsd will generate this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xs:schema id="Envelope" targetNamespace="http://www.w3.org/2003/05/soap-envelope"
  xmlns:mstns="http://www.w3.org/2003/05/soap-envelope"
  xmlns="http://www.w3.org/2003/05/soap-envelope"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified"
  xmlns:app1="http://www.onvif.org/ver10/device/wsdl"&gt;
      &lt;xs:import namespace="http://www.onvif.org/ver10/device/wsdl" schemaLocation="GetSystemDateAndTime_app1.xsd" /&gt;
      &lt;xs:element name="Envelope" msdata:IsDataSet="true" msdata:Locale="en-US" msdata:Prefix="SOAP-ENV"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
                  &lt;xs:element name="Body" msdata:Prefix="SOAP-ENV"&gt;
                      &lt;xs:complexType&gt;
                          &lt;xs:sequence&gt;
                              &lt;xs:element ref="app1:GetSystemDateAndTime" minOccurs="0" /&gt;
                          &lt;/xs:sequence&gt;
                      &lt;/xs:complexType&gt;
                  &lt;/xs:element&gt;
              &lt;/xs:choice&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>This xmlns:tds="http://www.onvif.org/ver10/device/wsdl" is link on <a href="http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl" rel="nofollow">this document</a>.</p>
  
  <p>As I said, so far, I just downloaded file, that was in schemaLocation attribute, put it to same folder like xsd file and changed path. Then I used "xsd myXsdFile.xsd otherXsdFiles.xsd /c". But with wsdl file, this isn't possible. SchemaLocation attribute doesn't take wsdl file and of course when I use xsd commnand, I will receive message that GetSystemDateAndTime doesn't exist. I understand that wsdl file is very different from xsd, but I can't take a right way, how to join this file with my xsd file. Any advice pls? Thx</p>