Print Page | Close Window

XML Error?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2122
Printed Date: 23-November-2024 at 10:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XML Error?
Posted By: dubya008
Subject: XML Error?
Date Posted: 10-November-2008 at 10:18am
Hello,
I'm new with Product Cart and am trying to build some thing that will show me the orders outside of Product Cart.
I have created some XML that always returns a 100 status, saying it is invalid XML, can some one look at it and tell me what I need to change?

requestText="<?xml version=""1.0"" encoding=""utf-8"">" &_
"<GetOrderDetailsRequest>" &_
    "<PartnerID>Webgistix</PartnerID>" &_
    "<PartnerPassword>webgisix</PartnerPassword>" &_
    "<PartnerKey>PXP-LED82I0PUH7ZD9968ESWJ8I93A</PartnerKey>" &_
    "<OrderID>7</OrderID>" &_
"</GetOrderDetailsRFequest>"



Replies:
Posted By: Greg Dinger
Date Posted: 10-November-2008 at 10:41am
there may be more issues but I'd suggest you correct the spelling on this tag:
 
"</GetOrderDetailsRFequest>"
should be
 
"</GetOrderDetailsRequest>"?


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: dubya008
Date Posted: 10-November-2008 at 10:50am
Thank you. It is now.
requestText="<?xml version=""1.0"" encoding=""utf-8"">" &_
"<GetOrderDetailsRequest>" &_
    "<PartnerID>Webgistix</PartnerID>" &_
    "<PartnerPassword>webgisix</PartnerPassword>" &_
    "<PartnerKey>PXP-LED82I0PUH7ZD9968ESWJ8I93A</PartnerKey>" &_
    "<OrderID>7</OrderID>" &_
"</GetOrderDetailsRequest>"

and still go the same error


Posted By: Greg Dinger
Date Posted: 10-November-2008 at 10:55am
Ok, not sure beyond that but the typo was very obvious so I wanted to point that out.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: dubya008
Date Posted: 10-November-2008 at 11:14am
Well thanks for the help any way!


Posted By: dubya008
Date Posted: 10-November-2008 at 12:56pm
Is there any one who has had this problem in the past?
I have downloaded the XML tools and that is where I came up with this XML to submit. Am I missing some things?


Posted By: Matt
Date Posted: 10-November-2008 at 1:26pm
You are missing a "?". 

It should be:


requestText="<?xml version=""1.0"" encoding=""utf-8"" ?>" &_


Posted By: dubya008
Date Posted: 10-November-2008 at 1:53pm
I'm still getting that error. Do you think it could be some thing else?


Posted By: Matt
Date Posted: 10-November-2008 at 1:59pm
Here is the correct XML so you can compare it with your own.  You may want to write your XML out to the screen so you can be sure it is correctly formed.

<?xml version='1.0' encoding='utf-8' ?>
<GetOrderDetailsRequest>
<PartnerID></PartnerID>
<PartnerPassword></PartnerPassword>
<PartnerKey></PartnerKey>
<OrderID>7</OrderID>
</GetOrderDetailsRequest>

This works.  I tested it with the sample applications provided in the SDK.


Posted By: dubya008
Date Posted: 10-November-2008 at 2:12pm
I'm running this from a vbs file would that have any thing to do with it?


Posted By: Matt
Date Posted: 10-November-2008 at 2:18pm
It should not.  Please print your xml out to a msg box and paste it here so we can see it.  


Posted By: dubya008
Date Posted: 10-November-2008 at 3:23pm
<?xml version='1.0' encoding='utf-8' ?><GetOrderDetailsRequest><PartnerID>Webgis
tix</PartnerID><PartnerPassword>webgisix</PartnerPassword><PartnerKey>PXP-LED82I
0PUH7ZD9968ESWJ8I93A</PartnerKey><OrderID>7</OrderID></GetOrderDetailsRequest>

<?xml version="1.0"?>
<ProductCartResponse><RequestStatus>100</RequestStatus><ErrorList><ErrorCode>101
</ErrorCode><ErrorDesc>Invalid XML document</ErrorDesc></ErrorList></ProductCart
Response>



Posted By: dubya008
Date Posted: 10-November-2008 at 5:46pm
Never Mind i've found the problem. Thank you for all of the help


Posted By: Matt
Date Posted: 10-November-2008 at 5:48pm
Hi dubya008, if you have some time let us know. We can add it to the troubleshooting tips.


Posted By: dubya008
Date Posted: 11-November-2008 at 12:23pm
I'm not certain but i have a sneaky suspicion that it had to do with the tabs in the XML statement. The one that you gave to me (besides the first line) was the same as mine.

Don't Know if this is the correct place to ask this but how long is an order in the cart considered new?



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