title: Call ASMX Soap 1.2 service from Net 6 - I only get XSD, no results
body: <p>Trying to call a 12 years old webservice, asmx file, soap 1.2 from Net 6.</p>
  <p>I can add the service reference from VS2022 just fine - but when I call the service, I only get the XSD part of the reply - not the data part.</p>
  <p>I get no errors. When I test the asmx-service that is hosted in my local IIS 10, it works fine. I get the results I expect.</p>
  <p>This is what I get:</p>
  <pre><code>&lt;dsTvattstugorIP xmlns=&quot;http://etvatt.stockholmshem.se/&quot;&gt;
  &lt;xs:schema xmlns:mstns=&quot;http://etvatt.stockholmshem.se/dsTvattstugorIP.xsd&quot; xmlns=&quot;http://etvatt.stockholmshem.se/dsTvattstugorIP.xsd&quot; xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:msdata=&quot;urn:schemas-microsoft-com:xml-msdata&quot; id=&quot;dsTvattstugorIP&quot; targetNamespace=&quot;http://etvatt.stockholmshem.se/dsTvattstugorIP.xsd&quot; attributeFormDefault=&quot;qualified&quot; elementFormDefault=&quot;qualified&quot;&gt;
  &lt;xs:element name=&quot;dsTvattstugorIP&quot; msdata:IsDataSet=&quot;true&quot; msdata:UseCurrentLocale=&quot;true&quot;&gt;
  &lt;xs:complexType&gt;
  &lt;xs:choice minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
  &lt;xs:element name=&quot;TvattstugorIP&quot;&gt;
  &lt;xs:complexType&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name=&quot;ID&quot; msdata:AutoIncrement=&quot;true&quot; msdata:AutoIncrementSeed=&quot;1&quot; type=&quot;xs:int&quot;/&gt;
  &lt;xs:element name=&quot;Adress&quot; type=&quot;xs:string&quot; minOccurs=&quot;0&quot;/&gt;
  &lt;xs:element name=&quot;IP&quot; type=&quot;xs:string&quot; minOccurs=&quot;0&quot;/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;/xs:choice&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:unique name=&quot;Constraint1&quot;&gt;
  &lt;xs:selector xpath=&quot;.//mstns:TvattstugorIP&quot;/&gt;
  &lt;xs:field xpath=&quot;mstns:ID&quot;/&gt;
  &lt;/xs:unique&gt;
  &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  <p>I was also expecting this:</p>
  <pre><code>&lt;diffgr:diffgram xmlns:msdata=&quot;urn:schemas-microsoft-com:xml-msdata&quot; xmlns:diffgr=&quot;urn:schemas-microsoft-com:xml-diffgram-v1&quot;&gt;
  &lt;dsTvattstugorIP xmlns=&quot;http://etvatt.stockholmshem.se/dsTvattstugorIP.xsd&quot;&gt;
  &lt;TvattstugorIP diffgr:id=&quot;TvattstugorIP1&quot; msdata:rowOrder=&quot;0&quot; diffgr:hasChanges=&quot;inserted&quot;&gt;
  &lt;ID&gt;1&lt;/ID&gt;
  &lt;Adress&gt;Omr.142 Skarpnäcks allé 54&lt;/Adress&gt;
  &lt;IP&gt;7246317&lt;/IP&gt;
  &lt;/TvattstugorIP&gt;
  &lt;TvattstugorIP diffgr:id=&quot;TvattstugorIP2&quot; msdata:rowOrder=&quot;1&quot; diffgr:hasChanges=&quot;inserted&quot;&gt;
  &lt;ID&gt;2&lt;/ID&gt;
  &lt;Adress&gt;Omr.410 Heliosgata 47&lt;/Adress&gt;
  &lt;IP&gt;IP10.64.1.21:7&lt;/IP&gt;
  &lt;/TvattstugorIP&gt;
  &lt;TvattstugorIP diffgr:id=&quot;TvattstugorIP3&quot; msdata:rowOrder=&quot;2&quot; diffgr:hasChanges=&quot;inserted&quot;&gt;
  &lt;ID&gt;3&lt;/ID&gt;
  &lt;Adress&gt;Omr.410 Kryssargatan 3&lt;/Adress&gt;
  &lt;IP&gt;IP10.64.1.21:7&lt;/IP&gt;
  &lt;/TvattstugorIP&gt;
  &lt;/dsTvattstugorIP&gt;
  &lt;/diffgr:diffgram&gt;
  &lt;/dsTvattstugorIP&gt;
  </code></pre>
  <p>That is the data part.</p>
  <p>This is my calling code:</p>
  <p>ServiceReference1.IntimeSoapClient client = new
  ServiceReference1.IntimeSoapClient(ServiceReference1.IntimeSoapClient.EndpointConfiguration.IntimeSoap, endpointAddress);</p>
  <p>var elem = client.ListaInternetbokningsbaraTvattstugor();</p>
  <p>Any suggestions ? What am I missing?</p>
  <p>regards,</p>
  <p>Lars</p>