Latest News: (loading..)
Sign in to follow this  
Followers 0
enlala

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

6 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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?).

Share this post


Link to post
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?).

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0