title: how to create xsd for xml which has namespace for Webmethod schema
body: <p>My xml is like below:-</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;create xmlns:xsi="https://csu.service-now.com"&gt;
      &lt;sys_id xsi:type="xsd:string"&gt;30b78e589d5d0a00eba30ec92748d7fa&lt;/sys_id&gt;
  &lt;number xsi:type="xsd:string"&gt;INC0135185&lt;/number&gt;
  &lt;/create&gt;
  </code></pre>
  
  <p>I wants to creating an xsd by which the validation will be successful. So basically that by that xsd first I have to create a schema in webmethods and validate xml against that  xml.</p>
  
  <p>what I tried so far is :</p>
  
  <pre><code>&lt;xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="create"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name="sys_id"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:simpleContent&gt;
                &lt;xs:extension base="xs:string"&gt;
                  &lt;xs:attribute ref="csu:type" xmlns:csu="https://csu.service-now.com"/&gt;
                &lt;/xs:extension&gt;
              &lt;/xs:simpleContent&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
          &lt;xs:element name="number"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:simpleContent&gt;
                &lt;xs:extension base="xs:string"&gt;
                  &lt;xs:attribute ref="csu:type" xmlns:csu="https://csu.service-now.com"/&gt;
                &lt;/xs:extension&gt;
              &lt;/xs:simpleContent&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>but its failing there to create schema in webmethods.Looks like this is not a valid xsd as per webmethod.i tried many but no luck.</p>
  
  <p>Please help here.</p>