Hi all ,
That is the XML part for the UPS shipping module , which i have made..
IThe code is ,
What I got as error is ,
Array ( [RatingServiceSe lectionResponse] => Array ( [Response] => Array ( [TransactionRefe rence] => Array ( [CustomerContext] => Shipping [XpciVersion] => 1.0001 ) [ResponseStatusC ode] => 0 [ResponseStatusD escription] => Failure [Error] => Array ( [ErrorSeverity] => Hard [ErrorCode] => 10001 [ErrorDescriptio n] => The XML document is not well formed ) ) ) )
What can be the possible solution to that : 10001 - XML doc is not well Formed.
That is the XML part for the UPS shipping module , which i have made..
IThe code is ,
Code:
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>{$this->_access_key}</AccessLicenseNumber>
<UserId>{$this->_username}</UserId>
<Password>{$this->_password}</Password>
</AccessRequest>
<?xml version="1.0"?>
<RatingServiceSelectionRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext></CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>{$this->_request_option}</RequestAction>
<RequestOption>{$this->_request_option}</RequestOption>
</Request>
<PickupType>
<Code>01</Code>
</PickupType>
<Shipment>
<Shipper>
<shipperNumber>66V7R5</shipperNumber>
<Adress>
<City></City>
<StateProvinceCode><StateProvinceCode>
<PostalCode></PostalCode>
<CountryCode>US<CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<StateProvinceCode></StateProvinceCode>
<PostalCode></PostalCode>
<CountryCode></CountryCode>
</Address>
</ShipTo>
<ShipFrom>
<Address>
<StateProvinceCode>...</StateProvinceCode >
<PostalCode>...</PostalCode>
<CountryCode>...</CountryCode>
</Address>
</ShipFrom>
<Service>
<Code>{$service_code}</Code>
</Service>
<Package>
<PackagingType>
<Code>02</Code>
</PackagingType>
<PackageWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>{$package_weight}</Weight>
</PackageWeight>
</Package>
<RateInformation>
<NegotiatedRatesIndicator/>
</RateInformation>
</Shipment>
</RatingServiceSelectionRequest>
XML;
What I got as error is ,
Array ( [RatingServiceSe lectionResponse] => Array ( [Response] => Array ( [TransactionRefe rence] => Array ( [CustomerContext] => Shipping [XpciVersion] => 1.0001 ) [ResponseStatusC ode] => 0 [ResponseStatusD escription] => Failure [Error] => Array ( [ErrorSeverity] => Hard [ErrorCode] => 10001 [ErrorDescriptio n] => The XML document is not well formed ) ) ) )
What can be the possible solution to that : 10001 - XML doc is not well Formed.
Comment