Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


enlala

Recommended Posts

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
Link to comment
Share on other sites

DATE AND TIME: 2009-06-15 13:41:22

UPS URL: https://www.ups.com:443/ups.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
Link to comment
Share on other sites

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?).

Link to comment
Share on other sites

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?).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...