Wednesday, February 24, 2010

Quick primer to Amazon SOAP Api Order Download

Break your calls into 2 parts:
1.First get the document ids using GetAllPendingDocuments() and store it in an array of string or anything that you can enumerate
eg
List pendingDocuments = yourproxy.GetAllPendingDocuments(AMAZONCODE);

2.Next iterate through the documentids and call GetDocument()
foreach (string id in pendingDocuments)
{
StreamReader txtReader = yourProxy.GetDocument(id);
//Pump it into XmlDocument
XmlDocument document = new XmlDocument();
document.Load(txtReader);
}
Follow my on my Amazon.com profile for Amazon related solutions suggested by me at
http://www.amazonsellercommunity.com/forums/profile.jspa?userID=48618

No comments:

Post a Comment