har fatt i uppgift att implementera xml i en websida, jag har fatt samtliga xml koder av foretaget men fattar 0 av hur jag ska ga till vaga...
grejen som skall goras e att man skall kunna kolla status pa sin order.. dvs det skall vara en input type="text" och dar skall de fylla i sitt ordernummer och darefter skall man kunna kolla vart paketet befinner sig, man kan gora det enkelt och bara lanka till postens sida som har en sadan funktion, men grejen e att de vill implementera det sa att det ser ut som att det ar deras.
nagan som kan hjalpa med en spark i baken??
d har e xml infot jag fatt:
Access Request
<?xml version="1.0"?>
<AccessRequest xml:lang="en-US">
<AccessLicenseNumber>TEST262223144CAT</AccessLicenseNumber>
<UserId>testUser</UserId>
<Password>testPW</Password>
</AccessRequest>
Tracking Request
<?xml version="1.0"?>
<TrackRequest xml:lang="en-US">
<Request>
<TransactionReference>
<CustomerContext>Example 1</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<RequestAction>Track</RequestAction>
<RequestOption>activity</RequestOption>
</Request>
<TrackingNumber>1Z12345E1512345676</TrackingNumber>
</TrackRequest>
och sedan responsen
<?xml version="1.0"?>
<TrackResponse>
<Response>
<TransactionReference>
<CustomerContext>Example 1</CustomerContext>
<XpciVersion>1.0001</XpciVersion>
</TransactionReference>
<ResponseStatusCode>1</ResponseStatusCode>
<ResponseStatusDescription>Success</ResponseStatusDescription>
</Response>
<Shipment>
<Shipper>
<ShipperNumber>12345E</ShipperNumber>
<Address>
<AddressLine1>2010 WARSAW RD</AddressLine1>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<PostalCode>30076</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</Shipper>
<ShipTo>
<Address>
<AddressLine1>1000 MANSELL ROAD</AddressLine1>
<AddressLine2>CIM GROUP</AddressLine2>
<AddressLine3>APOLLO SECTION</AddressLine3>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<PostalCode>30076</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</ShipTo>
<Service>
<Code>001</Code>
<Description>NEXT DAY AIR</Description>
</Service>
<ReferenceNumber>
<Code>01</Code>
<Value>CUSTOMER SUPPLIED REFERENCE NUMBER</Value>
</ReferenceNumber>
<ReferenceNumber>
<Code>01</Code>
<Value>TEST</Value>
</ReferenceNumber>
<ShipmentIdentificationNumber>1Z12345E1512345676</ShipmentIdentificationNumber>
<PickupDate>20010219</PickupDate>
<ScheduledDeliveryDate>20010220</ScheduledDeliveryDate>
<Package>
<TrackingNumber>1Z12345E1512345676</TrackingNumber>
<Activity>
<ActivityLocation>
<Address>
<City>ROSWELL-ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
<Code>M5</Code>
<Description>MAIL ROOM</Description>
<SignedForByName>DOE</SignedForByName>
</ActivityLocation>
<Status>
<StatusType>
<Code>D</Code>
<Description>DELIVERED</Description>
</StatusType>
<StatusCode>
<Code>KB</Code>
</StatusCode>
</Status>
<Date>20010221</Date>
<Time>090600</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>DESTINATION SCAN</Description>
</StatusType>
<StatusCode>
<Code>DS</Code>
</StatusCode>
</Status>
<Date>20010221</Date>
<Time>073717</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>ROSWELL</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>ARRIVAL SCAN</Description>
</StatusType>
<StatusCode>
<Code>AR</Code>
</StatusCode>
</Status>
<Date>20010221</Date>
<Time>063000</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>ATLANTA INTL</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>DEPARTURE SCAN</Description>
</StatusType>
<StatusCode>
<Code>DP</Code>
</StatusCode>
</Status>
<Date>20010221</Date>
<Time>052000</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>HARTSFIELD (ATLANTA)</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>LOCATION SCAN</Description>
</StatusType>
<StatusCode>
<Code>LC</Code>
</StatusCode>
</Status>
<Date>20010221</Date>
<Time>034756</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>PLEASANTDALE</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>LOCATION SCAN</Description>
</StatusType>
<StatusCode>
<Code>LC</Code>
</StatusCode>
</Status>
<Date>20010220</Date>
<Time>192558</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>PLEASANTDALE</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>I</Code>
<Description>LOCATION SCAN</Description>
</StatusType>
<StatusCode>
<Code>LC</Code>
</StatusCode>
</Status>
<Date>20010220</Date>
<Time>192500</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<City>PLEASANTDALE-DUNWDY</City>
<StateProvinceCode>GA</StateProvinceCode>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>P</Code>
<Description>PICKUP SCAN</Description>
</StatusType>
<StatusCode>
<Code>PU</Code>
</StatusCode>
</Status>
<Date>20010220</Date>
<Time>170842</Time>
</Activity>
<Activity>
<ActivityLocation>
<Address>
<CountryCode>US</CountryCode>
</Address>
</ActivityLocation>
<Status>
<StatusType>
<Code>M</Code>
<Description>PICKUP MANIFEST RECEIVED</Description>
</StatusType>
<StatusCode>
<Code>MP</Code>
</StatusCode>
</Status>
<Date>20010219</Date>
<Time>132203</Time>
</Activity>
<PackageWeight>
<UnitOfMeasurement>
<Code>LBS</Code>
</UnitOfMeasurement>
<Weight>1.70</Weight>
</PackageWeight>
<ReferenceNumber>
<Code>01</Code>
<Value>CUSTOMER SUPPLIED REFERENCE NUMBER</Value>
</ReferenceNumber>
<ReferenceNumber>
<Code>01</Code>
<Value>TEST</Value>
</ReferenceNumber>
</Package>
</Shipment>
</TrackResponse>
men grejen e att responen skall ju skriva ut det som finns pa postens server, nu e det sa att det redan star i responen vad osm skall skrivas ut, dvs koden e inte dynamisk, eller??? jag fattar 0 av xml forsta ggn jag anvader det!