XML 역 직렬화가 작동하지만 (200 OK) 콘텐츠를 가져올 수 없음

user2585578

기본적으로 XML 문서에 대한 GET 요청을 만들고 모델로 역 직렬화하는 컨트롤러 코드와 함께 다음과 같은 뷰 측 모델 체계가 있습니다. 200 OK 응답을 받고 역 직렬화 방법이 작동했지만 변환 된 개체 내부의 콘텐츠가 없습니다.

컨트롤러 코드

      string OneURL = "https://seller.marketplace.sears.com/SellerPortal/s/schema/samples/rest/oms/export/v11/purchase-order.xml";
      HttpClient client = new HttpClient();
      HttpResponseMessage ResponseMessage = new HttpResponseMessage();
      try {
        ResponseMessage = client.GetAsync(OneURL).Result;


        string ResultString = ResponseMessage.Content.ReadAsStringAsync().Result;
        ResultString = ResultString.Replace("<sup>™</sup>", "");
        ResultString = ResultString.Replace("<sup>®</sup>", "");

        TextReader Input = new StringReader(ResultString);
        XmlSerializer DebugSerializer = new XmlSerializer(typeof(SearsPurchaseOrderResponseModel));
        SearsPurchaseOrderResponseModel XmlResponse = new SearsPurchaseOrderResponseModel();
        try {
          XmlResponse = (SearsPurchaseOrderResponseModel)DebugSerializer.Deserialize(Input);}catch(Exception e){}

모델

 // order retrieval model
  [Serializable]
  [XmlRoot(ElementName = "po-response", Namespace = "http://seller.marketplace.sears.com/oms/v11")]
  public class SearsPurchaseOrderResponseModel {
    [XmlElement("deprecated")]
    public DateTime Deprecated { get; set; }

    [Required]
    [XmlArrayItem("purchase-order")]
    public List<SearsPurchaseOrderModel> PurchaseOrder { get; set; }
  }



  [Serializable]
  //[XmlType("purchase-order")]
  public class SearsPurchaseOrderModel {

    [XmlElement("customer-order-confirmation-number")]
    public int CustomOrderConfirmationNumber { get; set; }
    [XmlElement("customer-email")]
    public string CustomerEmail { get; set; }
    [Required]
    [XmlElement("po-number")]
    public string PONumber { get; set; }
    [Required]
    [XmlElement("po-date")]
    public DateTime PODate { get; set; }
    [Required]
    [XmlElement("po-time")]
    public TimeSpan POTime { get; set; }
    [Required]
    [XmlElement("po-number-with-date")]
    public string PONumberWithDate { get; set; }
    [XmlElement("unit")]
    public string Unit { get; set; }
    [XmlElement("site")]
    public string Site { get; set; }
    [XmlElement("channel")]
    public string Channel { get; set; }
    [XmlElement("location-id")]
    public string LocationID { get; set; }
    [XmlElement("lmp-details")]
    public SearsOrderLMPDetailModel LMPDetail { get; set; }
    [Required]
    [XmlElement("expected-ship-date")]
    public DateTime ExpectedShipDate { get; set; }
    [Required]
    [XmlElement("shipping-detail")]
    public SearsOrderShippingDetailModel ShippingDetail { get; set; }

    [XmlElement("ship-to-store-detail")]
    public SearsOrderShipToStoreDetailModel ShipToStoreDetail { get; set; }

    [Required]
    [MaxLength(100)]
    [XmlElement("customer-name")]
    public string CustomerName { get; set; }

    [Required]
    [XmlArrayItem("po-line")]
    public List<SearsOrderPOLineModel> POLine { get; set; }


    [Required]
    [XmlElement("order-total-sell-price")]
    public decimal OrderStoreSellPrice { get; set; }

    [Required]
    [XmlElement("total-commission")]
    public decimal TotalCommission { get; set; }

    [Required]
    [XmlElement("total-shipping-handling")]
    public decimal TotalShippingHandling { get; set; }

    [Required]
    [XmlElement("balance-due")]
    public decimal BalanceDue { get; set; }

    [Required]
    [XmlElement("sales-tax")]
    public decimal SalesTax { get; set; }

    [Required]
    [XmlElement("po-status")]
    public string POStatus { get; set; }

    [XmlElement("po-shipment-info")]
    public SearsOrderShipmentInfoModel POShipmentInfo { get; set; }

  }

  [Serializable]
  public class SearsOrderShippingDetailModel {
    [Required]
    [MaxLength(100)]
    [XmlElement("ship-to-name")]
    public string ShipToName { get; set; }
    [Required]
    [XmlElement("address")]
    public string Address { get; set; }
    [Required]
    [XmlElement("city")]
    public string City { get; set; }
    [Required]
    [XmlElement("state")]
    public string State { get; set; }
    [Required]
    [XmlElement("zipcode")]
    public string Zipcode { get; set; }
    [Required]
    [XmlElement("phone")]
    public string Phone { get; set; }
    [Required]
    [XmlElement("shipping-method")]
    public string ShippingMethod { get; set; }
    [XmlElement("carrier")]
    public string Carrier { get; set; }
  }



  [Serializable]
  public class SearsOrderShipmentInfoModel {
    [Required]
    [XmlArrayItem("shipment")]
    public List<SearsOrderShipmentDetailModel> Shipment { get; set; }
  }

  [Serializable]
  public class SearsOrderShipmentDetailModel {
    [Required]
    [XmlElement("ship-method")]
    public string ShipMethod { get; set; }
    [Required]
    [MaxLength(45)]
    [XmlElement("shipment-tracking-number")]
    public string ShipmentTrackingNumber { get; set; }
  }



  [Serializable]
  public class SearsOrderLMPDetailModel {

    [Required]
    [XmlElement("order-type")]
    public string OrderType { get; set; }
    [Required]
    [XmlElement("pickup-ind")]
    public string PickupIND { get; set; }
    [Required]
    [XmlElement("pickup-location")]
    public SearsOrderPickupLocationModel PickupLocation { get; set; }
    [XmlElement("delivery-instructions")]
    public string DeliveryInstructions { get; set; }
    [XmlElement("dropoff-ind")]
    public string DropoffIND { get; set; }
    [XmlElement("delivery-date")]
    public DateTime DeliveryDate { get; set; }
    [XmlElement("expected-pickup-date")]
    public DateTime ExpectedPickupDate { get; set; }
    [Required]
    [XmlElement("ucc-barcode")]
    public string UCCBarcode { get; set; }


  }

  [Serializable]
  public class SearsOrderPickupLocationModel {
    [Required]
    [XmlElement("name")]
    public string Name { get; set; }
    [Required]
    [XmlElement("address")]
    public string Address { get; set; }
    [Required]
    [XmlElement("city")]
    public string City { get; set; }
    [Required]
    [XmlElement("state")]
    public string State { get; set; }
    [Required]
    [XmlElement("zipcode")]
    public string Zipcode { get; set; }
    [Required]
    [XmlElement("phone")]
    public string Phone { get; set; }

  }

  [Serializable]
  public class SearsOrderPOLineModel {
    [Required]
    [XmlElement("po-line-header")]
    public SearsOrderPOLineHeaderModel POLineHeader { get; set; }
    [XmlArrayItem("po-line-detail")]
    public List<SearsOrderPOLineDetailModel> POLineDetail { get; set; }
  }

  [Serializable]
  public class SearsOrderPOLineHeaderModel {
    [Required]
    [XmlElement("line-number")]
    public int LineNumber { get; set; }
    [Required]
    [MaxLength(50)]
    [XmlElement("item-id")]
    public string ItemID { get; set; }
    [Required]
    [XmlElement("item-name")]
    public string ItemName { get; set; }
    [XmlElement("handling-instructions")]
    public string HandlingInstructions { get; set; }
    [XmlElement("handling-ind")]
    public string HandlingIND { get; set; }
    [XmlElement("unit-cost")]
    public decimal UnitCost { get; set; }
    [XmlElement("selling-price-each")]
    public decimal SellingPriceEach { get; set; }
    [Required]
    [XmlElement("commission")]
    public decimal Commission { get; set; }
    [Required]
    [Range(0, Int32.MaxValue)]
    [XmlElement("order-quantity")]
    public int OrderQuantity { get; set; }
    [Required]
    [XmlElement("shipping-and-handling")]
    public decimal ShippingAndHandling { get; set; }
    [XmlElement("gift-message-details")]
    public string GiftMessageDetails { get; set; }
    [XmlElement("customer-cancellation-warning")]
    public string CustomerCancellationWarning { get; set; }

  }

  [Serializable]
  public class SearsOrderPOLineDetailModel {
    [Required]
    [XmlElement("po-line-status")]
    public string POLineStatus { get; set; }
    [Required]
    [XmlElement("quantity")]
    public int Quantity { get; set; }
    [XmlElement("internal-memo")]
    public string InternalMemo { get; set; }
    [XmlElement("external-memo")]
    public string ExternalMemo { get; set; }
  }

  [Serializable]
  public class SearsOrderShipToStoreDetailModel {
    [Required]
    [XmlElement("address")]
    public string Address { get; set; }
    [Required]
    [XmlElement("city")]
    public string City { get; set; }
    [Required]
    [XmlElement("state")]
    public string State { get; set; }
    [Required]
    [XmlElement("zipcode")]
    public string Zipcode { get; set; }
    [XmlElement("phone")]
    public string Phone { get; set; }
    [XmlElement("store-delivery-date")]
    public DateTime StoreDeliveryDate { get; set; }
    [Required]
    [XmlElement("ucc-barcode")]
    public string UCCBarcode { get; set; }

  }

XML 파일

<?xml version="1.0" encoding="UTF-8"?>
<po-response xsi:schemaLocation="rest/oms/export/v11/purchase-order.xsd" xmlns="http://seller.marketplace.sears.com/oms/v11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <purchase-order>
    <!--This is a shipping order -->
    <customer-order-confirmation-number>650637711</customer-order-confirmation-number>
    <!--confirmation number customer sees in his order confirmation email and 
            order center -->
    <customer-email>[email protected]</customer-email>
    <po-number>408306531</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306531</po-number-with-date>
    <unit>9300</unit>
    <site>SEARS</site>
    <channel>DSS</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Standard</shipping-method>
      <carrier>DEMAR</carrier>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <!--There could be multiple line items within an order and your items 
                    may or may not start with line number 1 -->
      <po-line-header>
        <line-number>1</line-number>
        <!--Item id can have 50 characters -->
        <item-id>12321</item-id>
        <item-name>DSS Item</item-name>
        <unit-cost>14.99</unit-cost>
        <!-- Unit Cost included only for DSS orders -->
        <selling-price-each>17.63</selling-price-each>
        <unit-sales-tax>1.86</unit-sales-tax>
        <commission>2.64</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.00</unit-shipping-tax>
        <fees>
          <unit-fee type="REGULATORY">1.12</unit-fee>
        </fees>
        <customer-cancellation-warning><![CDATA[This line item has a cancellation request from customer. Before fulfilling the line, please use the following service for more details - https://seller.marketplace.sears.com/SellerPortal/api/oms/cancellationrequest/v1?email={emailaddress}&password={password}&status={status}&fromdate={fromdate}&todate={todate}]]></customer-cancellation-warning>
      </po-line-header>
      <po-line-detail>
        <po-line-status>NEW</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>17.63</order-total-sell-price>
    <total-commission>2.64</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>23.94</balance-due>
    <!--balance due=order total seller price -total comission +total shipping 
            handling -->
    <sales-tax>1.86</sales-tax>
    <!--sales tax is collected and submitted by Sears -->
    <po-status>New</po-status>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637712</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306532</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306532</po-number-with-date>
    <unit>9301</unit>
    <site>SEARS</site>
    <channel>FBM</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Premium</shipping-method>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>Item Name</item-name>
        <selling-price-each>64.95</selling-price-each>
        <unit-sales-tax>6.10</unit-sales-tax>
        <commission>9.74</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.00</unit-shipping-tax>
      </po-line-header>
      <po-line-detail>
        <po-line-status>SHIPPED</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>64.95</order-total-sell-price>
    <total-commission>9.74</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>64.16</balance-due>
    <sales-tax>6.10</sales-tax>
    <po-status>Closed</po-status>
    <po-shipment-info>
      <shipment>
        <ship-method>DEMAR</ship-method>
        <shipment-tracking-number>DEMARPREMIUM1234567890</shipment-tracking-number>
      </shipment>
    </po-shipment-info>
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>GA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637713</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306533</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306533</po-number-with-date>
    <unit>9300</unit>
    <site>SEARS</site>
    <channel>DSS</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Ground</shipping-method>
      <carrier>UPS</carrier>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>DSS Item1</item-name>
        <unit-cost>44.62</unit-cost>
        <!-- Unit Cost included only for DSS orders -->
        <selling-price-each>51.29</selling-price-each>
        <unit-sales-tax>1.86</unit-sales-tax>
        <commission>6.67</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.00</unit-shipping-tax>
      </po-line-header>
      <po-line-detail>
        <po-line-status>NEW</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>51.29</order-total-sell-price>
    <total-commission>6.67</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>53.57</balance-due>
    <sales-tax>1.86</sales-tax>
    <po-status>New</po-status>
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>VA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637714</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306534</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306534</po-number-with-date>
    <unit>9300</unit>
    <site>SEARS</site>
    <channel>DSS</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Other</shipping-method>
      <carrier>OTH</carrier>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>DSS Item</item-name>
        <unit-cost>14.29</unit-cost>
        <!-- Unit Cost included only for DSS orders -->
        <selling-price-each>16.81</selling-price-each>
        <unit-sales-tax>1.86</unit-sales-tax>
        <commission>2.52</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.65</unit-shipping-tax>
      </po-line-header>
      <po-line-detail>
        <po-line-status>NEW</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>16.81</order-total-sell-price>
    <total-commission>2.52</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>23.24</balance-due>
    <sales-tax>1.86</sales-tax>
    <po-status>New</po-status>
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>GA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637715</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306535</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306535</po-number-with-date>
    <unit>9301</unit>
    <site>SEARS</site>
    <channel>FBM</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Next Day Saver</shipping-method>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>EOS  Ultra  Moisturizing  Cream</item-name>
        <selling-price-each>1.49</selling-price-each>
        <unit-sales-tax>0.00</unit-sales-tax>
        <commission>0.13</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.00</unit-shipping-tax>
      </po-line-header>
      <po-line-detail>
        <po-line-status>NEW</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>1.49</order-total-sell-price>
    <total-commission>0.13</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>10.31</balance-due>
    <sales-tax>0.10</sales-tax>
    <po-status>New</po-status>
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>GA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637716</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306536</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306536</po-number-with-date>
    <unit>9300</unit>
    <site>SEARS</site>
    <channel>DSS</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Priority Mail</shipping-method>
      <carrier>USPS</carrier>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>EOS  Ultra  Moisturizing  Sensitive  Shave  Cream  by  EOS  7.0  oz  Fragrance  Free  Shave  Cream</item-name>
        <unit-cost>0.90</unit-cost>
        <selling-price-each>0.99</selling-price-each>
        <unit-sales-tax>0.09</unit-sales-tax>
        <commission>0.09</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
        <unit-shipping-tax>0.00</unit-shipping-tax>
      </po-line-header>
      <po-line-detail>
        <po-line-status>SHIPPED</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>0.99</order-total-sell-price>
    <total-commission>0.09</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>9.85</balance-due>
    <sales-tax>0.09</sales-tax>
    <po-status>Ready to Invoice</po-status>
    <!-- This status will show while invoice is getting ready, Once invoice created po-status will flip to Closed status and  shipping details which includes shipping Carrier name and tracking number will show.
      Refer Order#408306532 reference-->
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>GA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
  <purchase-order>
    <customer-order-confirmation-number>650637716</customer-order-confirmation-number>
    <customer-email>[email protected]</customer-email>
    <po-number>408306537</po-number>
    <po-date>2014-10-02</po-date>
    <po-time>05:22:59</po-time>
    <po-number-with-date>20141002408306537</po-number-with-date>
    <unit>9300</unit>
    <site>SEARS</site>
    <channel>DSS</channel>
    <location-id>8446</location-id>
    <expected-ship-date>2014-09-09</expected-ship-date>
    <shipping-detail>
      <ship-to-name>John Doe</ship-to-name>
      <address>3400 ParkWay RD</address>
      <city>CONCORD</city>
      <state>GA</state>
      <zipcode>30206</zipcode>
      <phone>7703311985</phone>
      <shipping-method>Priority Mail</shipping-method>
      <carrier>USPS</carrier>
    </shipping-detail>
    <customer-name>John Doe</customer-name>
    <po-line>
      <po-line-header>
        <line-number>1</line-number>
        <item-id>12321</item-id>
        <item-name>DSS Item</item-name>
        <unit-cost>182.59</unit-cost>
        <!-- Unit Cost included only for DSS orders -->
        <selling-price-each>219.99</selling-price-each>
        <unit-sales-tax>16.05</unit-sales-tax>
        <commission>37.40</commission>
        <order-quantity>1</order-quantity>
        <shipping-and-handling>8.95</shipping-and-handling>
      </po-line-header>
      <po-line-detail>
        <po-line-status>NEW</po-line-status>
        <quantity>1</quantity>
      </po-line-detail>
    </po-line>
    <order-total-sell-price>219.99</order-total-sell-price>
    <total-commission>37.40</total-commission>
    <total-shipping-handling>8.95</total-shipping-handling>
    <balance-due>191.54</balance-due>
    <sales-tax>16.05</sales-tax>
    <po-status>New</po-status>
    <tax-reference>
      <delivery-tax-code>1</delivery-tax-code>
      <tax-rate>14260</tax-rate>
      <avp-taxing-jx-geo-code>00</avp-taxing-jx-geo-code>
      <avp-taxing-jx-county>031</avp-taxing-jx-county>
      <transfer-to-state-code>GA</transfer-to-state-code>
      <ship-to-taxware-geo>146017900</ship-to-taxware-geo>
    </tax-reference>
  </purchase-order>
</po-response>

그리고 저는 0 사이즈의 PurchaseOrder를 받았습니다. 이걸 도와주세요.

jhmt

purchase-order요소가 아니므로 XmlArray이와 같이 속성을 변경하면

[Serializable]
[XmlRoot(ElementName = "po-response", Namespace = "http://seller.marketplace.sears.com/oms/v11")]
public class SearsPurchaseOrderResponseModel
{
    [XmlElement("deprecated")]
    public DateTime Deprecated { get; set; }

    [Required]
    // [XmlArrayItem("purchase-order")]
    [XmlElement("purchase-order")]
    public List<SearsPurchaseOrderModel> PurchaseOrder { get; set; }
}

그러면 deserialized 객체 ( XmlResponse)는 PurchaseOrder목록에 몇 가지 인스턴스를 갖게 됩니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

xml 문서를 역 직렬화 할 수 있지만 동일한 문서로 직렬화 할 수 없음

분류에서Dev

`오류 : JAR 파일을 가져올 때 역 직렬화 할 수 없음 '

분류에서Dev

역 직렬화 할 수없는 일부 개체를 포함하는 배열 역 직렬화 (역 직렬화 가능 부분 구하기)

분류에서Dev

콘텐츠를 수동으로 수정 한 후 텍스트 영역에 콘텐츠를 추가하는 방법

분류에서Dev

SimpleXMLElement 콘텐츠를 가져올 수 없습니다.

분류에서Dev

PHP는 https 콘텐츠를 가져올 수 없습니다.

분류에서Dev

Angular Universal (SSR)을 사용하여 콘텐츠가있는 콘텐츠를 렌더링 할 수 없음

분류에서Dev

XML 역 직렬화가 작동하지 않음-XML 문서 (0, 0)에 오류가 있습니다.

분류에서Dev

AFNetworking 및 id reponseObject가 작동하지 않고 콘텐츠를 복구 할 수 없음

분류에서Dev

StreamReader 및 JsonTextReader를 사용한 역 직렬화가 작동하지 않음

분류에서Dev

.NET XML 직렬화 / 역 직렬화를 제어하여 요소를 제외하는 방법, MS 클래스 일 때 XMLIgnore 등을 추가하기 위해 소스를 편집 할 수 없음

분류에서Dev

XmlRoot 요소가없는 XML 직렬화 및 역 직렬화

분류에서Dev

XML 역 직렬화가 작동하지 않습니다.

분류에서Dev

XML 역 직렬화가 작동하지 않습니다.

분류에서Dev

WKWebView 콘텐츠 높이를 올바르게 가져올 수 없습니다.

분류에서Dev

PHP에서 file_get_content를 사용하여 웹 사이트 콘텐츠를 가져올 수 없습니다.

분류에서Dev

open-uri로 FTP 페이지의 콘텐츠를 가져올 수 없습니다.

분류에서Dev

ez Publish-새 번역 콘텐츠를 추가 할 수 없습니다.

분류에서Dev

가변 콘텐츠로 C #을 사용하여 Json 역 직렬화

분류에서Dev

XmlSerializer가 루트 요소에 지정된 스키마로 XML을 역 직렬화 할 수없는 이유

분류에서Dev

암호 유형 입력 콘텐츠를 가져올 수없는 이유

분류에서Dev

Selenium 및 BeautifulSoup은 모든 HTML 콘텐츠를 가져올 수 없습니다.

분류에서Dev

Googlesheet의 importxml로 tbody html에서 콘텐츠를 가져올 수 없습니다.

분류에서Dev

작동하지 않음, "일부 아카이브를 가져올 수 없음"

분류에서Dev

Power BI를 Hadoop HDFS에 연결할 수 없음 콘텐츠를 가져 오지 못했습니다.

분류에서Dev

Curl : zsh 환경 변수를 사용하여 콘텐츠 유형 추가가 작동하지 않음

분류에서Dev

.NET에서 작동하는 DropDownList를 가져올 수 없음 (C #)

분류에서Dev

요소 길이를 가져올 수 있지만 innerHTML은 가져올 수 없음

분류에서Dev

녹온 효과없이 콘텐츠가 인라인 블록에서 수직으로 정렬되지 않음

Related 관련 기사

  1. 1

    xml 문서를 역 직렬화 할 수 있지만 동일한 문서로 직렬화 할 수 없음

  2. 2

    `오류 : JAR 파일을 가져올 때 역 직렬화 할 수 없음 '

  3. 3

    역 직렬화 할 수없는 일부 개체를 포함하는 배열 역 직렬화 (역 직렬화 가능 부분 구하기)

  4. 4

    콘텐츠를 수동으로 수정 한 후 텍스트 영역에 콘텐츠를 추가하는 방법

  5. 5

    SimpleXMLElement 콘텐츠를 가져올 수 없습니다.

  6. 6

    PHP는 https 콘텐츠를 가져올 수 없습니다.

  7. 7

    Angular Universal (SSR)을 사용하여 콘텐츠가있는 콘텐츠를 렌더링 할 수 없음

  8. 8

    XML 역 직렬화가 작동하지 않음-XML 문서 (0, 0)에 오류가 있습니다.

  9. 9

    AFNetworking 및 id reponseObject가 작동하지 않고 콘텐츠를 복구 할 수 없음

  10. 10

    StreamReader 및 JsonTextReader를 사용한 역 직렬화가 작동하지 않음

  11. 11

    .NET XML 직렬화 / 역 직렬화를 제어하여 요소를 제외하는 방법, MS 클래스 일 때 XMLIgnore 등을 추가하기 위해 소스를 편집 할 수 없음

  12. 12

    XmlRoot 요소가없는 XML 직렬화 및 역 직렬화

  13. 13

    XML 역 직렬화가 작동하지 않습니다.

  14. 14

    XML 역 직렬화가 작동하지 않습니다.

  15. 15

    WKWebView 콘텐츠 높이를 올바르게 가져올 수 없습니다.

  16. 16

    PHP에서 file_get_content를 사용하여 웹 사이트 콘텐츠를 가져올 수 없습니다.

  17. 17

    open-uri로 FTP 페이지의 콘텐츠를 가져올 수 없습니다.

  18. 18

    ez Publish-새 번역 콘텐츠를 추가 할 수 없습니다.

  19. 19

    가변 콘텐츠로 C #을 사용하여 Json 역 직렬화

  20. 20

    XmlSerializer가 루트 요소에 지정된 스키마로 XML을 역 직렬화 할 수없는 이유

  21. 21

    암호 유형 입력 콘텐츠를 가져올 수없는 이유

  22. 22

    Selenium 및 BeautifulSoup은 모든 HTML 콘텐츠를 가져올 수 없습니다.

  23. 23

    Googlesheet의 importxml로 tbody html에서 콘텐츠를 가져올 수 없습니다.

  24. 24

    작동하지 않음, "일부 아카이브를 가져올 수 없음"

  25. 25

    Power BI를 Hadoop HDFS에 연결할 수 없음 콘텐츠를 가져 오지 못했습니다.

  26. 26

    Curl : zsh 환경 변수를 사용하여 콘텐츠 유형 추가가 작동하지 않음

  27. 27

    .NET에서 작동하는 DropDownList를 가져올 수 없음 (C #)

  28. 28

    요소 길이를 가져올 수 있지만 innerHTML은 가져올 수 없음

  29. 29

    녹온 효과없이 콘텐츠가 인라인 블록에서 수직으로 정렬되지 않음

뜨겁다태그

보관