ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Error calling SetExportFlag
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error calling SetExportFlag

 Post Reply Post Reply
Author
Message
mgreine View Drop Down
Newbie
Newbie


Joined: 06-October-2011
Location: Lancaster, PA
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgreine Quote  Post ReplyReply Direct Link To This Post Topic: Error calling SetExportFlag
    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
 
Back to Top
mgreine View Drop Down
Newbie
Newbie


Joined: 06-October-2011
Location: Lancaster, PA
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgreine Quote  Post ReplyReply Direct Link To This Post Posted: 21-October-2011 at 3:24pm
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.