Print Page | Close Window

Error calling SetExportFlag

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=4808
Printed Date: 06-March-2025 at 11:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Error calling SetExportFlag
Posted By: mgreine
Subject: Error calling SetExportFlag
Date 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
 



Replies:
Posted By: mgreine
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net