Jump to content



Photo
- - - - -

Please help me Error[ 10002: The XML document is well formed but the document is not valid]


  • Please log in to reply
5 replies to this topic

#1   enlala

enlala
  • Members
  • 4 posts
  • Real Name:kimi

Posted 15 June 2009 - 17:52

Dear all, I need help!!!!

When I try to install United Parcel Service (XML), But I get this error.

=======
United Parcel Service (XML)
10002: The XML document is well formed but the document is not valid
If you prefer to use ups as your shipping method, please contact Z-Counterform via Email.
=======

PS: product_weight is setting.

I donot know how to set UPS, the follow is my setting

-------------------
Enable UPS Shipping
True

UPS Rates Access Key
xxxxxx

UPS Rates Username
xxxxxxx

UPS Rates Password
xxxxxx

Pickup Method
Daily Pickup

Packaging Type
Package

Customer Classification Code
01

Shipping Origin
US Origin

Origin City
Fort Meade

Origin State/Province
FL

Origin Country
US

Origin Zip/Postal Code
33841

Test or Production Mode
Production

Unit Weight
KGS

Unit Length
IN

Dimensions Support
No

Quote Type
Commercial

Negotiated rates
False

UPS Account Number
xxxxxxx

Handling Type
Flat Fee

Handling Fee
0

Enable Insurance
True

UPS Currency Code
USD

Tax Class
Taxable Goods

Shipping Zone
--none--

Sort order of display.
0

Disallowed Shipping Methods
--none--

Shipping Delay
1

Email UPS errors
Yes

Time in Transit View Type
Raw
-------------------

I am waiting here unit fixed this issue!

Thanks

Kimi

Edited by Jan Zonjee, 15 June 2009 - 19:51.


#2   enlala

enlala
  • Members
  • 4 posts
  • Real Name:kimi

Posted 15 June 2009 - 18:49

DATE AND TIME: 2009-06-15 13:41:22
UPS URL: https://www.ups.com:...ps.app/xml/Rate
UPS REQUEST: <?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>xxxxx</AccessLicenseNumber>
<UserId>xxxxx</UserId>
<Password>xxxx</Password>
</AccessRequest>
<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Rating and Service</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Rate</RequestAction>
<RequestOption>shop</RequestOption>
</Request>
<PickupType>
<Code>01</Code>
</PickupType>
<Shipment>
<Shipper>
<Address>
<City>Fort Meade</City>
<StateProvinceCode>FL</StateProvinceCode>
<CountryCode>US</CountryCode>
<PostalCode>33841</PostalCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<City>beijing</City>
<StateProvinceCode>beijing</StateProvinceCode>
<CountryCode>CN</CountryCode>
<PostalCode>100000</PostalCode>
</Address>
</ShipTo>
</Shipment>
<CustomerClassification>
<Code>01</Code>
</CustomerClassification>
</RatingServiceSelectionRequest>

UPS RESPONSE: <?xml version="1.0"?><RatingServiceSelectionResponse><Response><TransactionReference><CustomerContext>Rating and Service</CustomerContext><XpciVersion>1.0001</XpciVersion></TransactionReference><ResponseStatusCode>0</ResponseStatusCode><ResponseStatusDescription>Failure</ResponseStatusDescription><Error><ErrorSeverity>Hard</ErrorSeverity><ErrorCode>10002</ErrorCode><ErrorDescription>The XML document is well formed but the document is not valid</ErrorDescription><ErrorLocation><ErrorLocationElementName>RatingServiceSelectionRequest/Shipment/Package</ErrorLocationElementName></ErrorLocation></Error></Response></RatingServiceSelectionResponse>



Dear all, I need help!!!!
When I try to install United Parcel Service (XML), But I get this error.

=======
United Parcel Service (XML)
10002: The XML document is well formed but the document is not valid
If you prefer to use ups as your shipping method, please contact Z-Counterform via Email.
=======

PS: product_weight is setting.

I donot know how to set UPS, the follow is my setting

-------------------
Enable UPS Shipping
True

UPS Rates Access Key
xxxxxx

UPS Rates Username
xxxxxxx

UPS Rates Password
xxxxxx

Pickup Method
Daily Pickup

Packaging Type
Package

Customer Classification Code
01

Shipping Origin
US Origin

Origin City
Fort Meade

Origin State/Province
FL

Origin Country
US

Origin Zip/Postal Code
33841

Test or Production Mode
Production

Unit Weight
KGS

Unit Length
IN

Dimensions Support
No

Quote Type
Commercial

Negotiated rates
False

UPS Account Number
xxxxxxx

Handling Type
Flat Fee

Handling Fee
0

Enable Insurance
True

UPS Currency Code
USD

Tax Class
Taxable Goods

Shipping Zone
--none--

Sort order of display.
0

Disallowed Shipping Methods
--none--

Shipping Delay
1

Email UPS errors
Yes

Time in Transit View Type
Raw
-------------------

I am waiting here unit fixed this issue!

Thanks

Kimi


Edited by Jan Zonjee, 15 June 2009 - 19:50.


#3   Jan Zonjee

Jan Zonjee

    Governor of Peace

  • Core Team
  • 7,092 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 15 June 2009 - 19:58

If you compare the outgoing message with the building up of the message in catalog/includes/modules/shipping/upsxml.php around line 551-593 you see that the whole information about the package(s) is missing. In essence you are asking for a quote on shipping but you are not stating for how many cartons and with what weight you want a quote.
No clue how that part is gone missing (product with no weight?).

#4   enlala

enlala
  • Members
  • 4 posts
  • Real Name:kimi

Posted 15 June 2009 - 21:04

Thank you!

I checked this too, But I can do not find out the reason. I am a new php user.

Can you help me fixed this? thanks very vrey much!!! I OK, please add me MSN or SPYKE. here is 5 AM, I am very trid~


If you compare the outgoing message with the building up of the message in catalog/includes/modules/shipping/upsxml.php around line 551-593 you see that the whole information about the package(s) is missing. In essence you are asking for a quote on shipping but you are not stating for how many cartons and with what weight you want a quote.
No clue how that part is gone missing (product with no weight?).



#5   Jan Zonjee

Jan Zonjee

    Governor of Peace

  • Core Team
  • 7,092 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 15 June 2009 - 21:34

I checked this too, But I can do not find out the reason. I am a new php user.

Can you help me fixed this? thanks very vrey much!!! I OK, please add me MSN or SPYKE. here is 5 AM, I am very trid~

Better sleep on it. And after that enable for example the table rate to the shipping modules, just to see what results you get there.
Perhaps add in the footer of checkout_shipping.php (be sure that it is inside php code or add <?php and ?> before respectively after it):
echo '<pre>';
print_r($cart);
echo '</pre>';
Than you can see the products in the cart and if there is something suspicious with it.

#6   Jan Zonjee

Jan Zonjee

    Governor of Peace

  • Core Team
  • 7,092 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 15 June 2009 - 22:04

I checked this too, But I can do not find out the reason. I am a new php user.

You seem to use kilograms for weight and inches for dimensions. Use lbs and inches for shipments from the USA. UPS will expect it that way.