Hallo, hab folgendes problem.
Ich muß mit PHP eine XML Schnittstelle schreiben.
Es soll von einem Fremdanbieter Flug / Hotelinfos gelesen und dargestellt werden.
Habe aber nur die untenstehenden infos. Wie fange ich an.
Habt Ihr event. Code-Beispiele. Es ist sehr dringend....
Danke im voraus.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<
Principals
Open a socket TCP/IP to a host on an IP-adress , with a port (ex.10100)
Send Request
Wait for Response
Close the socket TCP/IP
--------------------------------------
REQUEST :
<XmlRequest>
<User>Username</User>
<Firm>1</Firm> -------------- Number of Firm: 1 is REAL ; 9999 is Test
<Action>INFOPACK</Action>
<Language>N</Language> (F = French, N=Nederlands, E=English)
<CodePackage>103KAN</CodePackage> ------------ code package servico
<FromDate>08/04/2003</FromDate> (optional)
<ToDate>20/04/2003</ToDate> (optional)
<MinLengthDays>8</MinLengthDays> (optional)
<MaxLengthDays>10</MaxLengthDays> (optional)
</XmlRequest>
RESPONSE :
<XmlResponse>
<User>Username</User>
<Action>INFOPACK</Action>
<CodePackage>103KAN</CodePackage>
<Room>K10~SINGLE</Room>
<Room>K20~DOUBLE</Room>
<Room>K30~TRIPLE</Room>
<Room>K31~TRIPLE WITH SEAVIEW</Room>
<Board>R10~BED AND BREAKFAST</Board>
<Board>R20~HALF BOARD</Board>
<Board>R30~FULL BOARD</Board>
<Insurance>Z10~Annulation</Insurance>
<Insurance>Z11~Travel</Insurance>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board> R10~BED AND BREAKFAST</Board>
<DateStart>07/04/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>8</LengthDays>
<StandardPrice>240</ StandardPrice>
</InfoPrice>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board> R10~BED AND BREAKFAST</Board>
<DateStart>07/04/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>15</LengthDays>
<StandardPrice>805.50</ StandardPrice>
</InfoPrice>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board>R10~BED AND BREAKFAST</Board>
<DateStart>01/06/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>8</LengthDays>
<StandardPrice>428.51</ StandardPrice>
</InfoPrice>
<Status>OK</Status> Status OK means that package code is OK, if no InfoPrice it will be impossible to make a reservation
</XmlResponse>
Ich muß mit PHP eine XML Schnittstelle schreiben.
Es soll von einem Fremdanbieter Flug / Hotelinfos gelesen und dargestellt werden.
Habe aber nur die untenstehenden infos. Wie fange ich an.
Habt Ihr event. Code-Beispiele. Es ist sehr dringend....
Danke im voraus.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<
Principals
Open a socket TCP/IP to a host on an IP-adress , with a port (ex.10100)
Send Request
Wait for Response
Close the socket TCP/IP
--------------------------------------
REQUEST :
<XmlRequest>
<User>Username</User>
<Firm>1</Firm> -------------- Number of Firm: 1 is REAL ; 9999 is Test
<Action>INFOPACK</Action>
<Language>N</Language> (F = French, N=Nederlands, E=English)
<CodePackage>103KAN</CodePackage> ------------ code package servico
<FromDate>08/04/2003</FromDate> (optional)
<ToDate>20/04/2003</ToDate> (optional)
<MinLengthDays>8</MinLengthDays> (optional)
<MaxLengthDays>10</MaxLengthDays> (optional)
</XmlRequest>
RESPONSE :
<XmlResponse>
<User>Username</User>
<Action>INFOPACK</Action>
<CodePackage>103KAN</CodePackage>
<Room>K10~SINGLE</Room>
<Room>K20~DOUBLE</Room>
<Room>K30~TRIPLE</Room>
<Room>K31~TRIPLE WITH SEAVIEW</Room>
<Board>R10~BED AND BREAKFAST</Board>
<Board>R20~HALF BOARD</Board>
<Board>R30~FULL BOARD</Board>
<Insurance>Z10~Annulation</Insurance>
<Insurance>Z11~Travel</Insurance>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board> R10~BED AND BREAKFAST</Board>
<DateStart>07/04/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>8</LengthDays>
<StandardPrice>240</ StandardPrice>
</InfoPrice>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board> R10~BED AND BREAKFAST</Board>
<DateStart>07/04/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>15</LengthDays>
<StandardPrice>805.50</ StandardPrice>
</InfoPrice>
<InfoPrice>
<Room> K20~DOUBLE </Room>
<Board>R10~BED AND BREAKFAST</Board>
<DateStart>01/06/2003</DateStart>
<CityDeparture>BRU~Brussels</CityDeparture> if only one possible
<LengthDays>8</LengthDays>
<StandardPrice>428.51</ StandardPrice>
</InfoPrice>
<Status>OK</Status> Status OK means that package code is OK, if no InfoPrice it will be impossible to make a reservation
</XmlResponse>
Kommentar