.net - Deserialize stream to object -
i'm trying stream returned amazon object. please see below.
private function getreportdata(byval service marketplacewebserviceclient, byval merchantid string, byval reportid string) string dim request new getreportrequest() request.merchant = merchantid request.reportid = reportid request.report = file.open("report.xml", filemode.openorcreate, fileaccess.readwrite) dim data string = nothing dim response getreportresponse = service.getreport(request) using reader = new streamreader(request.report, encoding.utf8) ' value data = reader.readtoend() end using return data end function
here example data returned. there no xml data. looks this...
"sku fnsku asin product-name reserved_qty reserved_customerorders reserved_fc-transfers reserved_fc-processing
vpd-002 b22embmpac b22embmpac product name 3 0 3 0 vpd-002 b22embmpac b22embmpac product name 3 0 3 0
vpd-002 b22embmpac b22embmpac product name 3 0 3 0
vpd-002 b22embmpac b22embmpac product name 3 0 3 0"
is possible deserialize stream object?
public class reservedinventory public property sku string public property fnsku string public property asin string public property product_name string public property reserved_qty integer public property reserved_customerorders integer public property reserved_fc_transfers integer public property reserved_fc_processing integer end class
Comments
Post a Comment