title: trying to connection SOAP service using net core / net 5
body: <p>I am consuming a SOAP service that return order list from market places.</p>
  <p>The problem is when I request the orders from SOAP service, result is always null. Tried so many thing but still no change.</p>
  <p><strong>ConnectedService.json</strong></p>
  <pre><code>{
    &quot;ProviderId&quot;: &quot;Microsoft.VisualStudio.ConnectedService.Wcf&quot;,
    &quot;Version&quot;: &quot;15.0.40203.910&quot;,
    &quot;ExtendedData&quot;: {
      &quot;inputs&quot;: [
        &quot;https://api.n11.com/ws/OrderService.wsdl&quot;
      ],
      &quot;collectionTypes&quot;: [
        &quot;System.Collections.Generic.Dictionary`2&quot;,
        &quot;System.Collections.Generic.List`1&quot;
      ],
      &quot;namespaceMappings&quot;: [
        &quot;*, OrderService&quot;
      ],
      &quot;sync&quot;: true,
      &quot;targetFramework&quot;: &quot;net5.0&quot;,
      &quot;typeReuseMode&quot;: &quot;None&quot;
    }
  }
  </code></pre>
  <p>My c# code that user SOAP service</p>
  <pre><code>var rere = await orderService.DetailedOrderListAsync(new DetailedOrderListRequest
      {
          auth = authentication,
          pagingData = new PagingData
          {
              pageSize = 100,
              currentPage = 0,
          },
          searchData = new OrderDataListRequest
          {                        
              period = new OrderSearchPeriod
              {
                  startDate = &quot;01/03/2021&quot;,
                  endDate = &quot;19/03/2021&quot;
              },
          }
      });
  </code></pre>
  <p>and request XML is</p>
  <pre><code>&lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
      &lt;s:Body xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
          xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
          &lt;DetailedOrderListRequest xmlns=&quot;http://www.n11.com/ws/schemas&quot;&gt;
              &lt;auth xmlns=&quot;&quot;&gt;
                  &lt;appKey&gt;XXXXXXXXXXXXXXXXX&lt;/appKey&gt;
                  &lt;appSecret&gt;XXXXXXXXXX&lt;/appSecret&gt;
              &lt;/auth&gt;
              &lt;searchData xmlns=&quot;&quot;&gt;
                  &lt;productId xsi:nil=&quot;true&quot;/&gt;
                  &lt;status xsi:nil=&quot;true&quot;/&gt;
                  &lt;productSellerCode xsi:nil=&quot;true&quot;/&gt;
                  &lt;sameDayDelivery xsi:nil=&quot;true&quot;/&gt;
                  &lt;period&gt;
                      &lt;startDate&gt;01/03/2021&lt;/startDate&gt;
                      &lt;endDate&gt;19/03/2021&lt;/endDate&gt;
                  &lt;/period&gt;
                  &lt;sortForUpdateDate&gt;false&lt;/sortForUpdateDate&gt;
              &lt;/searchData&gt;
              &lt;pagingData xmlns=&quot;&quot;&gt;
                  &lt;currentPage&gt;0&lt;/currentPage&gt;
                  &lt;pageSize&gt;100&lt;/pageSize&gt;
                  &lt;totalCount xsi:nil=&quot;true&quot;/&gt;
                  &lt;pageCount xsi:nil=&quot;true&quot;/&gt;
              &lt;/pagingData&gt;
          &lt;/DetailedOrderListRequest&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  <p>I catched it from FIDDLER web debugger and the response that coming from SOAP service also catched using fiddler</p>
  <p>response XML :</p>
  <pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;
      &lt;SOAP-ENV:Header/&gt;
      &lt;SOAP-ENV:Body&gt;
          &lt;ns3:DetailedOrderListResponse xmlns:ns3=&quot;http://www.n11.com/ws/schemas&quot;&gt;
              &lt;result&gt;
                  &lt;status&gt;success&lt;/status&gt;
              &lt;/result&gt;
              &lt;pagingData&gt;
                  &lt;currentPage&gt;0&lt;/currentPage&gt;
                  &lt;pageSize&gt;100&lt;/pageSize&gt;
                  &lt;totalCount&gt;57&lt;/totalCount&gt;
                  &lt;pageCount&gt;1&lt;/pageCount&gt;
              &lt;/pagingData&gt;
              &lt;orderList&gt;
                  &lt;order&gt;
                      &lt;citizenshipId&gt;TTTTTTT&lt;/citizenshipId&gt;
                      &lt;createDate&gt;01/03/2021 17:05&lt;/createDate&gt;
                      &lt;id&gt;TTTTTTTT&lt;/id&gt;
                      &lt;orderItemList&gt;
                          &lt;orderItem&gt;
                              &lt;approvedDate&gt;02/03/2021&lt;/approvedDate&gt;
                              &lt;attributes/&gt;
                              &lt;commission&gt;14.99&lt;/commission&gt;
                              &lt;customTextOptionValues/&gt;
                              &lt;deliveryFeeType&gt;3&lt;/deliveryFeeType&gt;
                              &lt;dueAmount&gt;142.41&lt;/dueAmount&gt;
                              &lt;id&gt;TTTTTT&lt;/id&gt;
                              &lt;installmentChargeWithVAT&gt;0&lt;/installmentChargeWithVAT&gt;
                              &lt;mallDiscount&gt;7.49&lt;/mallDiscount&gt;
                              &lt;price&gt;154.4&lt;/price&gt;
                              &lt;productId&gt;TTTT&lt;/productId&gt;
                              &lt;productName&gt;TTTTTTTT&lt;/productName&gt;
                              &lt;productSellerCode&gt;211131&lt;/productSellerCode&gt;
                              &lt;quantity&gt;1&lt;/quantity&gt;
                              &lt;sellerCouponDiscount&gt;0&lt;/sellerCouponDiscount&gt;
                              &lt;sellerDiscount&gt;4.5&lt;/sellerDiscount&gt;
                              &lt;sellerInvoiceAmount&gt;149.9&lt;/sellerInvoiceAmount&gt;
                              &lt;shipmenCompanyCampaignNumber&gt;TTTTT&lt;/shipmenCompanyCampaignNumber&gt;
                              &lt;shipmentInfo&gt;
                                  &lt;campaignNumber&gt;TTT&lt;/campaignNumber&gt;
                                  &lt;campaignNumberStatus&gt;1&lt;/campaignNumberStatus&gt;
                                  &lt;shipmentCode&gt;258739698&lt;/shipmentCode&gt;
                                  &lt;shipmentCompany&gt;
                                      &lt;id&gt;344&lt;/id&gt;
                                      &lt;name&gt;Yurtiçi&lt;/name&gt;
                                      &lt;shortName&gt;YK&lt;/shortName&gt;
                                  &lt;/shipmentCompany&gt;
                                  &lt;shipmentMethod&gt;1&lt;/shipmentMethod&gt;
                                  &lt;trackingNumber&gt;TTTTT&lt;/trackingNumber&gt;
                              &lt;/shipmentInfo&gt;
                              &lt;shippingDate&gt;02/03/2021&lt;/shippingDate&gt;
                              &lt;sppApproved&gt;true&lt;/sppApproved&gt;
                              &lt;status&gt;10&lt;/status&gt;
                              &lt;totalMallDiscountPrice&gt;7.49&lt;/totalMallDiscountPrice&gt;
                              &lt;updatedDate&gt;06/03/2021 19:00&lt;/updatedDate&gt;
                              &lt;version&gt;502&lt;/version&gt;
                          &lt;/orderItem&gt;
                      &lt;/orderItemList&gt;
                      &lt;orderNumber&gt;TTTTT&lt;/orderNumber&gt;
                      &lt;paymentType&gt;1&lt;/paymentType&gt;
                      &lt;status&gt;5&lt;/status&gt;
                      &lt;totalAmount&gt;149.9&lt;/totalAmount&gt;
                      &lt;totalDiscountAmount&gt;11.99&lt;/totalDiscountAmount&gt;
                  &lt;/order&gt;
              &lt;/orderList&gt;
          &lt;/ns3:DetailedOrderListResponse&gt;
      &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  <p>The problem that I am facing as you can see above I have successfully sent request and SOAP service send me the result but on net core or net 5 can not deserialized the result that also added above</p>
  <p>response result screen shot</p>
  <p><a href="https://i.stack.imgur.com/At18O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/At18O.png" alt="enter image description here" /></a></p>
  <p>I have tried many different thing but can not solve the return null issues.
  Need some help please..</p>
  <p>WSDL service URL : <a href="https://api.n11.com/ws/OrderService.wsdl" rel="nofollow noreferrer">https://api.n11.com/ws/OrderService.wsdl</a></p>
  <p><strong>EDIT :</strong>
  some part of WSDL service reference class that generated by net 5 automaticly</p>
  <pre><code>    /// &lt;remarks/&gt;
  [System.CodeDom.Compiler.GeneratedCodeAttribute(&quot;Microsoft.Tools.ServiceModel.Svcutil&quot;, &quot;2.0.2&quot;)]
  [System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = &quot;http://www.n11.com/ws/schemas&quot;)]
  public partial class DetailedOrderListResponse
  {
  
      private ResultInfo resultField;
  
      private DetailedOrderData[] orderListField;
  
      private PagingData pagingDataField;
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 0)]
      public ResultInfo result
      {
          get
          {
              return this.resultField;
          }
          set
          {
              this.resultField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlArrayAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 1)]
      [System.Xml.Serialization.XmlArrayItemAttribute(&quot;order&quot;, Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = false)]
      public DetailedOrderData[] orderList
      {
          get
          {
              return this.orderListField;
          }
          set
          {
              this.orderListField = value;
          }
      }
  </code></pre>