![]() |
Error calling SetExportFlag |
Post Reply ![]() |
Author | |
mgreine ![]() Newbie ![]() Joined: 06-October-2011 Location: Lancaster, PA Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 20-October-2011 at 12:14pm |
Hello,
I am using the SDK to retrieve orders from the store site. I am able to successfully retrieve new orders and then the subsequent order and customer details. When I am finished processing that order, I want to set the exported flag to 1.
I am receiving an error in the response stating that I am missing a node.
Here is my request and response data.
Request
<?xml version='1.0' encoding='ISO-8859-1' ?>
<SetExportFlagRequest> <PartnerID>removed</PartnerID> <PartnerPassword>removed</PartnerPassword> <PartnerKey>removed</PartnerKey> <ExportedFlag>1</ExportedFlag> <ExportedID>3818</ExportedID> <IDType>2</IDType> </SetExportFlagRequest> Response
<?xml version="1.0"?>
<SetExportFlagResponse> <RequestStatus>100</RequestStatus> <ErrorList> <ErrorCode>102</ErrorCode> <ErrorDesc>Invalid XML structure. It does not have a required tag: //Requests/Request/ExportedFlag</ErrorDesc> </ErrorList> </SetExportFlagResponse> I have to be missing something obvious. The partner info is correct because I can retrieve other information using the same generic function. The IDType is for an Order and the ExportedID is the id of the Order.
Can someone help me out?
Thanks,
Mike G
|
|
![]() |
|
mgreine ![]() Newbie ![]() Joined: 06-October-2011 Location: Lancaster, PA Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
After digging through the source code (encoded), I found the cause of the issue. The examples don't match what the processing engine is looking for.
Here's what the code is looking for in a request xml.
<SetExportFlagRequest>
<PartnerID>removed</PartnerID> <PartnerPassword>removed</PartnerPassword> <PartnerKey>removed</PartnerKey> <Requests> <Request>
<ExportedFlag>1</ExportedFlag>
<ExportedID>1234</ExportedID>
<IDType>2</IDType>
</Request>
</Requests>
</SetExportFlagRequest>
I am not sure why this is different than all of the other requests and likewise not documented properly in the examples, but it is what it is.
Thanks,
Mike
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |