View Full Version : Error: The XML Document is Not Well Formed
mgbee
February 14th, 2005, 12:11 PM
Hi,
I'm working to get UPS Online Tools running. I registered OT with the wizard inside my site's control panel. When I attempted to track testing or RTR, I get the error: The XML document is not well formed. I suppose this means that I'm actually connecting to UPS' server, since I don't think that error is just coming from the squirrelcart code. So, that's good.
I looked up this error on usenet and a few people said it happens if an ambersand character is not html encoded. That's about it.
Also, I noticed inside the UPS functions that there is a UPS developer's key inside the code. Isn't that key unique to each UPS customer, and so don't I have one of my own that I should replace it with?
Thanks very much in advance...
Mike
Jamie
February 14th, 2005, 12:51 PM
Hi Mike,
I'll start with the easy question first. The developer's key is unique to us, not to you. It is sent to UPS with each transaction, which identifies us (Lighthouse Development) as the developer that integrated their UPS OnLine Tools APIs.
You also have an identifier in the form of a username, password, and access key, all of which is encrypted in Squirrelcart's database. This info is not something you will ever need to have. During the registration process, it is obtained from UPS, and stored. We then have to send that information back to UPS when making a rate request. The error you are receiveing is due to the way in which MCrypt encrypted that information. We will be fixing this in the future. Try this:
1. Run this query in the MySQL query utility:
UPDATE Shipping_Couriers SET UPS_Agreed = '0' WHERE record_number = '2';
That will reset UPS so you can register again.
2. Repeat the registration process.
3. Test.
If you still receive the error after all this, then please open a helpdesk ticket and we can check it out for you.
mgbee
February 15th, 2005, 04:43 PM
Jamie,
Thanks a lot for the quick response. I found the UPS_Agreed field in the Shipping_Couriers table. I set it back to 0, Re-registered through the website, and unfortunately it's not working still. Still getting:
Error Code: 10001
Error Description: The XML document is not well formed
I've never opened a helpdesk ticket, where do I go about doing that?
Thanks, Mike
Jamie
February 15th, 2005, 05:22 PM
Hi Mike,
Your welcome! You can open a ticket here:
http://www.ldev.com/helpdesk
You will need to register for an account there before you can submit a ticket.
mgbee
February 15th, 2005, 05:29 PM
I have created a ticket. In the meantime, are there any files I should look at to get ideas?
mgbee
February 15th, 2005, 05:35 PM
The one thing that bugs me is that when i submit the RTR query, the URL may be https://www.mystore.com, but after the result with the error comes back, the page has become http... So, it's going from the secure layer to the insecure layer.
I read in the UPS OT docs that the SSL layer is necessary in order to pass the XML document. Could the problem be coming from the fact that this query may be being sent insecurely and therefore, it's not "well formed"?
Thanks,
Mike
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.